CacheHealth Class

  • java.lang.Object
    • com.azure.resourcemanager.storagecache.models.CacheHealth

public final class CacheHealth

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

Constructor Summary

Constructor Description
CacheHealth()

Creates an instance of CacheHealth class.

Method Summary

Modifier and Type Method and Description
List<Condition> conditions()

Get the conditions property: Outstanding conditions that need to be investigated and resolved.

HealthStateType state()

Get the state property: List of cache health states.

String statusDescription()

Get the statusDescription property: Describes explanation of state.

void validate()

Validates the instance.

CacheHealth withState(HealthStateType state)

Set the state property: List of cache health states.

CacheHealth withStatusDescription(String statusDescription)

Set the statusDescription property: Describes explanation of state.

Methods inherited from java.lang.Object

Constructor Details

CacheHealth

public CacheHealth()

Creates an instance of CacheHealth class.

Method Details

conditions

public List conditions()

Get the conditions property: Outstanding conditions that need to be investigated and resolved.

Returns:

the conditions value.

state

public HealthStateType state()

Get the state property: List of cache health states. Down is when the cluster is not responding. Degraded is when its functioning but has some alerts. Transitioning when it is creating or deleting. Unknown will be returned in old api versions when a new value is added in future versions. WaitingForKey is when the create is waiting for the system assigned identity to be given access to the encryption key in the encryption settings.

Returns:

the state value.

statusDescription

public String statusDescription()

Get the statusDescription property: Describes explanation of state.

Returns:

the statusDescription value.

validate

public void validate()

Validates the instance.

withState

public CacheHealth withState(HealthStateType state)

Set the state property: List of cache health states. Down is when the cluster is not responding. Degraded is when its functioning but has some alerts. Transitioning when it is creating or deleting. Unknown will be returned in old api versions when a new value is added in future versions. WaitingForKey is when the create is waiting for the system assigned identity to be given access to the encryption key in the encryption settings.

Parameters:

state - the state value to set.

Returns:

the CacheHealth object itself.

withStatusDescription

public CacheHealth withStatusDescription(String statusDescription)

Set the statusDescription property: Describes explanation of state.

Parameters:

statusDescription - the statusDescription value to set.

Returns:

the CacheHealth object itself.

Applies to