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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SharingProfileGroupfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SharingProfileGroup from the JsonReader.ids()Get the ids property: A list of subscription/tenant ids the gallery is aimed to be shared to.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: This property allows you to specify the type of sharing group.voidvalidate()Validates the instance.Set the ids property: A list of subscription/tenant ids the gallery is aimed to be shared to.Set the type property: This property allows you to specify the type of sharing group.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
-
SharingProfileGroup
public SharingProfileGroup()Creates an instance of SharingProfileGroup class.
-
-
Method Details
-
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
-
withIds
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SharingProfileGroup>- Throws:
IOException
-
fromJson
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.
-