InitContainerPropertiesDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. fluent. models. InitContainerPropertiesDefinition
- com.
Implements
public final class InitContainerPropertiesDefinition
implements JsonSerializable<InitContainerPropertiesDefinition>
The init container definition properties.
Constructor Summary
| Constructor | Description |
|---|---|
| InitContainerPropertiesDefinition() |
Creates an instance of Init |
Method Summary
| 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<Environment |
environmentVariables()
Get the environment |
|
static
Init |
fromJson(JsonReader jsonReader)
Reads an instance of Init |
| String |
image()
Get the image property: The image of the init container. |
|
Init |
instanceView()
Get the instance |
|
Security |
securityContext()
Get the security |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
List<Volume |
volumeMounts()
Get the volume |
|
Init |
withCommand(List<String> command)
Set the command property: The command to execute within the init container in exec form. |
|
Init |
withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
Set the environment |
|
Init |
withImage(String image)
Set the image property: The image of the init container. |
|
Init |
withSecurityContext(SecurityContextDefinition securityContext)
Set the security |
|
Init |
withVolumeMounts(List<VolumeMount> volumeMounts)
Set the volume |
Methods inherited from java.lang.Object
Constructor Details
InitContainerPropertiesDefinition
public InitContainerPropertiesDefinition()
Creates an instance of InitContainerPropertiesDefinition class.
Method Details
command
public List<String> command()
Get the command property: The command to execute within the init container in exec form.
Returns:
environmentVariables
public List<EnvironmentVariable> environmentVariables()
Get the environmentVariables property: The environment variables to set in the init container.
Returns:
fromJson
public static InitContainerPropertiesDefinition fromJson(JsonReader jsonReader)
Reads an instance of InitContainerPropertiesDefinition from the JsonReader.
Parameters:
Returns:
Throws:
image
public String image()
Get the image property: The image of the init container.
Returns:
instanceView
public InitContainerPropertiesDefinitionInstanceView instanceView()
Get the instanceView property: The instance view of the init container. Only valid in response.
Returns:
securityContext
public SecurityContextDefinition securityContext()
Get the securityContext property: The container security properties.
Returns:
toJson
validate
public void validate()
Validates the instance.
volumeMounts
public List<VolumeMount> volumeMounts()
Get the volumeMounts property: The volume mounts available to the init container.
Returns:
withCommand
public InitContainerPropertiesDefinition withCommand(List<String> command)
Set the command property: The command to execute within the init container in exec form.
Parameters:
Returns:
withEnvironmentVariables
public InitContainerPropertiesDefinition withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
Set the environmentVariables property: The environment variables to set in the init container.
Parameters:
Returns:
withImage
public InitContainerPropertiesDefinition withImage(String image)
Set the image property: The image of the init container.
Parameters:
Returns:
withSecurityContext
public InitContainerPropertiesDefinition withSecurityContext(SecurityContextDefinition securityContext)
Set the securityContext property: The container security properties.
Parameters:
Returns:
withVolumeMounts
public InitContainerPropertiesDefinition withVolumeMounts(List<VolumeMount> volumeMounts)
Set the volumeMounts property: The volume mounts available to the init container.
Parameters:
Returns: