/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

The information about the AMI store task, including the progress of the * task.

See Also:

AWS * API Reference

*/ class StoreImageTaskResponse { public: AWS_EC2_API StoreImageTaskResponse(); AWS_EC2_API StoreImageTaskResponse(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API StoreImageTaskResponse& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the AMI that is being stored.

*/ inline const Aws::String& GetAmiId() const{ return m_amiId; } /** *

The ID of the AMI that is being stored.

*/ inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; } /** *

The ID of the AMI that is being stored.

*/ inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; } /** *

The ID of the AMI that is being stored.

*/ inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); } /** *

The ID of the AMI that is being stored.

*/ inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); } /** *

The ID of the AMI that is being stored.

*/ inline StoreImageTaskResponse& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;} /** *

The ID of the AMI that is being stored.

*/ inline StoreImageTaskResponse& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;} /** *

The ID of the AMI that is being stored.

*/ inline StoreImageTaskResponse& WithAmiId(const char* value) { SetAmiId(value); return *this;} /** *

The time the task started.

*/ inline const Aws::Utils::DateTime& GetTaskStartTime() const{ return m_taskStartTime; } /** *

The time the task started.

*/ inline bool TaskStartTimeHasBeenSet() const { return m_taskStartTimeHasBeenSet; } /** *

The time the task started.

*/ inline void SetTaskStartTime(const Aws::Utils::DateTime& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = value; } /** *

The time the task started.

*/ inline void SetTaskStartTime(Aws::Utils::DateTime&& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = std::move(value); } /** *

The time the task started.

*/ inline StoreImageTaskResponse& WithTaskStartTime(const Aws::Utils::DateTime& value) { SetTaskStartTime(value); return *this;} /** *

The time the task started.

*/ inline StoreImageTaskResponse& WithTaskStartTime(Aws::Utils::DateTime&& value) { SetTaskStartTime(std::move(value)); return *this;} /** *

The name of the Amazon S3 bucket that contains the stored AMI object.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

The name of the Amazon S3 bucket that contains the stored AMI object.

*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *

The name of the Amazon S3 bucket that contains the stored AMI object.

*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *

The name of the Amazon S3 bucket that contains the stored AMI object.

*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *

The name of the Amazon S3 bucket that contains the stored AMI object.

*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *

The name of the Amazon S3 bucket that contains the stored AMI object.

*/ inline StoreImageTaskResponse& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

The name of the Amazon S3 bucket that contains the stored AMI object.

*/ inline StoreImageTaskResponse& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

The name of the Amazon S3 bucket that contains the stored AMI object.

*/ inline StoreImageTaskResponse& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

The name of the stored AMI object in the bucket.

*/ inline const Aws::String& GetS3objectKey() const{ return m_s3objectKey; } /** *

The name of the stored AMI object in the bucket.

*/ inline bool S3objectKeyHasBeenSet() const { return m_s3objectKeyHasBeenSet; } /** *

The name of the stored AMI object in the bucket.

*/ inline void SetS3objectKey(const Aws::String& value) { m_s3objectKeyHasBeenSet = true; m_s3objectKey = value; } /** *

The name of the stored AMI object in the bucket.

*/ inline void SetS3objectKey(Aws::String&& value) { m_s3objectKeyHasBeenSet = true; m_s3objectKey = std::move(value); } /** *

The name of the stored AMI object in the bucket.

*/ inline void SetS3objectKey(const char* value) { m_s3objectKeyHasBeenSet = true; m_s3objectKey.assign(value); } /** *

The name of the stored AMI object in the bucket.

*/ inline StoreImageTaskResponse& WithS3objectKey(const Aws::String& value) { SetS3objectKey(value); return *this;} /** *

The name of the stored AMI object in the bucket.

*/ inline StoreImageTaskResponse& WithS3objectKey(Aws::String&& value) { SetS3objectKey(std::move(value)); return *this;} /** *

The name of the stored AMI object in the bucket.

*/ inline StoreImageTaskResponse& WithS3objectKey(const char* value) { SetS3objectKey(value); return *this;} /** *

The progress of the task as a percentage.

*/ inline int GetProgressPercentage() const{ return m_progressPercentage; } /** *

The progress of the task as a percentage.

*/ inline bool ProgressPercentageHasBeenSet() const { return m_progressPercentageHasBeenSet; } /** *

The progress of the task as a percentage.

*/ inline void SetProgressPercentage(int value) { m_progressPercentageHasBeenSet = true; m_progressPercentage = value; } /** *

The progress of the task as a percentage.

*/ inline StoreImageTaskResponse& WithProgressPercentage(int value) { SetProgressPercentage(value); return *this;} /** *

The state of the store task (InProgress, Completed, * or Failed).

*/ inline const Aws::String& GetStoreTaskState() const{ return m_storeTaskState; } /** *

The state of the store task (InProgress, Completed, * or Failed).

*/ inline bool StoreTaskStateHasBeenSet() const { return m_storeTaskStateHasBeenSet; } /** *

The state of the store task (InProgress, Completed, * or Failed).

*/ inline void SetStoreTaskState(const Aws::String& value) { m_storeTaskStateHasBeenSet = true; m_storeTaskState = value; } /** *

The state of the store task (InProgress, Completed, * or Failed).

*/ inline void SetStoreTaskState(Aws::String&& value) { m_storeTaskStateHasBeenSet = true; m_storeTaskState = std::move(value); } /** *

The state of the store task (InProgress, Completed, * or Failed).

*/ inline void SetStoreTaskState(const char* value) { m_storeTaskStateHasBeenSet = true; m_storeTaskState.assign(value); } /** *

The state of the store task (InProgress, Completed, * or Failed).

*/ inline StoreImageTaskResponse& WithStoreTaskState(const Aws::String& value) { SetStoreTaskState(value); return *this;} /** *

The state of the store task (InProgress, Completed, * or Failed).

*/ inline StoreImageTaskResponse& WithStoreTaskState(Aws::String&& value) { SetStoreTaskState(std::move(value)); return *this;} /** *

The state of the store task (InProgress, Completed, * or Failed).

*/ inline StoreImageTaskResponse& WithStoreTaskState(const char* value) { SetStoreTaskState(value); return *this;} /** *

If the tasks fails, the reason for the failure is returned. If the task * succeeds, null is returned.

*/ inline const Aws::String& GetStoreTaskFailureReason() const{ return m_storeTaskFailureReason; } /** *

If the tasks fails, the reason for the failure is returned. If the task * succeeds, null is returned.

*/ inline bool StoreTaskFailureReasonHasBeenSet() const { return m_storeTaskFailureReasonHasBeenSet; } /** *

If the tasks fails, the reason for the failure is returned. If the task * succeeds, null is returned.

*/ inline void SetStoreTaskFailureReason(const Aws::String& value) { m_storeTaskFailureReasonHasBeenSet = true; m_storeTaskFailureReason = value; } /** *

If the tasks fails, the reason for the failure is returned. If the task * succeeds, null is returned.

*/ inline void SetStoreTaskFailureReason(Aws::String&& value) { m_storeTaskFailureReasonHasBeenSet = true; m_storeTaskFailureReason = std::move(value); } /** *

If the tasks fails, the reason for the failure is returned. If the task * succeeds, null is returned.

*/ inline void SetStoreTaskFailureReason(const char* value) { m_storeTaskFailureReasonHasBeenSet = true; m_storeTaskFailureReason.assign(value); } /** *

If the tasks fails, the reason for the failure is returned. If the task * succeeds, null is returned.

*/ inline StoreImageTaskResponse& WithStoreTaskFailureReason(const Aws::String& value) { SetStoreTaskFailureReason(value); return *this;} /** *

If the tasks fails, the reason for the failure is returned. If the task * succeeds, null is returned.

*/ inline StoreImageTaskResponse& WithStoreTaskFailureReason(Aws::String&& value) { SetStoreTaskFailureReason(std::move(value)); return *this;} /** *

If the tasks fails, the reason for the failure is returned. If the task * succeeds, null is returned.

*/ inline StoreImageTaskResponse& WithStoreTaskFailureReason(const char* value) { SetStoreTaskFailureReason(value); return *this;} private: Aws::String m_amiId; bool m_amiIdHasBeenSet = false; Aws::Utils::DateTime m_taskStartTime; bool m_taskStartTimeHasBeenSet = false; Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_s3objectKey; bool m_s3objectKeyHasBeenSet = false; int m_progressPercentage; bool m_progressPercentageHasBeenSet = false; Aws::String m_storeTaskState; bool m_storeTaskStateHasBeenSet = false; Aws::String m_storeTaskFailureReason; bool m_storeTaskFailureReasonHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws