public class InitContainerDefinition extends Object
| Constructor and Description |
|---|
InitContainerDefinition() |
| Modifier and Type | Method and 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.
|
String |
image()
Get the image property: The image of the init container.
|
InitContainerPropertiesDefinitionInstanceView |
instanceView()
Get the instanceView property: The instance view of the init container.
|
String |
name()
Get the name property: The name for the init container.
|
void |
validate()
Validates the instance.
|
List<VolumeMount> |
volumeMounts()
Get the volumeMounts property: The volume mounts available to the init container.
|
InitContainerDefinition |
withCommand(List<String> command)
Set the command property: The command to execute within the init container in exec form.
|
InitContainerDefinition |
withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
Set the environmentVariables property: The environment variables to set in the init container.
|
InitContainerDefinition |
withImage(String image)
Set the image property: The image of the init container.
|
InitContainerDefinition |
withName(String name)
Set the name property: The name for the init container.
|
InitContainerDefinition |
withVolumeMounts(List<VolumeMount> volumeMounts)
Set the volumeMounts property: The volume mounts available to the init container.
|
public String name()
public InitContainerDefinition withName(String name)
name - the name value to set.public String image()
public InitContainerDefinition withImage(String image)
image - the image value to set.public List<String> command()
public InitContainerDefinition withCommand(List<String> command)
command - the command value to set.public List<EnvironmentVariable> environmentVariables()
public InitContainerDefinition withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
environmentVariables - the environmentVariables value to set.public InitContainerPropertiesDefinitionInstanceView instanceView()
public List<VolumeMount> volumeMounts()
public InitContainerDefinition withVolumeMounts(List<VolumeMount> volumeMounts)
volumeMounts - the volumeMounts value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.