Class RegionalSharingStatus
java.lang.Object
com.azure.resourcemanager.compute.models.RegionalSharingStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RegionalSharingStatus>
public final class RegionalSharingStatus
extends Object
implements com.azure.json.JsonSerializable<RegionalSharingStatus>
Gallery regional sharing status.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetails()Get the details property: Details of gallery regional sharing failure.static RegionalSharingStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RegionalSharingStatus from the JsonReader.region()Get the region property: Region name.state()Get the state property: Gallery sharing state in current region.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDetails(String details) Set the details property: Details of gallery regional sharing failure.withRegion(String region) Set the region property: Region name.Methods inherited from class 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
-
RegionalSharingStatus
public RegionalSharingStatus()Creates an instance of RegionalSharingStatus class.
-
-
Method Details
-
region
-
withRegion
Set the region property: Region name.- Parameters:
region- the region value to set.- Returns:
- the RegionalSharingStatus object itself.
-
state
Get the state property: Gallery sharing state in current region.- Returns:
- the state value.
-
details
Get the details property: Details of gallery regional sharing failure.- Returns:
- the details value.
-
withDetails
Set the details property: Details of gallery regional sharing failure.- Parameters:
details- the details value to set.- Returns:
- the RegionalSharingStatus 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<RegionalSharingStatus>- Throws:
IOException
-
fromJson
public static RegionalSharingStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RegionalSharingStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RegionalSharingStatus 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 RegionalSharingStatus.
-