NGroupInner Class

public final class NGroupInner
extends ProxyResource

Describes the NGroups resource.

Constructor Summary

Constructor Description
NGroupInner()

Creates an instance of NGroupInner class.

Method Summary

Modifier and Type Method and Description
List<ContainerGroupProfileStub> containerGroupProfiles()

Get the containerGroupProfiles property: The Container Group Profiles that could be used in the NGroups resource.

ElasticProfile elasticProfile()

Get the elasticProfile property: The elastic profile.

static NGroupInner fromJson(JsonReader jsonReader)

Reads an instance of NGroupInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

NGroupIdentity identity()

Get the identity property: The identity of the NGroup, if configured.

String location()

Get the location property: The geo-location where the resource lives.

String name()

Get the name property: The name of the resource.

PlacementProfile placementProfile()

Get the placementProfile property: Provides options w.r.t allocation and management w.r.t certain placement policies.

NGroupProvisioningState provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

UpdateProfile updateProfile()

Get the updateProfile property: Used by the customer to specify the way to update the Container Groups in NGroup.

void validate()

Validates the instance.

NGroupInner withContainerGroupProfiles(List<ContainerGroupProfileStub> containerGroupProfiles)

Set the containerGroupProfiles property: The Container Group Profiles that could be used in the NGroups resource.

NGroupInner withElasticProfile(ElasticProfile elasticProfile)

Set the elasticProfile property: The elastic profile.

NGroupInner withIdentity(NGroupIdentity identity)

Set the identity property: The identity of the NGroup, if configured.

NGroupInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

NGroupInner withPlacementProfile(PlacementProfile placementProfile)

Set the placementProfile property: Provides options w.r.t allocation and management w.r.t certain placement policies.

NGroupInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

NGroupInner withUpdateProfile(UpdateProfile updateProfile)

Set the updateProfile property: Used by the customer to specify the way to update the Container Groups in NGroup.

NGroupInner withZones(List<String> zones)

Set the zones property: The availability zones.

List<String> zones()

Get the zones property: The availability zones.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

NGroupInner

public NGroupInner()

Creates an instance of NGroupInner class.

Method Details

containerGroupProfiles

public List<ContainerGroupProfileStub> containerGroupProfiles()

Get the containerGroupProfiles property: The Container Group Profiles that could be used in the NGroups resource.

Returns:

the containerGroupProfiles value.

elasticProfile

public ElasticProfile elasticProfile()

Get the elasticProfile property: The elastic profile.

Returns:

the elasticProfile value.

fromJson

public static NGroupInner fromJson(JsonReader jsonReader)

Reads an instance of NGroupInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

NGroupInner.id()

Returns:

the id value.

identity

public NGroupIdentity identity()

Get the identity property: The identity of the NGroup, if configured.

Returns:

the identity value.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

NGroupInner.name()

Returns:

the name value.

placementProfile

public PlacementProfile placementProfile()

Get the placementProfile property: Provides options w.r.t allocation and management w.r.t certain placement policies. These utilize capabilities provided by the underlying Azure infrastructure. They are typically used for high availability scenarios. E.g., distributing CGs across fault domains.

Returns:

the placementProfile value.

provisioningState

public NGroupProvisioningState provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

Returns:

the provisioningState value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NGroupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

NGroupInner.type()

Returns:

the type value.

updateProfile

public UpdateProfile updateProfile()

Get the updateProfile property: Used by the customer to specify the way to update the Container Groups in NGroup.

Returns:

the updateProfile value.

validate

public void validate()

Validates the instance.

withContainerGroupProfiles

public NGroupInner withContainerGroupProfiles(List<ContainerGroupProfileStub> containerGroupProfiles)

Set the containerGroupProfiles property: The Container Group Profiles that could be used in the NGroups resource.

Parameters:

containerGroupProfiles - the containerGroupProfiles value to set.

Returns:

the NGroupInner object itself.

withElasticProfile

public NGroupInner withElasticProfile(ElasticProfile elasticProfile)

Set the elasticProfile property: The elastic profile.

Parameters:

elasticProfile - the elasticProfile value to set.

Returns:

the NGroupInner object itself.

withIdentity

public NGroupInner withIdentity(NGroupIdentity identity)

Set the identity property: The identity of the NGroup, if configured.

Parameters:

identity - the identity value to set.

Returns:

the NGroupInner object itself.

withLocation

public NGroupInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

Parameters:

location - the location value to set.

Returns:

the NGroupInner object itself.

withPlacementProfile

public NGroupInner withPlacementProfile(PlacementProfile placementProfile)

Set the placementProfile property: Provides options w.r.t allocation and management w.r.t certain placement policies. These utilize capabilities provided by the underlying Azure infrastructure. They are typically used for high availability scenarios. E.g., distributing CGs across fault domains.

Parameters:

placementProfile - the placementProfile value to set.

Returns:

the NGroupInner object itself.

withTags

public NGroupInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the NGroupInner object itself.

withUpdateProfile

public NGroupInner withUpdateProfile(UpdateProfile updateProfile)

Set the updateProfile property: Used by the customer to specify the way to update the Container Groups in NGroup.

Parameters:

updateProfile - the updateProfile value to set.

Returns:

the NGroupInner object itself.

withZones

public NGroupInner withZones(List<String> zones)

Set the zones property: The availability zones.

Parameters:

zones - the zones value to set.

Returns:

the NGroupInner object itself.

zones

public List<String> zones()

Get the zones property: The availability zones.

Returns:

the zones value.

Applies to