/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The information about the AMI store task, including the progress of the
* task.See Also:
AWS
* API Reference
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
).
The state of the store task (InProgress
, Completed
,
* or Failed
).
The state of the store task (InProgress
, Completed
,
* or Failed
).
The state of the store task (InProgress
, Completed
,
* or Failed
).
The state of the store task (InProgress
, Completed
,
* or Failed
).
The state of the store task (InProgress
, Completed
,
* or Failed
).
The state of the store task (InProgress
, Completed
,
* or Failed
).
The state of the store task (InProgress
, Completed
,
* or Failed
).
If the tasks fails, the reason for the failure is returned. If the task
* succeeds, null
is returned.
If the tasks fails, the reason for the failure is returned. If the task
* succeeds, null
is returned.
If the tasks fails, the reason for the failure is returned. If the task
* succeeds, null
is returned.
If the tasks fails, the reason for the failure is returned. If the task
* succeeds, null
is returned.
If the tasks fails, the reason for the failure is returned. If the task
* succeeds, null
is returned.
If the tasks fails, the reason for the failure is returned. If the task
* succeeds, null
is returned.
If the tasks fails, the reason for the failure is returned. If the task
* succeeds, null
is returned.
If the tasks fails, the reason for the failure is returned. If the task
* succeeds, null
is returned.