Class ResourceHealthMetadataProperties
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.ResourceHealthMetadataProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceHealthMetadataProperties>
public final class ResourceHealthMetadataProperties
extends Object
implements com.azure.json.JsonSerializable<ResourceHealthMetadataProperties>
ResourceHealthMetadata resource specific properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ResourceHealthMetadataProperties class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Get the category property: The category that the resource matches in the RHC Policy File.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceHealthMetadataProperties from the JsonReader.Get the signalAvailability property: Is there a health signal for the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCategory(String category) Set the category property: The category that the resource matches in the RHC Policy File.withSignalAvailability(Boolean signalAvailability) Set the signalAvailability property: Is there a health signal for the resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ResourceHealthMetadataProperties
public ResourceHealthMetadataProperties()Creates an instance of ResourceHealthMetadataProperties class.
-
-
Method Details
-
category
Get the category property: The category that the resource matches in the RHC Policy File.- Returns:
- the category value.
-
withCategory
Set the category property: The category that the resource matches in the RHC Policy File.- Parameters:
category- the category value to set.- Returns:
- the ResourceHealthMetadataProperties object itself.
-
signalAvailability
Get the signalAvailability property: Is there a health signal for the resource.- Returns:
- the signalAvailability value.
-
withSignalAvailability
Set the signalAvailability property: Is there a health signal for the resource.- Parameters:
signalAvailability- the signalAvailability value to set.- Returns:
- the ResourceHealthMetadataProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceHealthMetadataProperties>- Throws:
IOException
-
fromJson
public static ResourceHealthMetadataProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ResourceHealthMetadataProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResourceHealthMetadataProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ResourceHealthMetadataProperties.
-