AWS SDK for C++  1.9.40
AWS SDK for C++
CancelImageCreationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace imagebuilder
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CancelImageCreation"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetImageBuildVersionArn() const{ return m_imageBuildVersionArn; }
41 
46  inline bool ImageBuildVersionArnHasBeenSet() const { return m_imageBuildVersionArnHasBeenSet; }
47 
52  inline void SetImageBuildVersionArn(const Aws::String& value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn = value; }
53 
58  inline void SetImageBuildVersionArn(Aws::String&& value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn = std::move(value); }
59 
64  inline void SetImageBuildVersionArn(const char* value) { m_imageBuildVersionArnHasBeenSet = true; m_imageBuildVersionArn.assign(value); }
65 
70  inline CancelImageCreationRequest& WithImageBuildVersionArn(const Aws::String& value) { SetImageBuildVersionArn(value); return *this;}
71 
76  inline CancelImageCreationRequest& WithImageBuildVersionArn(Aws::String&& value) { SetImageBuildVersionArn(std::move(value)); return *this;}
77 
82  inline CancelImageCreationRequest& WithImageBuildVersionArn(const char* value) { SetImageBuildVersionArn(value); return *this;}
83 
84 
88  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
89 
93  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
94 
98  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
99 
103  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
104 
108  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
109 
113  inline CancelImageCreationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
114 
118  inline CancelImageCreationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
119 
123  inline CancelImageCreationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
124 
125  private:
126 
127  Aws::String m_imageBuildVersionArn;
128  bool m_imageBuildVersionArnHasBeenSet;
129 
130  Aws::String m_clientToken;
131  bool m_clientTokenHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace imagebuilder
136 } // namespace Aws
Aws::imagebuilder::Model::CancelImageCreationRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CancelImageCreationRequest.h:103
Aws::imagebuilder::Model::CancelImageCreationRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CancelImageCreationRequest.h:93
Aws::imagebuilder::Model::CancelImageCreationRequest::WithImageBuildVersionArn
CancelImageCreationRequest & WithImageBuildVersionArn(Aws::String &&value)
Definition: CancelImageCreationRequest.h:76
Aws::imagebuilder::Model::CancelImageCreationRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CancelImageCreationRequest.h:98
Aws::imagebuilder::Model::CancelImageCreationRequest::WithClientToken
CancelImageCreationRequest & WithClientToken(const Aws::String &value)
Definition: CancelImageCreationRequest.h:113
Aws::imagebuilder::Model::CancelImageCreationRequest::ImageBuildVersionArnHasBeenSet
bool ImageBuildVersionArnHasBeenSet() const
Definition: CancelImageCreationRequest.h:46
Imagebuilder_EXPORTS.h
Aws::imagebuilder::Model::CancelImageCreationRequest::CancelImageCreationRequest
CancelImageCreationRequest()
Aws::imagebuilder::Model::CancelImageCreationRequest::WithImageBuildVersionArn
CancelImageCreationRequest & WithImageBuildVersionArn(const Aws::String &value)
Definition: CancelImageCreationRequest.h:70
Aws::imagebuilder::Model::CancelImageCreationRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CancelImageCreationRequest.h:108
AWSString.h
Aws::imagebuilder::Model::CancelImageCreationRequest
Definition: CancelImageCreationRequest.h:23
Aws::imagebuilder::Model::CancelImageCreationRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CancelImageCreationRequest.h:88
Aws::imagebuilder::Model::CancelImageCreationRequest::WithClientToken
CancelImageCreationRequest & WithClientToken(const char *value)
Definition: CancelImageCreationRequest.h:123
Aws::imagebuilder::Model::CancelImageCreationRequest::WithClientToken
CancelImageCreationRequest & WithClientToken(Aws::String &&value)
Definition: CancelImageCreationRequest.h:118
Aws::imagebuilder::Model::CancelImageCreationRequest::SetImageBuildVersionArn
void SetImageBuildVersionArn(Aws::String &&value)
Definition: CancelImageCreationRequest.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::imagebuilder::Model::CancelImageCreationRequest::SerializePayload
Aws::String SerializePayload() const override
ImagebuilderRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_IMAGEBUILDER_API
#define AWS_IMAGEBUILDER_API
Definition: Imagebuilder_EXPORTS.h:28
Aws::imagebuilder::Model::CancelImageCreationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CancelImageCreationRequest.h:31
UUID.h
Aws::imagebuilder::Model::CancelImageCreationRequest::GetImageBuildVersionArn
const Aws::String & GetImageBuildVersionArn() const
Definition: CancelImageCreationRequest.h:40
Aws::imagebuilder::Model::CancelImageCreationRequest::SetImageBuildVersionArn
void SetImageBuildVersionArn(const Aws::String &value)
Definition: CancelImageCreationRequest.h:52
Aws::imagebuilder::ImagebuilderRequest
Definition: ImagebuilderRequest.h:17
Aws::imagebuilder::Model::CancelImageCreationRequest::WithImageBuildVersionArn
CancelImageCreationRequest & WithImageBuildVersionArn(const char *value)
Definition: CancelImageCreationRequest.h:82
Aws::imagebuilder::Model::CancelImageCreationRequest::SetImageBuildVersionArn
void SetImageBuildVersionArn(const char *value)
Definition: CancelImageCreationRequest.h:64