Class ContainerGroupInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.containerinstance.fluent.models.ContainerGroupInner
-
public final class ContainerGroupInner extends com.azure.core.management.ResourceA container group.
-
-
Constructor Summary
Constructors Constructor Description ContainerGroupInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Container>containers()Get the containers property: The containers within the container group.ContainerGroupDiagnosticsdiagnostics()Get the diagnostics property: The diagnostic information for a container group.DnsConfigurationdnsConfig()Get the dnsConfig property: The DNS config information for a container group.EncryptionPropertiesencryptionProperties()Get the encryptionProperties property: The encryption properties for a container group.ContainerGroupIdentityidentity()Get the identity property: The identity of the container group, if configured.List<ImageRegistryCredential>imageRegistryCredentials()Get the imageRegistryCredentials property: The image registry credentials by which the container group is created from.List<InitContainerDefinition>initContainers()Get the initContainers property: The init containers for a container group.ContainerGroupPropertiesInstanceViewinstanceView()Get the instanceView property: The instance view of the container group.IpAddressipAddress()Get the ipAddress property: The IP address type of the container group.OperatingSystemTypesosType()Get the osType property: The operating system type required by the containers in the container group.StringprovisioningState()Get the provisioningState property: The provisioning state of the container group.ContainerGroupRestartPolicyrestartPolicy()Get the restartPolicy property: Restart policy for all containers within the container group.ContainerGroupSkusku()Get the sku property: The SKU for a container group.List<ContainerGroupSubnetId>subnetIds()Get the subnetIds property: The subnet resource IDs for a container group.voidvalidate()Validates the instance.List<Volume>volumes()Get the volumes property: The list of volumes that can be mounted by containers in this container group.ContainerGroupInnerwithContainers(List<Container> containers)Set the containers property: The containers within the container group.ContainerGroupInnerwithDiagnostics(ContainerGroupDiagnostics diagnostics)Set the diagnostics property: The diagnostic information for a container group.ContainerGroupInnerwithDnsConfig(DnsConfiguration dnsConfig)Set the dnsConfig property: The DNS config information for a container group.ContainerGroupInnerwithEncryptionProperties(EncryptionProperties encryptionProperties)Set the encryptionProperties property: The encryption properties for a container group.ContainerGroupInnerwithIdentity(ContainerGroupIdentity identity)Set the identity property: The identity of the container group, if configured.ContainerGroupInnerwithImageRegistryCredentials(List<ImageRegistryCredential> imageRegistryCredentials)Set the imageRegistryCredentials property: The image registry credentials by which the container group is created from.ContainerGroupInnerwithInitContainers(List<InitContainerDefinition> initContainers)Set the initContainers property: The init containers for a container group.ContainerGroupInnerwithIpAddress(IpAddress ipAddress)Set the ipAddress property: The IP address type of the container group.ContainerGroupInnerwithLocation(String location)ContainerGroupInnerwithOsType(OperatingSystemTypes osType)Set the osType property: The operating system type required by the containers in the container group.ContainerGroupInnerwithRestartPolicy(ContainerGroupRestartPolicy restartPolicy)Set the restartPolicy property: Restart policy for all containers within the container group.ContainerGroupInnerwithSku(ContainerGroupSku sku)Set the sku property: The SKU for a container group.ContainerGroupInnerwithSubnetIds(List<ContainerGroupSubnetId> subnetIds)Set the subnetIds property: The subnet resource IDs for a container group.ContainerGroupInnerwithTags(Map<String,String> tags)ContainerGroupInnerwithVolumes(List<Volume> volumes)Set the volumes property: The list of volumes that can be mounted by containers in this container group.ContainerGroupInnerwithZones(List<String> zones)Set the zones property: The zones for the container group.List<String>zones()Get the zones property: The zones for the container group.
-
-
-
Method Detail
-
identity
public ContainerGroupIdentity identity()
Get the identity property: The identity of the container group, if configured.- Returns:
- the identity value.
-
withIdentity
public ContainerGroupInner withIdentity(ContainerGroupIdentity identity)
Set the identity property: The identity of the container group, if configured.- Parameters:
identity- the identity value to set.- Returns:
- the ContainerGroupInner object itself.
-
zones
public List<String> zones()
Get the zones property: The zones for the container group.- Returns:
- the zones value.
-
withZones
public ContainerGroupInner withZones(List<String> zones)
Set the zones property: The zones for the container group.- Parameters:
zones- the zones value to set.- Returns:
- the ContainerGroupInner object itself.
-
withLocation
public ContainerGroupInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public ContainerGroupInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state of the container group. This only appears in the response.- Returns:
- the provisioningState value.
-
containers
public List<Container> containers()
Get the containers property: The containers within the container group.- Returns:
- the containers value.
-
withContainers
public ContainerGroupInner withContainers(List<Container> containers)
Set the containers property: The containers within the container group.- Parameters:
containers- the containers value to set.- Returns:
- the ContainerGroupInner object itself.
-
imageRegistryCredentials
public List<ImageRegistryCredential> 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
public ContainerGroupRestartPolicy 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
public ContainerGroupInner withRestartPolicy(ContainerGroupRestartPolicy restartPolicy)
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
public IpAddress ipAddress()
Get the ipAddress property: The IP address type of the container group.- Returns:
- the ipAddress value.
-
withIpAddress
public ContainerGroupInner withIpAddress(IpAddress ipAddress)
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
public OperatingSystemTypes osType()
Get the osType property: The operating system type required by the containers in the container group.- Returns:
- the osType value.
-
withOsType
public ContainerGroupInner withOsType(OperatingSystemTypes osType)
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
public List<Volume> volumes()
Get the volumes property: The list of volumes that can be mounted by containers in this container group.- Returns:
- the volumes value.
-
withVolumes
public ContainerGroupInner withVolumes(List<Volume> volumes)
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
public ContainerGroupPropertiesInstanceView instanceView()
Get the instanceView property: The instance view of the container group. Only valid in response.- Returns:
- the instanceView value.
-
diagnostics
public ContainerGroupDiagnostics diagnostics()
Get the diagnostics property: The diagnostic information for a container group.- Returns:
- the diagnostics value.
-
withDiagnostics
public ContainerGroupInner withDiagnostics(ContainerGroupDiagnostics diagnostics)
Set the diagnostics property: The diagnostic information for a container group.- Parameters:
diagnostics- the diagnostics value to set.- Returns:
- the ContainerGroupInner object itself.
-
subnetIds
public List<ContainerGroupSubnetId> subnetIds()
Get the subnetIds property: The subnet resource IDs for a container group.- Returns:
- the subnetIds value.
-
withSubnetIds
public ContainerGroupInner withSubnetIds(List<ContainerGroupSubnetId> subnetIds)
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
public DnsConfiguration dnsConfig()
Get the dnsConfig property: The DNS config information for a container group.- Returns:
- the dnsConfig value.
-
withDnsConfig
public ContainerGroupInner withDnsConfig(DnsConfiguration dnsConfig)
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
public ContainerGroupSku sku()
Get the sku property: The SKU for a container group.- Returns:
- the sku value.
-
withSku
public ContainerGroupInner withSku(ContainerGroupSku sku)
Set the sku property: The SKU for a container group.- Parameters:
sku- the sku value to set.- Returns:
- the ContainerGroupInner object itself.
-
encryptionProperties
public EncryptionProperties encryptionProperties()
Get the encryptionProperties property: The encryption properties for a container group.- Returns:
- the encryptionProperties value.
-
withEncryptionProperties
public ContainerGroupInner withEncryptionProperties(EncryptionProperties encryptionProperties)
Set the encryptionProperties property: The encryption properties for a container group.- Parameters:
encryptionProperties- the encryptionProperties value to set.- Returns:
- the ContainerGroupInner object itself.
-
initContainers
public List<InitContainerDefinition> initContainers()
Get the initContainers property: The init containers for a container group.- Returns:
- the initContainers value.
-
withInitContainers
public ContainerGroupInner withInitContainers(List<InitContainerDefinition> initContainers)
Set the initContainers property: The init containers for a container group.- Parameters:
initContainers- the initContainers value to set.- Returns:
- the ContainerGroupInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-