Class ContainerGroupInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.containerinstance.fluent.models.ContainerGroupInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class ContainerGroupInner
extends com.azure.core.management.Resource
A container group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the confidentialComputeProperties property: The properties for confidential container group.Get the containers property: The containers within the container group.Get the diagnostics property: The diagnostic information for a container group.Get the dnsConfig property: The DNS config information for a container group.Get the encryptionProperties property: The encryption properties for a container group.Get the extensions property: extensions used by virtual kubelet.static ContainerGroupInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerGroupInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.identity()Get the identity property: The identity of the container group, if configured.Get the imageRegistryCredentials property: The image registry credentials by which the container group is created from.Get the initContainers property: The init containers for a container group.Get the instanceView property: The instance view of the container group.Get the ipAddress property: The IP address type of the container group.name()Get the name property: The name of the resource.osType()Get the osType property: The operating system type required by the containers in the container group.priority()Get the priority property: The priority of the container group.Get the provisioningState property: The provisioning state of the container group.Get the restartPolicy property: Restart policy for all containers within the container groupsku()Get the sku property: The SKU for a container group.Get the subnetIds property: The subnet resource IDs for a container group.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.volumes()Get the volumes property: The list of volumes that can be mounted by containers in this container group.withConfidentialComputeProperties(ConfidentialComputeProperties confidentialComputeProperties) Set the confidentialComputeProperties property: The properties for confidential container group.withContainers(List<Container> containers) Set the containers property: The containers within the container group.withDiagnostics(ContainerGroupDiagnostics diagnostics) Set the diagnostics property: The diagnostic information for a container group.withDnsConfig(DnsConfiguration dnsConfig) Set the dnsConfig property: The DNS config information for a container group.withEncryptionProperties(EncryptionProperties encryptionProperties) Set the encryptionProperties property: The encryption properties for a container group.withExtensions(List<DeploymentExtensionSpec> extensions) Set the extensions property: extensions used by virtual kubelet.withIdentity(ContainerGroupIdentity identity) Set the identity property: The identity of the container group, if configured.withImageRegistryCredentials(List<ImageRegistryCredential> imageRegistryCredentials) Set the imageRegistryCredentials property: The image registry credentials by which the container group is created from.withInitContainers(List<InitContainerDefinition> initContainers) Set the initContainers property: The init containers for a container group.withIpAddress(IpAddress ipAddress) Set the ipAddress property: The IP address type of the container group.withLocation(String location) withOsType(OperatingSystemTypes osType) Set the osType property: The operating system type required by the containers in the container group.withPriority(ContainerGroupPriority priority) Set the priority property: The priority of the container group.withRestartPolicy(ContainerGroupRestartPolicy restartPolicy) Set the restartPolicy property: Restart policy for all containers within the container groupwithSku(ContainerGroupSku sku) Set the sku property: The SKU for a container group.withSubnetIds(List<ContainerGroupSubnetId> subnetIds) Set the subnetIds property: The subnet resource IDs for a container group.withVolumes(List<Volume> volumes) Set the volumes property: The list of volumes that can be mounted by containers in this container group.Set the zones property: The zones for the container group.zones()Get the zones property: The zones for the container group.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerGroupInner
public ContainerGroupInner()Creates an instance of ContainerGroupInner class.
-
-
Method Details
-
zones
Get the zones property: The zones for the container group.- Returns:
- the zones value.
-
withZones
Set the zones property: The zones for the container group.- Parameters:
zones- the zones value to set.- Returns:
- the ContainerGroupInner object itself.
-
identity
Get the identity property: The identity of the container group, if configured.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The identity of the container group, if configured.- Parameters:
identity- the identity value to set.- Returns:
- the ContainerGroupInner object itself.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
provisioningState
Get the provisioningState property: The provisioning state of the container group. This only appears in the response.- Returns:
- the provisioningState value.
-
containers
Get the containers property: The containers within the container group.- Returns:
- the containers value.
-
withContainers
Set the containers property: The containers within the container group.- Parameters:
containers- the containers value to set.- Returns:
- the ContainerGroupInner object itself.
-
imageRegistryCredentials
Get the imageRegistryCredentials property: The image registry credentials by which the container group is created from.- Returns:
- the imageRegistryCredentials value.
-
withImageRegistryCredentials
public ContainerGroupInner withImageRegistryCredentials(List<ImageRegistryCredential> imageRegistryCredentials) Set the imageRegistryCredentials property: The image registry credentials by which the container group is created from.- Parameters:
imageRegistryCredentials- the imageRegistryCredentials value to set.- Returns:
- the ContainerGroupInner object itself.
-
restartPolicy
Get the restartPolicy property: Restart policy for all containers within the container group. - `Always` Always restart - `OnFailure` Restart on failure - `Never` Never restart.- Returns:
- the restartPolicy value.
-
withRestartPolicy
Set the restartPolicy property: Restart policy for all containers within the container group. - `Always` Always restart - `OnFailure` Restart on failure - `Never` Never restart.- Parameters:
restartPolicy- the restartPolicy value to set.- Returns:
- the ContainerGroupInner object itself.
-
ipAddress
Get the ipAddress property: The IP address type of the container group.- Returns:
- the ipAddress value.
-
withIpAddress
Set the ipAddress property: The IP address type of the container group.- Parameters:
ipAddress- the ipAddress value to set.- Returns:
- the ContainerGroupInner object itself.
-
osType
Get the osType property: The operating system type required by the containers in the container group.- Returns:
- the osType value.
-
withOsType
Set the osType property: The operating system type required by the containers in the container group.- Parameters:
osType- the osType value to set.- Returns:
- the ContainerGroupInner object itself.
-
volumes
Get the volumes property: The list of volumes that can be mounted by containers in this container group.- Returns:
- the volumes value.
-
withVolumes
Set the volumes property: The list of volumes that can be mounted by containers in this container group.- Parameters:
volumes- the volumes value to set.- Returns:
- the ContainerGroupInner object itself.
-
instanceView
Get the instanceView property: The instance view of the container group. Only valid in response.- Returns:
- the instanceView value.
-
diagnostics
Get the diagnostics property: The diagnostic information for a container group.- Returns:
- the diagnostics value.
-
withDiagnostics
Set the diagnostics property: The diagnostic information for a container group.- Parameters:
diagnostics- the diagnostics value to set.- Returns:
- the ContainerGroupInner object itself.
-
subnetIds
Get the subnetIds property: The subnet resource IDs for a container group.- Returns:
- the subnetIds value.
-
withSubnetIds
Set the subnetIds property: The subnet resource IDs for a container group.- Parameters:
subnetIds- the subnetIds value to set.- Returns:
- the ContainerGroupInner object itself.
-
dnsConfig
Get the dnsConfig property: The DNS config information for a container group.- Returns:
- the dnsConfig value.
-
withDnsConfig
Set the dnsConfig property: The DNS config information for a container group.- Parameters:
dnsConfig- the dnsConfig value to set.- Returns:
- the ContainerGroupInner object itself.
-
sku
Get the sku property: The SKU for a container group.- Returns:
- the sku value.
-
withSku
Set the sku property: The SKU for a container group.- Parameters:
sku- the sku value to set.- Returns:
- the ContainerGroupInner object itself.
-
encryptionProperties
Get the encryptionProperties property: The encryption properties for a container group.- Returns:
- the encryptionProperties value.
-
withEncryptionProperties
Set the encryptionProperties property: The encryption properties for a container group.- Parameters:
encryptionProperties- the encryptionProperties value to set.- Returns:
- the ContainerGroupInner object itself.
-
initContainers
Get the initContainers property: The init containers for a container group.- Returns:
- the initContainers value.
-
withInitContainers
Set the initContainers property: The init containers for a container group.- Parameters:
initContainers- the initContainers value to set.- Returns:
- the ContainerGroupInner object itself.
-
extensions
Get the extensions property: extensions used by virtual kubelet.- Returns:
- the extensions value.
-
withExtensions
Set the extensions property: extensions used by virtual kubelet.- Parameters:
extensions- the extensions value to set.- Returns:
- the ContainerGroupInner object itself.
-
confidentialComputeProperties
Get the confidentialComputeProperties property: The properties for confidential container group.- Returns:
- the confidentialComputeProperties value.
-
withConfidentialComputeProperties
public ContainerGroupInner withConfidentialComputeProperties(ConfidentialComputeProperties confidentialComputeProperties) Set the confidentialComputeProperties property: The properties for confidential container group.- Parameters:
confidentialComputeProperties- the confidentialComputeProperties value to set.- Returns:
- the ContainerGroupInner object itself.
-
priority
Get the priority property: The priority of the container group.- Returns:
- the priority value.
-
withPriority
Set the priority property: The priority of the container group.- Parameters:
priority- the priority value to set.- Returns:
- the ContainerGroupInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of ContainerGroupInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerGroupInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ContainerGroupInner.
-