Class Container
java.lang.Object
com.microsoft.azure.management.containerinstance.Container
A container instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncommand()
Get the commands to execute within the container instance in exec form.Get the environment variables to set in the container instance.image()
Get the name of the image used to create the container instance.Get the instance view of the container instance.Get the liveness probe.name()
Get the user-provided name of the container instance.ports()
Get the exposed ports on the container instance.Get the readiness probe.Get the resource requirements of the container instance.Get the volume mounts available to the container instance.withCommand
(List<String> command) Set the commands to execute within the container instance in exec form.withEnvironmentVariables
(List<EnvironmentVariable> environmentVariables) Set the environment variables to set in the container instance.Set the name of the image used to create the container instance.withLivenessProbe
(ContainerProbe livenessProbe) Set the liveness probe.Set the user-provided name of the container instance.withPorts
(List<ContainerPort> ports) Set the exposed ports on the container instance.withReadinessProbe
(ContainerProbe readinessProbe) Set the readiness probe.withResources
(ResourceRequirements resources) Set the resource requirements of the container instance.withVolumeMounts
(List<VolumeMount> volumeMounts) Set the volume mounts available to the container instance.
-
Constructor Details
-
Container
public Container()
-
-
Method Details
-
name
Get the user-provided name of the container instance.- Returns:
- the name value
-
withName
Set the user-provided name of the container instance.- Parameters:
name
- the name value to set- Returns:
- the Container object itself.
-
image
Get the name of the image used to create the container instance.- Returns:
- the image value
-
withImage
Set the name of the image used to create the container instance.- Parameters:
image
- the image value to set- Returns:
- the Container object itself.
-
command
Get the commands to execute within the container instance in exec form.- Returns:
- the command value
-
withCommand
Set the commands to execute within the container instance in exec form.- Parameters:
command
- the command value to set- Returns:
- the Container object itself.
-
ports
Get the exposed ports on the container instance.- Returns:
- the ports value
-
withPorts
Set the exposed ports on the container instance.- Parameters:
ports
- the ports value to set- Returns:
- the Container object itself.
-
environmentVariables
Get the environment variables to set in the container instance.- Returns:
- the environmentVariables value
-
withEnvironmentVariables
Set the environment variables to set in the container instance.- Parameters:
environmentVariables
- the environmentVariables value to set- Returns:
- the Container object itself.
-
instanceView
Get the instance view of the container instance. Only valid in response.- Returns:
- the instanceView value
-
resources
Get the resource requirements of the container instance.- Returns:
- the resources value
-
withResources
Set the resource requirements of the container instance.- Parameters:
resources
- the resources value to set- Returns:
- the Container object itself.
-
volumeMounts
Get the volume mounts available to the container instance.- Returns:
- the volumeMounts value
-
withVolumeMounts
Set the volume mounts available to the container instance.- Parameters:
volumeMounts
- the volumeMounts value to set- Returns:
- the Container object itself.
-
livenessProbe
Get the liveness probe.- Returns:
- the livenessProbe value
-
withLivenessProbe
Set the liveness probe.- Parameters:
livenessProbe
- the livenessProbe value to set- Returns:
- the Container object itself.
-
readinessProbe
Get the readiness probe.- Returns:
- the readinessProbe value
-
withReadinessProbe
Set the readiness probe.- Parameters:
readinessProbe
- the readinessProbe value to set- Returns:
- the Container object itself.
-