Class CacheHealth
- java.lang.Object
-
- com.azure.resourcemanager.storagecache.models.CacheHealth
-
public final class CacheHealth extends Object
An indication of Cache health. Gives more information about health than just that related to provisioning.
-
-
Constructor Summary
Constructors Constructor Description CacheHealth()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
state
public HealthStateType state()
Get the state property: List of Cache health states.- Returns:
- the state value.
-
withState
public CacheHealth withState(HealthStateType state)
Set the state property: List of Cache health states.- Parameters:
state
- the state value to set.- Returns:
- the CacheHealth object itself.
-
statusDescription
public String statusDescription()
Get the statusDescription property: Describes explanation of state.- Returns:
- the statusDescription value.
-
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.
-
conditions
public List<Condition> 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.
-
-