ManagedResourceGroupConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration

Implements

public final class ManagedResourceGroupConfiguration
implements JsonSerializable<ManagedResourceGroupConfiguration>

ManagedResourceGroupConfiguration represents the configuration of the resource group managed by Azure.

Constructor Summary

Constructor Description
ManagedResourceGroupConfiguration()

Creates an instance of ManagedResourceGroupConfiguration class.

Method Summary

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

Reads an instance of ManagedResourceGroupConfiguration from the JsonReader.

String location()

Get the location property: The location of the managed resource group.

String name()

Get the name property: The name for the managed resource group.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedResourceGroupConfiguration withLocation(String location)

Set the location property: The location of the managed resource group.

ManagedResourceGroupConfiguration withName(String name)

Set the name property: The name for the managed resource group.

Methods inherited from java.lang.Object

Constructor Details

ManagedResourceGroupConfiguration

public ManagedResourceGroupConfiguration()

Creates an instance of ManagedResourceGroupConfiguration class.

Method Details

fromJson

public static ManagedResourceGroupConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ManagedResourceGroupConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

location

public String location()

Get the location property: The location of the managed resource group. If not specified, the location of the parent resource is chosen.

Returns:

the location value.

name

public String name()

Get the name property: The name for the managed resource group. If not specified, the unique name is automatically generated.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLocation

public ManagedResourceGroupConfiguration withLocation(String location)

Set the location property: The location of the managed resource group. If not specified, the location of the parent resource is chosen.

Parameters:

location - the location value to set.

Returns:

the ManagedResourceGroupConfiguration object itself.

withName

public ManagedResourceGroupConfiguration withName(String name)

Set the name property: The name for the managed resource group. If not specified, the unique name is automatically generated.

Parameters:

name - the name value to set.

Returns:

the ManagedResourceGroupConfiguration object itself.

Applies to