Class SharingStatus
java.lang.Object
com.azure.resourcemanager.compute.models.SharingStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SharingStatus>
public final class SharingStatus
extends Object
implements com.azure.json.JsonSerializable<SharingStatus>
Sharing status of current gallery.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the aggregatedState property: Aggregated sharing state of current gallery.static SharingStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SharingStatus from the JsonReader.summary()Get the summary property: Summary of all regional sharing status.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withSummary(List<RegionalSharingStatus> summary) Set the summary property: Summary of all regional sharing status.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
-
SharingStatus
public SharingStatus()Creates an instance of SharingStatus class.
-
-
Method Details
-
aggregatedState
Get the aggregatedState property: Aggregated sharing state of current gallery.- Returns:
- the aggregatedState value.
-
summary
Get the summary property: Summary of all regional sharing status.- Returns:
- the summary value.
-
withSummary
Set the summary property: Summary of all regional sharing status.- Parameters:
summary- the summary value to set.- Returns:
- the SharingStatus 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<SharingStatus>- Throws:
IOException
-
fromJson
Reads an instance of SharingStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SharingStatus 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 SharingStatus.
-