/** * 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 imagebuilder { namespace Model { /** */ class CancelImageCreationRequest : public ImagebuilderRequest { public: AWS_IMAGEBUILDER_API CancelImageCreationRequest(); // 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 "CancelImageCreation"; } AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) of the image that you want to cancel creation * for.

*/ inline const Aws::String& GetImageBuildVersionArn() const{ return m_imageBuildVersionArn; } /** *

The Amazon Resource Name (ARN) of the image that you want to cancel creation * for.

*/ inline bool ImageBuildVersionArnHasBeenSet() const { return m_imageBuildVersionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the image that you want to cancel creation * for.

*/ inline void SetImageBuildVersionArn(const Aws::String& value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn = value; } /** *

The Amazon Resource Name (ARN) of the image that you want to cancel creation * for.

*/ inline void SetImageBuildVersionArn(Aws::String&& value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the image that you want to cancel creation * for.

*/ inline void SetImageBuildVersionArn(const char* value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the image that you want to cancel creation * for.

*/ inline CancelImageCreationRequest& WithImageBuildVersionArn(const Aws::String& value) { SetImageBuildVersionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the image that you want to cancel creation * for.

*/ inline CancelImageCreationRequest& WithImageBuildVersionArn(Aws::String&& value) { SetImageBuildVersionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the image that you want to cancel creation * for.

*/ inline CancelImageCreationRequest& WithImageBuildVersionArn(const char* value) { SetImageBuildVersionArn(value); return *this;} /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline CancelImageCreationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline CancelImageCreationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline CancelImageCreationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_imageBuildVersionArn; bool m_imageBuildVersionArnHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws