Class AvailabilityStatusPropertiesRecentlyResolved
- java.lang.Object
-
- com.azure.resourcemanager.resourcehealth.models.AvailabilityStatusPropertiesRecentlyResolved
-
public final class AvailabilityStatusPropertiesRecentlyResolved extends Object
An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned.
-
-
Constructor Summary
Constructors Constructor Description AvailabilityStatusPropertiesRecentlyResolved()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
resolvedTime()
Get the resolvedTime property: Timestamp when the availabilityState changes to Available.String
unavailabilitySummary()
Get the unavailabilitySummary property: Brief description of cause of the resource becoming unavailable.OffsetDateTime
unavailableOccurredTime()
Get the unavailableOccurredTime property: Timestamp for when the availabilityState changed to Unavailable.void
validate()
Validates the instance.AvailabilityStatusPropertiesRecentlyResolved
withResolvedTime(OffsetDateTime resolvedTime)
Set the resolvedTime property: Timestamp when the availabilityState changes to Available.AvailabilityStatusPropertiesRecentlyResolved
withUnavailabilitySummary(String unavailabilitySummary)
Set the unavailabilitySummary property: Brief description of cause of the resource becoming unavailable.AvailabilityStatusPropertiesRecentlyResolved
withUnavailableOccurredTime(OffsetDateTime unavailableOccurredTime)
Set the unavailableOccurredTime property: Timestamp for when the availabilityState changed to Unavailable.
-
-
-
Method Detail
-
unavailableOccurredTime
public OffsetDateTime unavailableOccurredTime()
Get the unavailableOccurredTime property: Timestamp for when the availabilityState changed to Unavailable.- Returns:
- the unavailableOccurredTime value.
-
withUnavailableOccurredTime
public AvailabilityStatusPropertiesRecentlyResolved withUnavailableOccurredTime(OffsetDateTime unavailableOccurredTime)
Set the unavailableOccurredTime property: Timestamp for when the availabilityState changed to Unavailable.- Parameters:
unavailableOccurredTime
- the unavailableOccurredTime value to set.- Returns:
- the AvailabilityStatusPropertiesRecentlyResolved object itself.
-
resolvedTime
public OffsetDateTime resolvedTime()
Get the resolvedTime property: Timestamp when the availabilityState changes to Available.- Returns:
- the resolvedTime value.
-
withResolvedTime
public AvailabilityStatusPropertiesRecentlyResolved withResolvedTime(OffsetDateTime resolvedTime)
Set the resolvedTime property: Timestamp when the availabilityState changes to Available.- Parameters:
resolvedTime
- the resolvedTime value to set.- Returns:
- the AvailabilityStatusPropertiesRecentlyResolved object itself.
-
unavailabilitySummary
public String unavailabilitySummary()
Get the unavailabilitySummary property: Brief description of cause of the resource becoming unavailable.- Returns:
- the unavailabilitySummary value.
-
withUnavailabilitySummary
public AvailabilityStatusPropertiesRecentlyResolved withUnavailabilitySummary(String unavailabilitySummary)
Set the unavailabilitySummary property: Brief description of cause of the resource becoming unavailable.- Parameters:
unavailabilitySummary
- the unavailabilitySummary value to set.- Returns:
- the AvailabilityStatusPropertiesRecentlyResolved object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-