@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Container extends Object implements Serializable, Cloneable, StructuredPojo
Details of a container.
Constructor and Description |
---|
Container() |
Modifier and Type | Method and Description |
---|---|
Container |
clone() |
boolean |
equals(Object obj) |
String |
getContainerRuntime()
The container runtime (such as, Docker or containerd) used to run the container.
|
String |
getId()
Container ID.
|
String |
getImage()
Container image.
|
String |
getImagePrefix()
Part of the image name before the last slash.
|
String |
getName()
Container name.
|
SecurityContext |
getSecurityContext()
Container security context.
|
List<VolumeMount> |
getVolumeMounts()
Container volume mounts.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerRuntime(String containerRuntime)
The container runtime (such as, Docker or containerd) used to run the container.
|
void |
setId(String id)
Container ID.
|
void |
setImage(String image)
Container image.
|
void |
setImagePrefix(String imagePrefix)
Part of the image name before the last slash.
|
void |
setName(String name)
Container name.
|
void |
setSecurityContext(SecurityContext securityContext)
Container security context.
|
void |
setVolumeMounts(Collection<VolumeMount> volumeMounts)
Container volume mounts.
|
String |
toString()
Returns a string representation of this object.
|
Container |
withContainerRuntime(String containerRuntime)
The container runtime (such as, Docker or containerd) used to run the container.
|
Container |
withId(String id)
Container ID.
|
Container |
withImage(String image)
Container image.
|
Container |
withImagePrefix(String imagePrefix)
Part of the image name before the last slash.
|
Container |
withName(String name)
Container name.
|
Container |
withSecurityContext(SecurityContext securityContext)
Container security context.
|
Container |
withVolumeMounts(Collection<VolumeMount> volumeMounts)
Container volume mounts.
|
Container |
withVolumeMounts(VolumeMount... volumeMounts)
Container volume mounts.
|
public void setContainerRuntime(String containerRuntime)
The container runtime (such as, Docker or containerd) used to run the container.
containerRuntime
- The container runtime (such as, Docker or containerd) used to run the container.public String getContainerRuntime()
The container runtime (such as, Docker or containerd) used to run the container.
public Container withContainerRuntime(String containerRuntime)
The container runtime (such as, Docker or containerd) used to run the container.
containerRuntime
- The container runtime (such as, Docker or containerd) used to run the container.public void setId(String id)
Container ID.
id
- Container ID.public String getId()
Container ID.
public Container withId(String id)
Container ID.
id
- Container ID.public void setName(String name)
Container name.
name
- Container name.public String getName()
Container name.
public Container withName(String name)
Container name.
name
- Container name.public void setImage(String image)
Container image.
image
- Container image.public String getImage()
Container image.
public Container withImage(String image)
Container image.
image
- Container image.public void setImagePrefix(String imagePrefix)
Part of the image name before the last slash. For example, imagePrefix for public.ecr.aws/amazonlinux/amazonlinux:latest would be public.ecr.aws/amazonlinux. If the image name is relative and does not have a slash, this field is empty.
imagePrefix
- Part of the image name before the last slash. For example, imagePrefix for
public.ecr.aws/amazonlinux/amazonlinux:latest would be public.ecr.aws/amazonlinux. If the image name is
relative and does not have a slash, this field is empty.public String getImagePrefix()
Part of the image name before the last slash. For example, imagePrefix for public.ecr.aws/amazonlinux/amazonlinux:latest would be public.ecr.aws/amazonlinux. If the image name is relative and does not have a slash, this field is empty.
public Container withImagePrefix(String imagePrefix)
Part of the image name before the last slash. For example, imagePrefix for public.ecr.aws/amazonlinux/amazonlinux:latest would be public.ecr.aws/amazonlinux. If the image name is relative and does not have a slash, this field is empty.
imagePrefix
- Part of the image name before the last slash. For example, imagePrefix for
public.ecr.aws/amazonlinux/amazonlinux:latest would be public.ecr.aws/amazonlinux. If the image name is
relative and does not have a slash, this field is empty.public List<VolumeMount> getVolumeMounts()
Container volume mounts.
public void setVolumeMounts(Collection<VolumeMount> volumeMounts)
Container volume mounts.
volumeMounts
- Container volume mounts.public Container withVolumeMounts(VolumeMount... volumeMounts)
Container volume mounts.
NOTE: This method appends the values to the existing list (if any). Use
setVolumeMounts(java.util.Collection)
or withVolumeMounts(java.util.Collection)
if you want to
override the existing values.
volumeMounts
- Container volume mounts.public Container withVolumeMounts(Collection<VolumeMount> volumeMounts)
Container volume mounts.
volumeMounts
- Container volume mounts.public void setSecurityContext(SecurityContext securityContext)
Container security context.
securityContext
- Container security context.public SecurityContext getSecurityContext()
Container security context.
public Container withSecurityContext(SecurityContext securityContext)
Container security context.
securityContext
- Container security context.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.