SharingProfileGroup Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.SharingProfileGroup

Implements

public final class SharingProfileGroup
implements JsonSerializable<SharingProfileGroup>

Group of the gallery sharing profile.

Constructor Summary

Constructor Description
SharingProfileGroup()

Creates an instance of SharingProfileGroup class.

Method Summary

Modifier and Type Method and Description
static SharingProfileGroup fromJson(JsonReader jsonReader)

Reads an instance of SharingProfileGroup from the JsonReader.

List<String> ids()

Get the ids property: A list of subscription/tenant ids the gallery is aimed to be shared to.

JsonWriter toJson(JsonWriter jsonWriter)
SharingProfileGroupTypes type()

Get the type property: This property allows you to specify the type of sharing group.

void validate()

Validates the instance.

SharingProfileGroup withIds(List<String> ids)

Set the ids property: A list of subscription/tenant ids the gallery is aimed to be shared to.

SharingProfileGroup withType(SharingProfileGroupTypes type)

Set the type property: This property allows you to specify the type of sharing group.

Methods inherited from java.lang.Object

Constructor Details

SharingProfileGroup

public SharingProfileGroup()

Creates an instance of SharingProfileGroup class.

Method Details

fromJson

public static SharingProfileGroup fromJson(JsonReader jsonReader)

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.

ids

public List ids()

Get the ids property: A list of subscription/tenant ids the gallery is aimed to be shared to.

Returns:

the ids value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

validate

public void validate()

Validates the instance.

withIds

public SharingProfileGroup withIds(List 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.

withType

public SharingProfileGroup withType(SharingProfileGroupTypes type)

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.

Applies to