Partilhar via


ResourceSet Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ResourceSet

Implements

public class ResourceSet
implements JsonSerializable<ResourceSet>

The base resource set for visibility and auto-approval.

Constructor Summary

Constructor Description
ResourceSet()

Creates an instance of ResourceSet class.

Method Summary

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

Reads an instance of ResourceSet from the JsonReader.

List<String> subscriptions()

Get the subscriptions property: The list of subscriptions.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceSet withSubscriptions(List<String> subscriptions)

Set the subscriptions property: The list of subscriptions.

Methods inherited from java.lang.Object

Constructor Details

ResourceSet

public ResourceSet()

Creates an instance of ResourceSet class.

Method Details

fromJson

public static ResourceSet fromJson(JsonReader jsonReader)

Reads an instance of ResourceSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

subscriptions

public List subscriptions()

Get the subscriptions property: The list of subscriptions.

Returns:

the subscriptions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSubscriptions

public ResourceSet withSubscriptions(List subscriptions)

Set the subscriptions property: The list of subscriptions.

Parameters:

subscriptions - the subscriptions value to set.

Returns:

the ResourceSet object itself.

Applies to