Class Ec2AmiResource
- java.lang.Object
-
- software.amazon.awssdk.services.snowball.model.Ec2AmiResource
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Ec2AmiResource.Builder,Ec2AmiResource>
@Generated("software.amazon.awssdk:codegen") public final class Ec2AmiResource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Ec2AmiResource.Builder,Ec2AmiResource>
A JSON-formatted object that contains the IDs for an Amazon Machine Image (AMI), including the Amazon EC2-compatible AMI ID and the Snow device AMI ID. Each AMI has these two IDs to simplify identifying the AMI in both the Amazon Web Services Cloud and on the device.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEc2AmiResource.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringamiId()The ID of the AMI in Amazon EC2.static Ec2AmiResource.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends Ec2AmiResource.Builder>serializableBuilderClass()StringsnowballAmiId()The ID of the AMI on the Snow device.Ec2AmiResource.BuildertoBuilder()StringtoString()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
-
amiId
public final String amiId()
The ID of the AMI in Amazon EC2.
- Returns:
- The ID of the AMI in Amazon EC2.
-
snowballAmiId
public final String snowballAmiId()
The ID of the AMI on the Snow device.
- Returns:
- The ID of the AMI on the Snow device.
-
toBuilder
public Ec2AmiResource.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Ec2AmiResource.Builder,Ec2AmiResource>
-
builder
public static Ec2AmiResource.Builder builder()
-
serializableBuilderClass
public static Class<? extends Ec2AmiResource.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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.
-
-