SharingUpdateInner Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.fluent.models.SharingUpdateInner

Implements

public final class SharingUpdateInner
implements JsonSerializable<SharingUpdateInner>

Specifies information about the gallery sharing profile update.

Constructor Summary

Constructor Description
SharingUpdateInner()

Creates an instance of SharingUpdateInner class.

Method Summary

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

Reads an instance of SharingUpdateInner from the JsonReader.

List<SharingProfileGroup> groups()

Get the groups property: A list of sharing profile groups.

SharingUpdateOperationTypes operationType()

Get the operationType property: This property allows you to specify the operation type of gallery sharing update.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SharingUpdateInner withGroups(List<SharingProfileGroup> groups)

Set the groups property: A list of sharing profile groups.

SharingUpdateInner withOperationType(SharingUpdateOperationTypes operationType)

Set the operationType property: This property allows you to specify the operation type of gallery sharing update.

Methods inherited from java.lang.Object

Constructor Details

SharingUpdateInner

public SharingUpdateInner()

Creates an instance of SharingUpdateInner class.

Method Details

fromJson

public static SharingUpdateInner fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

groups

public List groups()

Get the groups property: A list of sharing profile groups.

Returns:

the groups value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withGroups

public SharingUpdateInner withGroups(List groups)

Set the groups property: A list of sharing profile groups.

Parameters:

groups - the groups value to set.

Returns:

the SharingUpdateInner object itself.

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.

Applies to