AWS SDK for C++  1.9.123
AWS SDK for C++
CreateComponentVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <aws/core/utils/Array.h>
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace GreengrassV2
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateComponentVersion"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
45  inline const Aws::Utils::ByteBuffer& GetInlineRecipe() const{ return m_inlineRecipe; }
46 
53  inline bool InlineRecipeHasBeenSet() const { return m_inlineRecipeHasBeenSet; }
54 
61  inline void SetInlineRecipe(const Aws::Utils::ByteBuffer& value) { m_inlineRecipeHasBeenSet = true; m_inlineRecipe = value; }
62 
69  inline void SetInlineRecipe(Aws::Utils::ByteBuffer&& value) { m_inlineRecipeHasBeenSet = true; m_inlineRecipe = std::move(value); }
70 
77  inline CreateComponentVersionRequest& WithInlineRecipe(const Aws::Utils::ByteBuffer& value) { SetInlineRecipe(value); return *this;}
78 
85  inline CreateComponentVersionRequest& WithInlineRecipe(Aws::Utils::ByteBuffer&& value) { SetInlineRecipe(std::move(value)); return *this;}
86 
87 
92  inline const LambdaFunctionRecipeSource& GetLambdaFunction() const{ return m_lambdaFunction; }
93 
98  inline bool LambdaFunctionHasBeenSet() const { return m_lambdaFunctionHasBeenSet; }
99 
104  inline void SetLambdaFunction(const LambdaFunctionRecipeSource& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = value; }
105 
110  inline void SetLambdaFunction(LambdaFunctionRecipeSource&& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = std::move(value); }
111 
116  inline CreateComponentVersionRequest& WithLambdaFunction(const LambdaFunctionRecipeSource& value) { SetLambdaFunction(value); return *this;}
117 
122  inline CreateComponentVersionRequest& WithLambdaFunction(LambdaFunctionRecipeSource&& value) { SetLambdaFunction(std::move(value)); return *this;}
123 
124 
131  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
132 
139  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 
147  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
148 
155  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
156 
163  inline CreateComponentVersionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
164 
171  inline CreateComponentVersionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
172 
179  inline CreateComponentVersionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
180 
187  inline CreateComponentVersionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
188 
195  inline CreateComponentVersionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
196 
203  inline CreateComponentVersionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
204 
211  inline CreateComponentVersionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
212 
219  inline CreateComponentVersionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
220 
227  inline CreateComponentVersionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
228 
229 
239  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
240 
250  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
251 
261  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
262 
272  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
273 
283  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
284 
294  inline CreateComponentVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
295 
305  inline CreateComponentVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
306 
316  inline CreateComponentVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
317 
318  private:
319 
320  Aws::Utils::ByteBuffer m_inlineRecipe;
321  bool m_inlineRecipeHasBeenSet;
322 
323  LambdaFunctionRecipeSource m_lambdaFunction;
324  bool m_lambdaFunctionHasBeenSet;
325 
327  bool m_tagsHasBeenSet;
328 
329  Aws::String m_clientToken;
330  bool m_clientTokenHasBeenSet;
331  };
332 
333 } // namespace Model
334 } // namespace GreengrassV2
335 } // namespace Aws
Aws::GreengrassV2::Model::CreateComponentVersionRequest::AddTags
CreateComponentVersionRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateComponentVersionRequest.h:187
Aws::GreengrassV2::Model::CreateComponentVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GreengrassV2::Model::CreateComponentVersionRequest::WithInlineRecipe
CreateComponentVersionRequest & WithInlineRecipe(Aws::Utils::ByteBuffer &&value)
Definition: CreateComponentVersionRequest.h:85
GreengrassV2Request.h
Aws::GreengrassV2::Model::CreateComponentVersionRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateComponentVersionRequest.h:131
Aws::GreengrassV2::Model::CreateComponentVersionRequest::GetInlineRecipe
const Aws::Utils::ByteBuffer & GetInlineRecipe() const
Definition: CreateComponentVersionRequest.h:45
Aws::GreengrassV2::Model::CreateComponentVersionRequest::AddTags
CreateComponentVersionRequest & AddTags(const char *key, const char *value)
Definition: CreateComponentVersionRequest.h:227
Aws::GreengrassV2::Model::CreateComponentVersionRequest::SetInlineRecipe
void SetInlineRecipe(const Aws::Utils::ByteBuffer &value)
Definition: CreateComponentVersionRequest.h:61
Aws::GreengrassV2::Model::CreateComponentVersionRequest::AddTags
CreateComponentVersionRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateComponentVersionRequest.h:211
Aws::GreengrassV2::Model::CreateComponentVersionRequest::WithClientToken
CreateComponentVersionRequest & WithClientToken(Aws::String &&value)
Definition: CreateComponentVersionRequest.h:305
Aws::GreengrassV2::Model::CreateComponentVersionRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateComponentVersionRequest.h:250
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::CreateComponentVersionRequest::InlineRecipeHasBeenSet
bool InlineRecipeHasBeenSet() const
Definition: CreateComponentVersionRequest.h:53
Aws::GreengrassV2::Model::CreateComponentVersionRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateComponentVersionRequest.h:155
Aws::GreengrassV2::Model::CreateComponentVersionRequest
Definition: CreateComponentVersionRequest.h:26
Aws::GreengrassV2::Model::CreateComponentVersionRequest::SetInlineRecipe
void SetInlineRecipe(Aws::Utils::ByteBuffer &&value)
Definition: CreateComponentVersionRequest.h:69
Aws::GreengrassV2::Model::CreateComponentVersionRequest::WithClientToken
CreateComponentVersionRequest & WithClientToken(const char *value)
Definition: CreateComponentVersionRequest.h:316
Aws::GreengrassV2::Model::CreateComponentVersionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateComponentVersionRequest.h:139
Aws::GreengrassV2::Model::CreateComponentVersionRequest::WithLambdaFunction
CreateComponentVersionRequest & WithLambdaFunction(LambdaFunctionRecipeSource &&value)
Definition: CreateComponentVersionRequest.h:122
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::CreateComponentVersionRequest::WithClientToken
CreateComponentVersionRequest & WithClientToken(const Aws::String &value)
Definition: CreateComponentVersionRequest.h:294
Aws::GreengrassV2::Model::CreateComponentVersionRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateComponentVersionRequest.h:272
Aws::GreengrassV2::Model::LambdaFunctionRecipeSource
Definition: LambdaFunctionRecipeSource.h:38
Aws::GreengrassV2::Model::CreateComponentVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateComponentVersionRequest.h:34
Aws::GreengrassV2::Model::CreateComponentVersionRequest::SetLambdaFunction
void SetLambdaFunction(LambdaFunctionRecipeSource &&value)
Definition: CreateComponentVersionRequest.h:110
LambdaFunctionRecipeSource.h
Aws::GreengrassV2::GreengrassV2Request
Definition: GreengrassV2Request.h:17
Aws::GreengrassV2::Model::CreateComponentVersionRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateComponentVersionRequest.h:239
Aws::GreengrassV2::Model::CreateComponentVersionRequest::WithLambdaFunction
CreateComponentVersionRequest & WithLambdaFunction(const LambdaFunctionRecipeSource &value)
Definition: CreateComponentVersionRequest.h:116
Aws::GreengrassV2::Model::CreateComponentVersionRequest::WithTags
CreateComponentVersionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateComponentVersionRequest.h:171
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::GreengrassV2::Model::CreateComponentVersionRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateComponentVersionRequest.h:283
Aws::GreengrassV2::Model::CreateComponentVersionRequest::LambdaFunctionHasBeenSet
bool LambdaFunctionHasBeenSet() const
Definition: CreateComponentVersionRequest.h:98
Aws::GreengrassV2::Model::CreateComponentVersionRequest::GetLambdaFunction
const LambdaFunctionRecipeSource & GetLambdaFunction() const
Definition: CreateComponentVersionRequest.h:92
Aws::GreengrassV2::Model::CreateComponentVersionRequest::SetLambdaFunction
void SetLambdaFunction(const LambdaFunctionRecipeSource &value)
Definition: CreateComponentVersionRequest.h:104
Aws::GreengrassV2::Model::CreateComponentVersionRequest::AddTags
CreateComponentVersionRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateComponentVersionRequest.h:195
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::GreengrassV2::Model::CreateComponentVersionRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateComponentVersionRequest.h:261
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::CreateComponentVersionRequest::AddTags
CreateComponentVersionRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateComponentVersionRequest.h:219
Aws::GreengrassV2::Model::CreateComponentVersionRequest::WithTags
CreateComponentVersionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateComponentVersionRequest.h:163
UUID.h
Aws::GreengrassV2::Model::CreateComponentVersionRequest::AddTags
CreateComponentVersionRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateComponentVersionRequest.h:203
AWSMap.h
Aws::GreengrassV2::Model::CreateComponentVersionRequest::AddTags
CreateComponentVersionRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateComponentVersionRequest.h:179
Aws::GreengrassV2::Model::CreateComponentVersionRequest::WithInlineRecipe
CreateComponentVersionRequest & WithInlineRecipe(const Aws::Utils::ByteBuffer &value)
Definition: CreateComponentVersionRequest.h:77
Aws::GreengrassV2::Model::CreateComponentVersionRequest::CreateComponentVersionRequest
CreateComponentVersionRequest()
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::GreengrassV2::Model::CreateComponentVersionRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateComponentVersionRequest.h:147