Class StoreImageTaskResult
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.StoreImageTaskResult
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StoreImageTaskResult.Builder,StoreImageTaskResult>
@Generated("software.amazon.awssdk:codegen") public final class StoreImageTaskResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StoreImageTaskResult.Builder,StoreImageTaskResult>
The information about the AMI store task, including the progress of the task.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStoreImageTaskResult.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringamiId()The ID of the AMI that is being stored.Stringbucket()The name of the Amazon S3 bucket that contains the stored AMI object.static StoreImageTaskResult.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerprogressPercentage()The progress of the task as a percentage.Strings3objectKey()The name of the stored AMI object in the bucket.List<SdkField<?>>sdkFields()static Class<? extends StoreImageTaskResult.Builder>serializableBuilderClass()StringstoreTaskFailureReason()If the tasks fails, the reason for the failure is returned.StringstoreTaskState()The state of the store task (InProgress,Completed, orFailed).InstanttaskStartTime()The time the task started.StoreImageTaskResult.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 that is being stored.
- Returns:
- The ID of the AMI that is being stored.
-
taskStartTime
public final Instant taskStartTime()
The time the task started.
- Returns:
- The time the task started.
-
bucket
public final String bucket()
The name of the Amazon S3 bucket that contains the stored AMI object.
- Returns:
- The name of the Amazon S3 bucket that contains the stored AMI object.
-
s3objectKey
public final String s3objectKey()
The name of the stored AMI object in the bucket.
- Returns:
- The name of the stored AMI object in the bucket.
-
progressPercentage
public final Integer progressPercentage()
The progress of the task as a percentage.
- Returns:
- The progress of the task as a percentage.
-
storeTaskState
public final String storeTaskState()
The state of the store task (
InProgress,Completed, orFailed).- Returns:
- The state of the store task (
InProgress,Completed, orFailed).
-
storeTaskFailureReason
public final String storeTaskFailureReason()
If the tasks fails, the reason for the failure is returned. If the task succeeds,
nullis returned.- Returns:
- If the tasks fails, the reason for the failure is returned. If the task succeeds,
nullis returned.
-
toBuilder
public StoreImageTaskResult.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StoreImageTaskResult.Builder,StoreImageTaskResult>
-
builder
public static StoreImageTaskResult.Builder builder()
-
serializableBuilderClass
public static Class<? extends StoreImageTaskResult.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.
-
-