Class ImageReference
java.lang.Object
software.amazon.awssdk.services.ec2.model.ImageReference
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ImageReference.Builder,ImageReference>
@Generated("software.amazon.awssdk:codegen")
public final class ImageReference
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<ImageReference.Builder,ImageReference>
A resource that is referencing an image.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringarn()The Amazon Resource Name (ARN) of the resource referencing the image.static ImageReference.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringimageId()The ID of the referenced image.The type of resource referencing the image.final StringThe type of resource referencing the image.static Class<? extends ImageReference.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
-
imageId
The ID of the referenced image.
- Returns:
- The ID of the referenced image.
-
resourceType
The type of resource referencing the image.
If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnImageReferenceResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The type of resource referencing the image.
- See Also:
-
resourceTypeAsString
The type of resource referencing the image.
If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnImageReferenceResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The type of resource referencing the image.
- See Also:
-
arn
The Amazon Resource Name (ARN) of the resource referencing the image.
- Returns:
- The Amazon Resource Name (ARN) of the resource referencing the image.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ImageReference.Builder,ImageReference>
-
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
-