Class SharingProfileGroup

java.lang.Object
com.azure.resourcemanager.compute.models.SharingProfileGroup
All Implemented Interfaces:
com.azure.json.JsonSerializable<SharingProfileGroup>

public final class SharingProfileGroup extends Object implements com.azure.json.JsonSerializable<SharingProfileGroup>
Group of the gallery sharing profile.
  • Constructor Details

    • SharingProfileGroup

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

    • type

      public SharingProfileGroupTypes type()
      Get the type property: This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.**.
      Returns:
      the type value.
    • withType

      Set the type property: This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.**.
      Parameters:
      type - the type value to set.
      Returns:
      the SharingProfileGroup object itself.
    • ids

      public List<String> ids()
      Get the ids property: A list of subscription/tenant ids the gallery is aimed to be shared to.
      Returns:
      the ids value.
    • withIds

      public SharingProfileGroup withIds(List<String> ids)
      Set the ids property: A list of subscription/tenant ids the gallery is aimed to be shared to.
      Parameters:
      ids - the ids value to set.
      Returns:
      the SharingProfileGroup 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<SharingProfileGroup>
      Throws:
      IOException
    • fromJson

      public static SharingProfileGroup fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SharingProfileGroup from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SharingProfileGroup 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 SharingProfileGroup.