SubgroupProfile Class

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

Implements

public final class SubgroupProfile
implements JsonSerializable<SubgroupProfile>

Subgroup profile of the interconnect group resource.

Constructor Summary

Constructor Description
SubgroupProfile()

Creates an instance of SubgroupProfile class.

Method Summary

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

Reads an instance of SubgroupProfile from the JsonReader.

SubgroupProfileScope scope()

Get the scope property: Scope of the subgroup profile.

Integer size()

Get the size property: Size of the subgroup profile.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String vmSize()

Get the vmSize property: VM size of the subgroup profile.

SubgroupProfile withScope(SubgroupProfileScope scope)

Set the scope property: Scope of the subgroup profile.

SubgroupProfile withSize(Integer size)

Set the size property: Size of the subgroup profile.

SubgroupProfile withVmSize(String vmSize)

Set the vmSize property: VM size of the subgroup profile.

Methods inherited from java.lang.Object

Constructor Details

SubgroupProfile

public SubgroupProfile()

Creates an instance of SubgroupProfile class.

Method Details

fromJson

public static SubgroupProfile fromJson(JsonReader jsonReader)

Reads an instance of SubgroupProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

scope

public SubgroupProfileScope scope()

Get the scope property: Scope of the subgroup profile.

Returns:

the scope value.

size

public Integer size()

Get the size property: Size of the subgroup profile.

Returns:

the size value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vmSize

public String vmSize()

Get the vmSize property: VM size of the subgroup profile.

Returns:

the vmSize value.

withScope

public SubgroupProfile withScope(SubgroupProfileScope scope)

Set the scope property: Scope of the subgroup profile.

Parameters:

scope - the scope value to set.

Returns:

the SubgroupProfile object itself.

withSize

public SubgroupProfile withSize(Integer size)

Set the size property: Size of the subgroup profile.

Parameters:

size - the size value to set.

Returns:

the SubgroupProfile object itself.

withVmSize

public SubgroupProfile withVmSize(String vmSize)

Set the vmSize property: VM size of the subgroup profile.

Parameters:

vmSize - the vmSize value to set.

Returns:

the SubgroupProfile object itself.

Applies to