@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StoreImageTaskResult extends Object implements Serializable, Cloneable
The information about the AMI store task, including the progress of the task.
Constructor and Description |
---|
StoreImageTaskResult() |
Modifier and Type | Method and Description |
---|---|
StoreImageTaskResult |
clone() |
boolean |
equals(Object obj) |
String |
getAmiId()
The ID of the AMI that is being stored.
|
String |
getBucket()
The name of the Amazon S3 bucket that contains the stored AMI object.
|
Integer |
getProgressPercentage()
The progress of the task as a percentage.
|
String |
getS3objectKey()
The name of the stored AMI object in the bucket.
|
String |
getStoreTaskFailureReason()
If the tasks fails, the reason for the failure is returned.
|
String |
getStoreTaskState()
The state of the store task (
InProgress , Completed , or Failed ). |
Date |
getTaskStartTime()
The time the task started.
|
int |
hashCode() |
void |
setAmiId(String amiId)
The ID of the AMI that is being stored.
|
void |
setBucket(String bucket)
The name of the Amazon S3 bucket that contains the stored AMI object.
|
void |
setProgressPercentage(Integer progressPercentage)
The progress of the task as a percentage.
|
void |
setS3objectKey(String s3objectKey)
The name of the stored AMI object in the bucket.
|
void |
setStoreTaskFailureReason(String storeTaskFailureReason)
If the tasks fails, the reason for the failure is returned.
|
void |
setStoreTaskState(String storeTaskState)
The state of the store task (
InProgress , Completed , or Failed ). |
void |
setTaskStartTime(Date taskStartTime)
The time the task started.
|
String |
toString()
Returns a string representation of this object.
|
StoreImageTaskResult |
withAmiId(String amiId)
The ID of the AMI that is being stored.
|
StoreImageTaskResult |
withBucket(String bucket)
The name of the Amazon S3 bucket that contains the stored AMI object.
|
StoreImageTaskResult |
withProgressPercentage(Integer progressPercentage)
The progress of the task as a percentage.
|
StoreImageTaskResult |
withS3objectKey(String s3objectKey)
The name of the stored AMI object in the bucket.
|
StoreImageTaskResult |
withStoreTaskFailureReason(String storeTaskFailureReason)
If the tasks fails, the reason for the failure is returned.
|
StoreImageTaskResult |
withStoreTaskState(String storeTaskState)
The state of the store task (
InProgress , Completed , or Failed ). |
StoreImageTaskResult |
withTaskStartTime(Date taskStartTime)
The time the task started.
|
public void setAmiId(String amiId)
The ID of the AMI that is being stored.
amiId
- The ID of the AMI that is being stored.public String getAmiId()
The ID of the AMI that is being stored.
public StoreImageTaskResult withAmiId(String amiId)
The ID of the AMI that is being stored.
amiId
- The ID of the AMI that is being stored.public void setTaskStartTime(Date taskStartTime)
The time the task started.
taskStartTime
- The time the task started.public Date getTaskStartTime()
The time the task started.
public StoreImageTaskResult withTaskStartTime(Date taskStartTime)
The time the task started.
taskStartTime
- The time the task started.public void setBucket(String bucket)
The name of the Amazon S3 bucket that contains the stored AMI object.
bucket
- The name of the Amazon S3 bucket that contains the stored AMI object.public String getBucket()
The name of the Amazon S3 bucket that contains the stored AMI object.
public StoreImageTaskResult withBucket(String bucket)
The name of the Amazon S3 bucket that contains the stored AMI object.
bucket
- The name of the Amazon S3 bucket that contains the stored AMI object.public void setS3objectKey(String s3objectKey)
The name of the stored AMI object in the bucket.
s3objectKey
- The name of the stored AMI object in the bucket.public String getS3objectKey()
The name of the stored AMI object in the bucket.
public StoreImageTaskResult withS3objectKey(String s3objectKey)
The name of the stored AMI object in the bucket.
s3objectKey
- The name of the stored AMI object in the bucket.public void setProgressPercentage(Integer progressPercentage)
The progress of the task as a percentage.
progressPercentage
- The progress of the task as a percentage.public Integer getProgressPercentage()
The progress of the task as a percentage.
public StoreImageTaskResult withProgressPercentage(Integer progressPercentage)
The progress of the task as a percentage.
progressPercentage
- The progress of the task as a percentage.public void setStoreTaskState(String storeTaskState)
The state of the store task (InProgress
, Completed
, or Failed
).
storeTaskState
- The state of the store task (InProgress
, Completed
, or Failed
).public String getStoreTaskState()
The state of the store task (InProgress
, Completed
, or Failed
).
InProgress
, Completed
, or Failed
).public StoreImageTaskResult withStoreTaskState(String storeTaskState)
The state of the store task (InProgress
, Completed
, or Failed
).
storeTaskState
- The state of the store task (InProgress
, Completed
, or Failed
).public void setStoreTaskFailureReason(String storeTaskFailureReason)
If the tasks fails, the reason for the failure is returned. If the task succeeds, null
is returned.
storeTaskFailureReason
- If the tasks fails, the reason for the failure is returned. If the task succeeds, null
is
returned.public String getStoreTaskFailureReason()
If the tasks fails, the reason for the failure is returned. If the task succeeds, null
is returned.
null
is
returned.public StoreImageTaskResult withStoreTaskFailureReason(String storeTaskFailureReason)
If the tasks fails, the reason for the failure is returned. If the task succeeds, null
is returned.
storeTaskFailureReason
- If the tasks fails, the reason for the failure is returned. If the task succeeds, null
is
returned.public String toString()
toString
in class Object
Object.toString()
public StoreImageTaskResult clone()