Class ContainerImage
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.ContainerImage
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ContainerImage.Builder,ContainerImage>
@Generated("software.amazon.awssdk:codegen") public final class ContainerImage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContainerImage.Builder,ContainerImage>
The details about the container image a service revision uses.
To ensure that all tasks in a service use the same container image, Amazon ECS resolves container image names and any image tags specified in the task definition to container image digests.
After the container image digest has been established, Amazon ECS uses the digest to start any other desired tasks, and for any future service and service revision updates. This leads to all tasks in a service always running identical container images, resulting in version consistency for your software. For more information, see Container image resolution in the Amazon ECS Developer Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ContainerImage.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContainerImage.Builder
builder()
String
containerName()
The name of the container.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
image()
The container image.String
imageDigest()
The container image digest.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends ContainerImage.Builder>
serializableBuilderClass()
ContainerImage.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
containerName
public final String containerName()
The name of the container.
- Returns:
- The name of the container.
-
imageDigest
public final String imageDigest()
The container image digest.
- Returns:
- The container image digest.
-
image
public final String image()
The container image.
- Returns:
- The container image.
-
toBuilder
public ContainerImage.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ContainerImage.Builder,ContainerImage>
-
builder
public static ContainerImage.Builder builder()
-
serializableBuilderClass
public static Class<? extends ContainerImage.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-