Class InitContainerDefinition
java.lang.Object
com.microsoft.azure.management.containerinstance.InitContainerDefinition
The init container definition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncommand()
Get the command to execute within the init container in exec form.Get the environment variables to set in the init container.image()
Get the image of the init container.Get the instance view of the init container.name()
Get the name for the init container.Get the volume mounts available to the init container.withCommand
(List<String> command) Set the command to execute within the init container in exec form.withEnvironmentVariables
(List<EnvironmentVariable> environmentVariables) Set the environment variables to set in the init container.Set the image of the init container.Set the name for the init container.withVolumeMounts
(List<VolumeMount> volumeMounts) Set the volume mounts available to the init container.
-
Constructor Details
-
InitContainerDefinition
public InitContainerDefinition()
-
-
Method Details
-
name
Get the name for the init container.- Returns:
- the name value
-
withName
Set the name for the init container.- Parameters:
name
- the name value to set- Returns:
- the InitContainerDefinition object itself.
-
image
Get the image of the init container.- Returns:
- the image value
-
withImage
Set the image of the init container.- Parameters:
image
- the image value to set- Returns:
- the InitContainerDefinition object itself.
-
command
Get the command to execute within the init container in exec form.- Returns:
- the command value
-
withCommand
Set the command to execute within the init container in exec form.- Parameters:
command
- the command value to set- Returns:
- the InitContainerDefinition object itself.
-
environmentVariables
Get the environment variables to set in the init container.- Returns:
- the environmentVariables value
-
withEnvironmentVariables
public InitContainerDefinition withEnvironmentVariables(List<EnvironmentVariable> environmentVariables) Set the environment variables to set in the init container.- Parameters:
environmentVariables
- the environmentVariables value to set- Returns:
- the InitContainerDefinition object itself.
-
instanceView
Get the instance view of the init container. Only valid in response.- Returns:
- the instanceView value
-
volumeMounts
Get the volume mounts available to the init container.- Returns:
- the volumeMounts value
-
withVolumeMounts
Set the volume mounts available to the init container.- Parameters:
volumeMounts
- the volumeMounts value to set- Returns:
- the InitContainerDefinition object itself.
-