Class CacheHealth
java.lang.Object
com.azure.resourcemanager.storagecache.models.CacheHealth
An indication of cache health. Gives more information about health than just that related to provisioning.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the conditions property: Outstanding conditions that need to be investigated and resolved.state()
Get the state property: List of cache health states.Get the statusDescription property: Describes explanation of state.void
validate()
Validates the instance.withState
(HealthStateType state) Set the state property: List of cache health states.withStatusDescription
(String statusDescription) Set the statusDescription property: Describes explanation of state.
-
Constructor Details
-
CacheHealth
public CacheHealth()Creates an instance of CacheHealth class.
-
-
Method Details
-
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.
-
withState
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.
-
statusDescription
Get the statusDescription property: Describes explanation of state.- Returns:
- the statusDescription value.
-
withStatusDescription
Set the statusDescription property: Describes explanation of state.- Parameters:
statusDescription
- the statusDescription value to set.- Returns:
- the CacheHealth object itself.
-
conditions
Get the conditions property: Outstanding conditions that need to be investigated and resolved.- Returns:
- the conditions value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-