InitContainerDefinition Class
- java.
lang. Object - com.
microsoft. azure. management. containerinstance. InitContainerDefinition
- com.
public class InitContainerDefinition
The init container definition.
Constructor Summary
Constructor | Description | |
---|---|---|
InitContainerDefinition() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
command()
Get the command to execute within the init container in exec form. |
java.util.List<Environment |
environmentVariables()
Get the environment variables to set in the init container. |
java.lang.String |
image()
Get the image of the init container. |
Init |
instanceView()
Get the instance view of the init container. |
java.lang.String |
name()
Get the name for the init container. |
java.util.List<Volume |
volumeMounts()
Get the volume mounts available to the init container. |
Init |
withCommand(List<String> command)
Set the command to execute within the init container in exec form. |
Init |
withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
Set the environment variables to set in the init container. |
Init |
withImage(String image)
Set the image of the init container. |
Init |
withName(String name)
Set the name for the init container. |
Init |
withVolumeMounts(List<VolumeMount> volumeMounts)
Set the volume mounts available to the init container. |
Methods inherited from java.lang.Object
Constructor Details
InitContainerDefinition
public InitContainerDefinition()
Method Details
command
public List
Get the command to execute within the init container in exec form.
Returns:
environmentVariables
public List
Get the environment variables to set in the init container.
Returns:
image
public String image()
Get the image of the init container.
Returns:
instanceView
public InitContainerPropertiesDefinitionInstanceView instanceView()
Get the instance view of the init container. Only valid in response.
Returns:
name
public String name()
Get the name for the init container.
Returns:
volumeMounts
public List
Get the volume mounts available to the init container.
Returns:
withCommand
public InitContainerDefinition withCommand(List
Set the command to execute within the init container in exec form.
Parameters:
Returns:
withEnvironmentVariables
public InitContainerDefinition withEnvironmentVariables(List
Set the environment variables to set in the init container.
Parameters:
Returns:
withImage
public InitContainerDefinition withImage(String image)
Set the image of the init container.
Parameters:
Returns:
withName
public InitContainerDefinition withName(String name)
Set the name for the init container.
Parameters:
Returns:
withVolumeMounts
public InitContainerDefinition withVolumeMounts(List
Set the volume mounts available to the init container.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for