InitContainerDefinition Class

  • java.lang.Object
    • com.microsoft.azure.management.containerinstance.InitContainerDefinition

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<EnvironmentVariable> environmentVariables()

Get the environment variables to set in the init container.

java.lang.String image()

Get the image of the init container.

InitContainerPropertiesDefinitionInstanceView instanceView()

Get the instance view of the init container.

java.lang.String name()

Get the name for the init container.

java.util.List<VolumeMount> volumeMounts()

Get the volume mounts available to the init container.

InitContainerDefinition withCommand(List<String> command)

Set the command to execute within the init container in exec form.

InitContainerDefinition withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)

Set the environment variables to set in the init container.

InitContainerDefinition withImage(String image)

Set the image of the init container.

InitContainerDefinition withName(String name)

Set the name for the init container.

InitContainerDefinition withVolumeMounts(List<VolumeMount> volumeMounts)

Set the volume mounts available to the init container.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

InitContainerDefinition

public InitContainerDefinition()

Method Details

command

public List command()

Get the command to execute within the init container in exec form.

Returns:

the command value

environmentVariables

public List environmentVariables()

Get the environment variables to set in the init container.

Returns:

the environmentVariables value

image

public String image()

Get the image of the init container.

Returns:

the image value

instanceView

public InitContainerPropertiesDefinitionInstanceView instanceView()

Get the instance view of the init container. Only valid in response.

Returns:

the instanceView value

name

public String name()

Get the name for the init container.

Returns:

the name value

volumeMounts

public List volumeMounts()

Get the volume mounts available to the init container.

Returns:

the volumeMounts value

withCommand

public InitContainerDefinition withCommand(List command)

Set the command to execute within the init container in exec form.

Parameters:

command - the command value to set

Returns:

the InitContainerDefinition object itself.

withEnvironmentVariables

public InitContainerDefinition withEnvironmentVariables(List environmentVariables)

Set the environment variables to set in the init container.

Parameters:

environmentVariables - the environmentVariables value to set

Returns:

the InitContainerDefinition object itself.

withImage

public InitContainerDefinition withImage(String image)

Set the image of the init container.

Parameters:

image - the image value to set

Returns:

the InitContainerDefinition object itself.

withName

public InitContainerDefinition withName(String name)

Set the name for the init container.

Parameters:

name - the name value to set

Returns:

the InitContainerDefinition object itself.

withVolumeMounts

public InitContainerDefinition withVolumeMounts(List volumeMounts)

Set the volume mounts available to the init container.

Parameters:

volumeMounts - the volumeMounts value to set

Returns:

the InitContainerDefinition object itself.

Applies to