public class Container extends Object
Constructor and Description |
---|
Container() |
Modifier and Type | Method and Description |
---|---|
List<String> |
command()
Get the commands to execute within the container instance in exec form.
|
List<EnvironmentVariable> |
environmentVariables()
Get the environment variables to set in the container instance.
|
String |
image()
Get the name of the image used to create the container instance.
|
ContainerPropertiesInstanceView |
instanceView()
Get the instance view of the container instance.
|
ContainerProbe |
livenessProbe()
Get the liveness probe.
|
String |
name()
Get the user-provided name of the container instance.
|
List<ContainerPort> |
ports()
Get the exposed ports on the container instance.
|
ContainerProbe |
readinessProbe()
Get the readiness probe.
|
ResourceRequirements |
resources()
Get the resource requirements of the container instance.
|
List<VolumeMount> |
volumeMounts()
Get the volume mounts available to the container instance.
|
Container |
withCommand(List<String> command)
Set the commands to execute within the container instance in exec form.
|
Container |
withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
Set the environment variables to set in the container instance.
|
Container |
withImage(String image)
Set the name of the image used to create the container instance.
|
Container |
withLivenessProbe(ContainerProbe livenessProbe)
Set the liveness probe.
|
Container |
withName(String name)
Set the user-provided name of the container instance.
|
Container |
withPorts(List<ContainerPort> ports)
Set the exposed ports on the container instance.
|
Container |
withReadinessProbe(ContainerProbe readinessProbe)
Set the readiness probe.
|
Container |
withResources(ResourceRequirements resources)
Set the resource requirements of the container instance.
|
Container |
withVolumeMounts(List<VolumeMount> volumeMounts)
Set the volume mounts available to the container instance.
|
public String name()
public Container withName(String name)
name
- the name value to setpublic String image()
public Container withImage(String image)
image
- the image value to setpublic List<String> command()
public Container withCommand(List<String> command)
command
- the command value to setpublic List<ContainerPort> ports()
public Container withPorts(List<ContainerPort> ports)
ports
- the ports value to setpublic List<EnvironmentVariable> environmentVariables()
public Container withEnvironmentVariables(List<EnvironmentVariable> environmentVariables)
environmentVariables
- the environmentVariables value to setpublic ContainerPropertiesInstanceView instanceView()
public ResourceRequirements resources()
public Container withResources(ResourceRequirements resources)
resources
- the resources value to setpublic List<VolumeMount> volumeMounts()
public Container withVolumeMounts(List<VolumeMount> volumeMounts)
volumeMounts
- the volumeMounts value to setpublic ContainerProbe livenessProbe()
public Container withLivenessProbe(ContainerProbe livenessProbe)
livenessProbe
- the livenessProbe value to setpublic ContainerProbe readinessProbe()
public Container withReadinessProbe(ContainerProbe readinessProbe)
readinessProbe
- the readinessProbe value to setCopyright © 2019. All rights reserved.