ContainerGroupProfileStub Class

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

Implements

public final class ContainerGroupProfileStub
implements JsonSerializable<ContainerGroupProfileStub>

The object that contains a reference to a Container Group Profile and it's other related properties.

Constructor Summary

Constructor Description
ContainerGroupProfileStub()

Creates an instance of ContainerGroupProfileStub class.

Method Summary

Modifier and Type Method and Description
NGroupContainerGroupProperties containerGroupProperties()

Get the containerGroupProperties property: Container Group properties which can be set while creating or updating the NGroups.

static ContainerGroupProfileStub fromJson(JsonReader jsonReader)

Reads an instance of ContainerGroupProfileStub from the JsonReader.

NetworkProfile networkProfile()

Get the networkProfile property: A network profile for network settings of a ContainerGroupProfile.

ApiEntityReference resource()

Get the resource property: A reference to the container group profile ARM resource hosted in ACI RP.

Integer revision()

Get the revision property: The revision of the CG profile is an optional property.

StorageProfile storageProfile()

Get the storageProfile property: Storage profile for storage related settings of a container group profile.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerGroupProfileStub withContainerGroupProperties(NGroupContainerGroupProperties containerGroupProperties)

Set the containerGroupProperties property: Container Group properties which can be set while creating or updating the NGroups.

ContainerGroupProfileStub withNetworkProfile(NetworkProfile networkProfile)

Set the networkProfile property: A network profile for network settings of a ContainerGroupProfile.

ContainerGroupProfileStub withResource(ApiEntityReference resource)

Set the resource property: A reference to the container group profile ARM resource hosted in ACI RP.

ContainerGroupProfileStub withRevision(Integer revision)

Set the revision property: The revision of the CG profile is an optional property.

ContainerGroupProfileStub withStorageProfile(StorageProfile storageProfile)

Set the storageProfile property: Storage profile for storage related settings of a container group profile.

Methods inherited from java.lang.Object

Constructor Details

ContainerGroupProfileStub

public ContainerGroupProfileStub()

Creates an instance of ContainerGroupProfileStub class.

Method Details

containerGroupProperties

public NGroupContainerGroupProperties containerGroupProperties()

Get the containerGroupProperties property: Container Group properties which can be set while creating or updating the NGroups.

Returns:

the containerGroupProperties value.

fromJson

public static ContainerGroupProfileStub fromJson(JsonReader jsonReader)

Reads an instance of ContainerGroupProfileStub from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

networkProfile

public NetworkProfile networkProfile()

Get the networkProfile property: A network profile for network settings of a ContainerGroupProfile.

Returns:

the networkProfile value.

resource

public ApiEntityReference resource()

Get the resource property: A reference to the container group profile ARM resource hosted in ACI RP.

Returns:

the resource value.

revision

public Integer revision()

Get the revision property: The revision of the CG profile is an optional property. If customer does not to provide a revision then NGroups will pickup the latest revision of CGProfile.

Returns:

the revision value.

storageProfile

public StorageProfile storageProfile()

Get the storageProfile property: Storage profile for storage related settings of a container group profile.

Returns:

the storageProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withContainerGroupProperties

public ContainerGroupProfileStub withContainerGroupProperties(NGroupContainerGroupProperties containerGroupProperties)

Set the containerGroupProperties property: Container Group properties which can be set while creating or updating the NGroups.

Parameters:

containerGroupProperties - the containerGroupProperties value to set.

Returns:

the ContainerGroupProfileStub object itself.

withNetworkProfile

public ContainerGroupProfileStub withNetworkProfile(NetworkProfile networkProfile)

Set the networkProfile property: A network profile for network settings of a ContainerGroupProfile.

Parameters:

networkProfile - the networkProfile value to set.

Returns:

the ContainerGroupProfileStub object itself.

withResource

public ContainerGroupProfileStub withResource(ApiEntityReference resource)

Set the resource property: A reference to the container group profile ARM resource hosted in ACI RP.

Parameters:

resource - the resource value to set.

Returns:

the ContainerGroupProfileStub object itself.

withRevision

public ContainerGroupProfileStub withRevision(Integer revision)

Set the revision property: The revision of the CG profile is an optional property. If customer does not to provide a revision then NGroups will pickup the latest revision of CGProfile.

Parameters:

revision - the revision value to set.

Returns:

the ContainerGroupProfileStub object itself.

withStorageProfile

public ContainerGroupProfileStub withStorageProfile(StorageProfile storageProfile)

Set the storageProfile property: Storage profile for storage related settings of a container group profile.

Parameters:

storageProfile - the storageProfile value to set.

Returns:

the ContainerGroupProfileStub object itself.

Applies to