Class SharingUpdateInner
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.SharingUpdateInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SharingUpdateInner>
public final class SharingUpdateInner
extends Object
implements com.azure.json.JsonSerializable<SharingUpdateInner>
Specifies information about the gallery sharing profile update.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SharingUpdateInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SharingUpdateInner from the JsonReader.groups()Get the groups property: A list of sharing profile groups.Get the operationType property: This property allows you to specify the operation type of gallery sharing update.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withGroups(List<SharingProfileGroup> groups) Set the groups property: A list of sharing profile groups.withOperationType(SharingUpdateOperationTypes operationType) Set the operationType property: This property allows you to specify the operation type of gallery sharing update.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
-
SharingUpdateInner
public SharingUpdateInner()Creates an instance of SharingUpdateInner class.
-
-
Method Details
-
operationType
Get the operationType property: This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**.- Returns:
- the operationType value.
-
withOperationType
Set the operationType property: This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.**.- Parameters:
operationType- the operationType value to set.- Returns:
- the SharingUpdateInner object itself.
-
groups
Get the groups property: A list of sharing profile groups.- Returns:
- the groups value.
-
withGroups
Set the groups property: A list of sharing profile groups.- Parameters:
groups- the groups value to set.- Returns:
- the SharingUpdateInner 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<SharingUpdateInner>- Throws:
IOException
-
fromJson
Reads an instance of SharingUpdateInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SharingUpdateInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SharingUpdateInner.
-