SharingStatus Class

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

Implements

public final class SharingStatus
implements JsonSerializable<SharingStatus>

Sharing status of current gallery.

Constructor Summary

Constructor Description
SharingStatus()

Creates an instance of SharingStatus class.

Method Summary

Modifier and Type Method and Description
SharingState aggregatedState()

Get the aggregatedState property: Aggregated sharing state of current gallery.

static SharingStatus fromJson(JsonReader jsonReader)

Reads an instance of SharingStatus from the JsonReader.

List<RegionalSharingStatus> summary()

Get the summary property: Summary of all regional sharing status.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SharingStatus withSummary(List<RegionalSharingStatus> summary)

Set the summary property: Summary of all regional sharing status.

Methods inherited from java.lang.Object

Constructor Details

SharingStatus

public SharingStatus()

Creates an instance of SharingStatus class.

Method Details

aggregatedState

public SharingState aggregatedState()

Get the aggregatedState property: Aggregated sharing state of current gallery.

Returns:

the aggregatedState value.

fromJson

public static SharingStatus fromJson(JsonReader jsonReader)

Reads an instance of SharingStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SharingStatus 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 SharingStatus.

summary

public List summary()

Get the summary property: Summary of all regional sharing status.

Returns:

the summary value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSummary

public SharingStatus withSummary(List summary)

Set the summary property: Summary of all regional sharing status.

Parameters:

summary - the summary value to set.

Returns:

the SharingStatus object itself.

Applies to