NGroupContainerGroupProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.NGroupContainerGroupProperties

Implements

public final class NGroupContainerGroupProperties
implements JsonSerializable<NGroupContainerGroupProperties>

Container Group properties which can be set while creating or updating the NGroups.

Constructor Summary

Constructor Description
NGroupContainerGroupProperties()

Creates an instance of NGroupContainerGroupProperties class.

Method Summary

Modifier and Type Method and Description
List<NGroupCGPropertyContainer> containers()

Get the containers property: Contains information about Container which can be set while creating or updating the NGroups.

static NGroupContainerGroupProperties fromJson(JsonReader jsonReader)

Reads an instance of NGroupContainerGroupProperties from the JsonReader.

List<ContainerGroupSubnetId> subnetIds()

Get the subnetIds property: Contains information about Virtual Network Subnet ARM Resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<NGroupCGPropertyVolume> volumes()

Get the volumes property: Contains information about the volumes that can be mounted by Containers in the Container Groups.

NGroupContainerGroupProperties withContainers(List<NGroupCGPropertyContainer> containers)

Set the containers property: Contains information about Container which can be set while creating or updating the NGroups.

NGroupContainerGroupProperties withSubnetIds(List<ContainerGroupSubnetId> subnetIds)

Set the subnetIds property: Contains information about Virtual Network Subnet ARM Resource.

NGroupContainerGroupProperties withVolumes(List<NGroupCGPropertyVolume> volumes)

Set the volumes property: Contains information about the volumes that can be mounted by Containers in the Container Groups.

Methods inherited from java.lang.Object

Constructor Details

NGroupContainerGroupProperties

public NGroupContainerGroupProperties()

Creates an instance of NGroupContainerGroupProperties class.

Method Details

containers

public List<NGroupCGPropertyContainer> containers()

Get the containers property: Contains information about Container which can be set while creating or updating the NGroups.

Returns:

the containers value.

fromJson

public static NGroupContainerGroupProperties fromJson(JsonReader jsonReader)

Reads an instance of NGroupContainerGroupProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

subnetIds

public List<ContainerGroupSubnetId> subnetIds()

Get the subnetIds property: Contains information about Virtual Network Subnet ARM Resource.

Returns:

the subnetIds value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

volumes

public List<NGroupCGPropertyVolume> volumes()

Get the volumes property: Contains information about the volumes that can be mounted by Containers in the Container Groups.

Returns:

the volumes value.

withContainers

public NGroupContainerGroupProperties withContainers(List<NGroupCGPropertyContainer> containers)

Set the containers property: Contains information about Container which can be set while creating or updating the NGroups.

Parameters:

containers - the containers value to set.

Returns:

the NGroupContainerGroupProperties object itself.

withSubnetIds

public NGroupContainerGroupProperties withSubnetIds(List<ContainerGroupSubnetId> subnetIds)

Set the subnetIds property: Contains information about Virtual Network Subnet ARM Resource.

Parameters:

subnetIds - the subnetIds value to set.

Returns:

the NGroupContainerGroupProperties object itself.

withVolumes

public NGroupContainerGroupProperties withVolumes(List<NGroupCGPropertyVolume> volumes)

Set the volumes property: Contains information about the volumes that can be mounted by Containers in the Container Groups.

Parameters:

volumes - the volumes value to set.

Returns:

the NGroupContainerGroupProperties object itself.

Applies to