@Generated(value="software.amazon.awssdk:codegen") public final class Container extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Container.Builder,Container>
Details of a container.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Container.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Container.Builder |
builder() |
String |
containerRuntime()
The container runtime (such as, Docker or containerd) used to run the container.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasVolumeMounts()
For responses, this returns true if the service returned a value for the VolumeMounts property.
|
String |
id()
Container ID.
|
String |
image()
Container image.
|
String |
imagePrefix()
Part of the image name before the last slash.
|
String |
name()
Container name.
|
List<SdkField<?>> |
sdkFields() |
SecurityContext |
securityContext()
Container security context.
|
static Class<? extends Container.Builder> |
serializableBuilderClass() |
Container.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<VolumeMount> |
volumeMounts()
Container volume mounts.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String containerRuntime()
The container runtime (such as, Docker or containerd) used to run the container.
public final String id()
Container ID.
public final String name()
Container name.
public final String image()
Container image.
public final 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.
public final boolean hasVolumeMounts()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<VolumeMount> volumeMounts()
Container volume mounts.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasVolumeMounts() method.
public final SecurityContext securityContext()
Container security context.
public Container.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Container.Builder,Container>public static Container.Builder builder()
public static Class<? extends Container.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.