137 lines
4.8 KiB
C++
137 lines
4.8 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
|
|
#include <aws/imagebuilder/ImagebuilderRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
#include <aws/core/utils/UUID.h>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace imagebuilder
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_IMAGEBUILDER_API CancelImageCreationRequest : public ImagebuilderRequest
|
|
{
|
|
public:
|
|
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::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image whose creation you want to
|
|
* cancel.</p>
|
|
*/
|
|
inline const Aws::String& GetImageBuildVersionArn() const{ return m_imageBuildVersionArn; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image whose creation you want to
|
|
* cancel.</p>
|
|
*/
|
|
inline bool ImageBuildVersionArnHasBeenSet() const { return m_imageBuildVersionArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image whose creation you want to
|
|
* cancel.</p>
|
|
*/
|
|
inline void SetImageBuildVersionArn(const Aws::String& value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image whose creation you want to
|
|
* cancel.</p>
|
|
*/
|
|
inline void SetImageBuildVersionArn(Aws::String&& value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image whose creation you want to
|
|
* cancel.</p>
|
|
*/
|
|
inline void SetImageBuildVersionArn(const char* value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image whose creation you want to
|
|
* cancel.</p>
|
|
*/
|
|
inline CancelImageCreationRequest& WithImageBuildVersionArn(const Aws::String& value) { SetImageBuildVersionArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image whose creation you want to
|
|
* cancel.</p>
|
|
*/
|
|
inline CancelImageCreationRequest& WithImageBuildVersionArn(Aws::String&& value) { SetImageBuildVersionArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the image whose creation you want to
|
|
* cancel.</p>
|
|
*/
|
|
inline CancelImageCreationRequest& WithImageBuildVersionArn(const char* value) { SetImageBuildVersionArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The idempotency token used to make this request idempotent.</p>
|
|
*/
|
|
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
|
|
|
|
/**
|
|
* <p>The idempotency token used to make this request idempotent.</p>
|
|
*/
|
|
inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The idempotency token used to make this request idempotent.</p>
|
|
*/
|
|
inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
|
|
|
|
/**
|
|
* <p>The idempotency token used to make this request idempotent.</p>
|
|
*/
|
|
inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>The idempotency token used to make this request idempotent.</p>
|
|
*/
|
|
inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
|
|
|
|
/**
|
|
* <p>The idempotency token used to make this request idempotent.</p>
|
|
*/
|
|
inline CancelImageCreationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>The idempotency token used to make this request idempotent.</p>
|
|
*/
|
|
inline CancelImageCreationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The idempotency token used to make this request idempotent.</p>
|
|
*/
|
|
inline CancelImageCreationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_imageBuildVersionArn;
|
|
bool m_imageBuildVersionArnHasBeenSet;
|
|
|
|
Aws::String m_clientToken;
|
|
bool m_clientTokenHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace imagebuilder
|
|
} // namespace Aws
|