Class InitContainerPropertiesDefinition
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.fluent.models.InitContainerPropertiesDefinition
-
public final class InitContainerPropertiesDefinition extends Object
The init container definition properties.
-
-
Constructor Summary
Constructors Constructor Description InitContainerPropertiesDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>command()Get the command property: The command to execute within the init container in exec form.List<EnvironmentVariable>environmentVariables()Get the environmentVariables property: The environment variables to set in the init container.Stringimage()Get the image property: The image of the init container.InitContainerPropertiesDefinitionInstanceViewinstanceView()Get the instanceView property: The instance view of the init container.voidvalidate()Validates the instance.List<VolumeMount>volumeMounts()Get the volumeMounts property: The volume mounts available to the init container.InitContainerPropertiesDefinitionwithCommand(List<String> command)Set the command property: The command to execute within the init container in exec form.InitContainerPropertiesDefinitionwithEnvironmentVariables(List<EnvironmentVariable> environmentVariables)Set the environmentVariables property: The environment variables to set in the init container.InitContainerPropertiesDefinitionwithImage(String image)Set the image property: The image of the init container.InitContainerPropertiesDefinitionwithVolumeMounts(List<VolumeMount> volumeMounts)Set the volumeMounts property: The volume mounts available to the init container.
-
-
-
Method Detail
-
image
public String image()
Get the image property: The image of the init container.- Returns:
- the image value.
-
withImage
public InitContainerPropertiesDefinition withImage(String image)
Set the image property: The image of the init container.- Parameters:
image- the image value to set.- Returns:
- the InitContainerPropertiesDefinition object itself.
-
command
public List<String> command()
Get the command property: The command to execute within the init container in exec form.- Returns:
- the command value.
-
withCommand
public InitContainerPropertiesDefinition withCommand(List<String> command)
Set the command property: The command to execute within the init container in exec form.- Parameters:
command- the command value to set.- Returns:
- the InitContainerPropertiesDefinition object itself.
-
environmentVariables
public List<EnvironmentVariable> environmentVariables()
Get the environmentVariables property: The environment variables to set in the init container.- Returns:
- the environmentVariables value.
-
withEnvironmentVariables
public InitContainerPropertiesDefinition withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
Set the environmentVariables property: The environment variables to set in the init container.- Parameters:
environmentVariables- the environmentVariables value to set.- Returns:
- the InitContainerPropertiesDefinition object itself.
-
instanceView
public InitContainerPropertiesDefinitionInstanceView instanceView()
Get the instanceView property: The instance view of the init container. Only valid in response.- Returns:
- the instanceView value.
-
volumeMounts
public List<VolumeMount> volumeMounts()
Get the volumeMounts property: The volume mounts available to the init container.- Returns:
- the volumeMounts value.
-
withVolumeMounts
public InitContainerPropertiesDefinition withVolumeMounts(List<VolumeMount> volumeMounts)
Set the volumeMounts property: The volume mounts available to the init container.- Parameters:
volumeMounts- the volumeMounts value to set.- Returns:
- the InitContainerPropertiesDefinition object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-