CacheHealth Class

  • java.lang.Object
    • com.microsoft.azure.management.storagecache.v2020_03_01.CacheHealth

public class CacheHealth

An indication of Cache health. Gives more information about health than just that related to provisioning.

Constructor Summary

Constructor Description
CacheHealth()

Method Summary

Modifier and Type Method and Description
HealthStateType state()

Get list of Cache health states.

java.lang.String statusDescription()

Get describes explanation of state.

CacheHealth withState(HealthStateType state)

Set list of Cache health states.

CacheHealth withStatusDescription(String statusDescription)

Set describes explanation of state.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

CacheHealth

public CacheHealth()

Method Details

state

public HealthStateType state()

Get list of Cache health states. Possible values include: 'Unknown', 'Healthy', 'Degraded', 'Down', 'Transitioning', 'Stopping', 'Stopped', 'Upgrading', 'Flushing'.

Returns:

the state value

statusDescription

public String statusDescription()

Get describes explanation of state.

Returns:

the statusDescription value

withState

public CacheHealth withState(HealthStateType state)

Set list of Cache health states. Possible values include: 'Unknown', 'Healthy', 'Degraded', 'Down', 'Transitioning', 'Stopping', 'Stopped', 'Upgrading', 'Flushing'.

Parameters:

state - the state value to set

Returns:

the CacheHealth object itself.

withStatusDescription

public CacheHealth withStatusDescription(String statusDescription)

Set describes explanation of state.

Parameters:

statusDescription - the statusDescription value to set

Returns:

the CacheHealth object itself.

Applies to

Azure SDK for Java

Latest