/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class DescribeBundleTasksRequest : public EC2Request { public: AWS_EC2_API DescribeBundleTasksRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeBundleTasks"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The bundle task IDs.

Default: Describes all your bundle tasks.

*/ inline const Aws::Vector& GetBundleIds() const{ return m_bundleIds; } /** *

The bundle task IDs.

Default: Describes all your bundle tasks.

*/ inline bool BundleIdsHasBeenSet() const { return m_bundleIdsHasBeenSet; } /** *

The bundle task IDs.

Default: Describes all your bundle tasks.

*/ inline void SetBundleIds(const Aws::Vector& value) { m_bundleIdsHasBeenSet = true; m_bundleIds = value; } /** *

The bundle task IDs.

Default: Describes all your bundle tasks.

*/ inline void SetBundleIds(Aws::Vector&& value) { m_bundleIdsHasBeenSet = true; m_bundleIds = std::move(value); } /** *

The bundle task IDs.

Default: Describes all your bundle tasks.

*/ inline DescribeBundleTasksRequest& WithBundleIds(const Aws::Vector& value) { SetBundleIds(value); return *this;} /** *

The bundle task IDs.

Default: Describes all your bundle tasks.

*/ inline DescribeBundleTasksRequest& WithBundleIds(Aws::Vector&& value) { SetBundleIds(std::move(value)); return *this;} /** *

The bundle task IDs.

Default: Describes all your bundle tasks.

*/ inline DescribeBundleTasksRequest& AddBundleIds(const Aws::String& value) { m_bundleIdsHasBeenSet = true; m_bundleIds.push_back(value); return *this; } /** *

The bundle task IDs.

Default: Describes all your bundle tasks.

*/ inline DescribeBundleTasksRequest& AddBundleIds(Aws::String&& value) { m_bundleIdsHasBeenSet = true; m_bundleIds.push_back(std::move(value)); return *this; } /** *

The bundle task IDs.

Default: Describes all your bundle tasks.

*/ inline DescribeBundleTasksRequest& AddBundleIds(const char* value) { m_bundleIdsHasBeenSet = true; m_bundleIds.push_back(value); return *this; } /** *

The filters.

  • bundle-id - The ID of the bundle * task.

  • error-code - If the task failed, the error * code returned.

  • error-message - If the task * failed, the error message returned.

  • instance-id * - The ID of the instance.

  • progress - The level * of task completion, as a percentage (for example, 20%).

  • * s3-bucket - The Amazon S3 bucket to store the AMI.

  • *

    s3-prefix - The beginning of the AMI name.

  • * start-time - The time the task started (for example, * 2013-09-15T17:15:20.000Z).

  • state - The state of * the task (pending | waiting-for-shutdown | * bundling | storing | cancelling | * complete | failed).

  • * update-time - The time of the most recent update for the task.

    *
*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

The filters.

  • bundle-id - The ID of the bundle * task.

  • error-code - If the task failed, the error * code returned.

  • error-message - If the task * failed, the error message returned.

  • instance-id * - The ID of the instance.

  • progress - The level * of task completion, as a percentage (for example, 20%).

  • * s3-bucket - The Amazon S3 bucket to store the AMI.

  • *

    s3-prefix - The beginning of the AMI name.

  • * start-time - The time the task started (for example, * 2013-09-15T17:15:20.000Z).

  • state - The state of * the task (pending | waiting-for-shutdown | * bundling | storing | cancelling | * complete | failed).

  • * update-time - The time of the most recent update for the task.

    *
*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

The filters.

  • bundle-id - The ID of the bundle * task.

  • error-code - If the task failed, the error * code returned.

  • error-message - If the task * failed, the error message returned.

  • instance-id * - The ID of the instance.

  • progress - The level * of task completion, as a percentage (for example, 20%).

  • * s3-bucket - The Amazon S3 bucket to store the AMI.

  • *

    s3-prefix - The beginning of the AMI name.

  • * start-time - The time the task started (for example, * 2013-09-15T17:15:20.000Z).

  • state - The state of * the task (pending | waiting-for-shutdown | * bundling | storing | cancelling | * complete | failed).

  • * update-time - The time of the most recent update for the task.

    *
*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

The filters.

  • bundle-id - The ID of the bundle * task.

  • error-code - If the task failed, the error * code returned.

  • error-message - If the task * failed, the error message returned.

  • instance-id * - The ID of the instance.

  • progress - The level * of task completion, as a percentage (for example, 20%).

  • * s3-bucket - The Amazon S3 bucket to store the AMI.

  • *

    s3-prefix - The beginning of the AMI name.

  • * start-time - The time the task started (for example, * 2013-09-15T17:15:20.000Z).

  • state - The state of * the task (pending | waiting-for-shutdown | * bundling | storing | cancelling | * complete | failed).

  • * update-time - The time of the most recent update for the task.

    *
*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

The filters.

  • bundle-id - The ID of the bundle * task.

  • error-code - If the task failed, the error * code returned.

  • error-message - If the task * failed, the error message returned.

  • instance-id * - The ID of the instance.

  • progress - The level * of task completion, as a percentage (for example, 20%).

  • * s3-bucket - The Amazon S3 bucket to store the AMI.

  • *

    s3-prefix - The beginning of the AMI name.

  • * start-time - The time the task started (for example, * 2013-09-15T17:15:20.000Z).

  • state - The state of * the task (pending | waiting-for-shutdown | * bundling | storing | cancelling | * complete | failed).

  • * update-time - The time of the most recent update for the task.

    *
*/ inline DescribeBundleTasksRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

The filters.

  • bundle-id - The ID of the bundle * task.

  • error-code - If the task failed, the error * code returned.

  • error-message - If the task * failed, the error message returned.

  • instance-id * - The ID of the instance.

  • progress - The level * of task completion, as a percentage (for example, 20%).

  • * s3-bucket - The Amazon S3 bucket to store the AMI.

  • *

    s3-prefix - The beginning of the AMI name.

  • * start-time - The time the task started (for example, * 2013-09-15T17:15:20.000Z).

  • state - The state of * the task (pending | waiting-for-shutdown | * bundling | storing | cancelling | * complete | failed).

  • * update-time - The time of the most recent update for the task.

    *
*/ inline DescribeBundleTasksRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

The filters.

  • bundle-id - The ID of the bundle * task.

  • error-code - If the task failed, the error * code returned.

  • error-message - If the task * failed, the error message returned.

  • instance-id * - The ID of the instance.

  • progress - The level * of task completion, as a percentage (for example, 20%).

  • * s3-bucket - The Amazon S3 bucket to store the AMI.

  • *

    s3-prefix - The beginning of the AMI name.

  • * start-time - The time the task started (for example, * 2013-09-15T17:15:20.000Z).

  • state - The state of * the task (pending | waiting-for-shutdown | * bundling | storing | cancelling | * complete | failed).

  • * update-time - The time of the most recent update for the task.

    *
*/ inline DescribeBundleTasksRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

The filters.

  • bundle-id - The ID of the bundle * task.

  • error-code - If the task failed, the error * code returned.

  • error-message - If the task * failed, the error message returned.

  • instance-id * - The ID of the instance.

  • progress - The level * of task completion, as a percentage (for example, 20%).

  • * s3-bucket - The Amazon S3 bucket to store the AMI.

  • *

    s3-prefix - The beginning of the AMI name.

  • * start-time - The time the task started (for example, * 2013-09-15T17:15:20.000Z).

  • state - The state of * the task (pending | waiting-for-shutdown | * bundling | storing | cancelling | * complete | failed).

  • * update-time - The time of the most recent update for the task.

    *
*/ inline DescribeBundleTasksRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline DescribeBundleTasksRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::Vector m_bundleIds; bool m_bundleIdsHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws