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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerImage.Builderbuilder()final StringThe name of the container.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringimage()The container image.final StringThe container image digest.static Class<? extends ContainerImage.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
containerName
The name of the container.
- Returns:
- The name of the container.
-
imageDigest
The container image digest.
- Returns:
- The container image digest.
-
image
The container image.
- Returns:
- The container image.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ContainerImage.Builder,ContainerImage>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-