Class ContainerProperties
java.lang.Object
com.azure.resourcemanager.containerinstance.fluent.models.ContainerProperties
The container instance properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommand()Get the command property: The commands to execute within the container instance in exec form.Get the environmentVariables property: The environment variables to set in the container instance.image()Get the image property: The name of the image used to create the container instance.Get the instanceView property: The instance view of the container instance.Get the livenessProbe property: The liveness probe.ports()Get the ports property: The exposed ports on the container instance.Get the readinessProbe property: The readiness probe.Get the resources property: The resource requirements of the container instance.voidvalidate()Validates the instance.Get the volumeMounts property: The volume mounts available to the container instance.withCommand(List<String> command) Set the command property: The commands to execute within the container instance in exec form.withEnvironmentVariables(List<EnvironmentVariable> environmentVariables) Set the environmentVariables property: The environment variables to set in the container instance.Set the image property: The name of the image used to create the container instance.withLivenessProbe(ContainerProbe livenessProbe) Set the livenessProbe property: The liveness probe.withPorts(List<ContainerPort> ports) Set the ports property: The exposed ports on the container instance.withReadinessProbe(ContainerProbe readinessProbe) Set the readinessProbe property: The readiness probe.withResources(ResourceRequirements resources) Set the resources property: The resource requirements of the container instance.withVolumeMounts(List<VolumeMount> volumeMounts) Set the volumeMounts property: The volume mounts available to the container instance.
-
Constructor Details
-
ContainerProperties
public ContainerProperties()
-
-
Method Details
-
image
Get the image property: The name of the image used to create the container instance.- Returns:
- the image value.
-
withImage
Set the image property: The name of the image used to create the container instance.- Parameters:
image- the image value to set.- Returns:
- the ContainerProperties object itself.
-
command
Get the command property: The commands to execute within the container instance in exec form.- Returns:
- the command value.
-
withCommand
Set the command property: The commands to execute within the container instance in exec form.- Parameters:
command- the command value to set.- Returns:
- the ContainerProperties object itself.
-
ports
Get the ports property: The exposed ports on the container instance.- Returns:
- the ports value.
-
withPorts
Set the ports property: The exposed ports on the container instance.- Parameters:
ports- the ports value to set.- Returns:
- the ContainerProperties object itself.
-
environmentVariables
Get the environmentVariables property: The environment variables to set in the container instance.- Returns:
- the environmentVariables value.
-
withEnvironmentVariables
Set the environmentVariables property: The environment variables to set in the container instance.- Parameters:
environmentVariables- the environmentVariables value to set.- Returns:
- the ContainerProperties object itself.
-
instanceView
Get the instanceView property: The instance view of the container instance. Only valid in response.- Returns:
- the instanceView value.
-
resources
Get the resources property: The resource requirements of the container instance.- Returns:
- the resources value.
-
withResources
Set the resources property: The resource requirements of the container instance.- Parameters:
resources- the resources value to set.- Returns:
- the ContainerProperties object itself.
-
volumeMounts
Get the volumeMounts property: The volume mounts available to the container instance.- Returns:
- the volumeMounts value.
-
withVolumeMounts
Set the volumeMounts property: The volume mounts available to the container instance.- Parameters:
volumeMounts- the volumeMounts value to set.- Returns:
- the ContainerProperties object itself.
-
livenessProbe
Get the livenessProbe property: The liveness probe.- Returns:
- the livenessProbe value.
-
withLivenessProbe
Set the livenessProbe property: The liveness probe.- Parameters:
livenessProbe- the livenessProbe value to set.- Returns:
- the ContainerProperties object itself.
-
readinessProbe
Get the readinessProbe property: The readiness probe.- Returns:
- the readinessProbe value.
-
withReadinessProbe
Set the readinessProbe property: The readiness probe.- Parameters:
readinessProbe- the readinessProbe value to set.- Returns:
- the ContainerProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-