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 Details

    • SharingUpdateInner

      public SharingUpdateInner()
      Creates an instance of SharingUpdateInner class.
  • Method Details

    • operationType

      public SharingUpdateOperationTypes 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

      public SharingUpdateInner withOperationType(SharingUpdateOperationTypes operationType)
      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

      public List<SharingProfileGroup> groups()
      Get the groups property: A list of sharing profile groups.
      Returns:
      the groups value.
    • withGroups

      public SharingUpdateInner withGroups(List<SharingProfileGroup> groups)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SharingUpdateInner>
      Throws:
      IOException
    • fromJson

      public static SharingUpdateInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.