AWS SDK for C++  1.9.66
AWS SDK for C++
CreateProjectRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace CodeStar
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 "CreateProject"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline CreateProjectRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline CreateProjectRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline CreateProjectRequest& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const Aws::String& GetId() const{ return m_id; }
86 
90  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
91 
95  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
96 
100  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
101 
105  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
106 
110  inline CreateProjectRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
111 
115  inline CreateProjectRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
116 
120  inline CreateProjectRequest& WithId(const char* value) { SetId(value); return *this;}
121 
122 
126  inline const Aws::String& GetDescription() const{ return m_description; }
127 
131  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
132 
136  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
137 
141  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
142 
146  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
147 
151  inline CreateProjectRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
152 
156  inline CreateProjectRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
157 
161  inline CreateProjectRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
162 
163 
168  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
169 
174  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
175 
180  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
181 
186  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
187 
192  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
193 
198  inline CreateProjectRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
199 
204  inline CreateProjectRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
205 
210  inline CreateProjectRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
211 
212 
218  inline const Aws::Vector<Code>& GetSourceCode() const{ return m_sourceCode; }
219 
225  inline bool SourceCodeHasBeenSet() const { return m_sourceCodeHasBeenSet; }
226 
232  inline void SetSourceCode(const Aws::Vector<Code>& value) { m_sourceCodeHasBeenSet = true; m_sourceCode = value; }
233 
239  inline void SetSourceCode(Aws::Vector<Code>&& value) { m_sourceCodeHasBeenSet = true; m_sourceCode = std::move(value); }
240 
246  inline CreateProjectRequest& WithSourceCode(const Aws::Vector<Code>& value) { SetSourceCode(value); return *this;}
247 
253  inline CreateProjectRequest& WithSourceCode(Aws::Vector<Code>&& value) { SetSourceCode(std::move(value)); return *this;}
254 
260  inline CreateProjectRequest& AddSourceCode(const Code& value) { m_sourceCodeHasBeenSet = true; m_sourceCode.push_back(value); return *this; }
261 
267  inline CreateProjectRequest& AddSourceCode(Code&& value) { m_sourceCodeHasBeenSet = true; m_sourceCode.push_back(std::move(value)); return *this; }
268 
269 
275  inline const Toolchain& GetToolchain() const{ return m_toolchain; }
276 
282  inline bool ToolchainHasBeenSet() const { return m_toolchainHasBeenSet; }
283 
289  inline void SetToolchain(const Toolchain& value) { m_toolchainHasBeenSet = true; m_toolchain = value; }
290 
296  inline void SetToolchain(Toolchain&& value) { m_toolchainHasBeenSet = true; m_toolchain = std::move(value); }
297 
303  inline CreateProjectRequest& WithToolchain(const Toolchain& value) { SetToolchain(value); return *this;}
304 
310  inline CreateProjectRequest& WithToolchain(Toolchain&& value) { SetToolchain(std::move(value)); return *this;}
311 
312 
316  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
317 
321  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
322 
326  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
327 
331  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
332 
336  inline CreateProjectRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
337 
341  inline CreateProjectRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
342 
346  inline CreateProjectRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
347 
351  inline CreateProjectRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
352 
356  inline CreateProjectRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
357 
361  inline CreateProjectRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
362 
366  inline CreateProjectRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
367 
371  inline CreateProjectRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
372 
376  inline CreateProjectRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
377 
378  private:
379 
380  Aws::String m_name;
381  bool m_nameHasBeenSet;
382 
383  Aws::String m_id;
384  bool m_idHasBeenSet;
385 
386  Aws::String m_description;
387  bool m_descriptionHasBeenSet;
388 
389  Aws::String m_clientRequestToken;
390  bool m_clientRequestTokenHasBeenSet;
391 
392  Aws::Vector<Code> m_sourceCode;
393  bool m_sourceCodeHasBeenSet;
394 
395  Toolchain m_toolchain;
396  bool m_toolchainHasBeenSet;
397 
399  bool m_tagsHasBeenSet;
400  };
401 
402 } // namespace Model
403 } // namespace CodeStar
404 } // namespace Aws
Aws::CodeStar::Model::CreateProjectRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateProjectRequest.h:146
Aws::CodeStar::Model::CreateProjectRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateProjectRequest.h:321
Aws::CodeStar::Model::CreateProjectRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Toolchain.h
Aws::CodeStar::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateProjectRequest.h:361
Aws::CodeStar::Model::CreateProjectRequest::AddSourceCode
CreateProjectRequest & AddSourceCode(const Code &value)
Definition: CreateProjectRequest.h:260
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeStar::Model::CreateProjectRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateProjectRequest.h:168
Aws::CodeStar::Model::CreateProjectRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateProjectRequest.h:331
AWS_CODESTAR_API
#define AWS_CODESTAR_API
Definition: CodeStar_EXPORTS.h:28
Aws::CodeStar::Model::CreateProjectRequest::GetToolchain
const Toolchain & GetToolchain() const
Definition: CreateProjectRequest.h:275
Aws::CodeStar::Model::CreateProjectRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateProjectRequest.h:54
Aws::CodeStar::Model::CreateProjectRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateProjectRequest.h:180
Aws::CodeStar::Model::CreateProjectRequest::SourceCodeHasBeenSet
bool SourceCodeHasBeenSet() const
Definition: CreateProjectRequest.h:225
Aws::CodeStar::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateProjectRequest.h:371
Aws::CodeStar::Model::CreateProjectRequest::GetId
const Aws::String & GetId() const
Definition: CreateProjectRequest.h:85
Aws::CodeStar::Model::CreateProjectRequest::WithId
CreateProjectRequest & WithId(const Aws::String &value)
Definition: CreateProjectRequest.h:110
Aws::CodeStar::Model::CreateProjectRequest::SetSourceCode
void SetSourceCode(const Aws::Vector< Code > &value)
Definition: CreateProjectRequest.h:232
Aws::CodeStar::Model::CreateProjectRequest::CreateProjectRequest
CreateProjectRequest()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeStar::Model::CreateProjectRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateProjectRequest.h:186
Aws::CodeStar::Model::CreateProjectRequest::WithClientRequestToken
CreateProjectRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateProjectRequest.h:204
AWSVector.h
Aws::CodeStar::Model::CreateProjectRequest::WithDescription
CreateProjectRequest & WithDescription(const Aws::String &value)
Definition: CreateProjectRequest.h:151
Aws::CodeStar::Model::CreateProjectRequest::GetName
const Aws::String & GetName() const
Definition: CreateProjectRequest.h:44
Aws::CodeStar::Model::CreateProjectRequest::WithId
CreateProjectRequest & WithId(Aws::String &&value)
Definition: CreateProjectRequest.h:115
Aws::CodeStar::Model::CreateProjectRequest::SetToolchain
void SetToolchain(const Toolchain &value)
Definition: CreateProjectRequest.h:289
Aws::CodeStar::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(const char *key, const char *value)
Definition: CreateProjectRequest.h:376
Aws::CodeStar::Model::CreateProjectRequest::WithToolchain
CreateProjectRequest & WithToolchain(Toolchain &&value)
Definition: CreateProjectRequest.h:310
Aws::CodeStar::Model::CreateProjectRequest::WithTags
CreateProjectRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateProjectRequest.h:336
Aws::CodeStar::Model::CreateProjectRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateProjectRequest.h:49
Aws::CodeStar::Model::CreateProjectRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateProjectRequest.h:326
Code.h
Aws::CodeStar::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateProjectRequest.h:366
Aws::CodeStar::Model::CreateProjectRequest::SetName
void SetName(const char *value)
Definition: CreateProjectRequest.h:64
Aws::CodeStar::Model::CreateProjectRequest::WithName
CreateProjectRequest & WithName(Aws::String &&value)
Definition: CreateProjectRequest.h:74
Aws::CodeStar::CodeStarRequest
Definition: CodeStarRequest.h:17
Aws::CodeStar::Model::CreateProjectRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateProjectRequest.h:136
Aws::CodeStar::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateProjectRequest.h:346
CodeStar_EXPORTS.h
Aws::CodeStar::Model::CreateProjectRequest::AddSourceCode
CreateProjectRequest & AddSourceCode(Code &&value)
Definition: CreateProjectRequest.h:267
Aws::CodeStar::Model::CreateProjectRequest::SetId
void SetId(Aws::String &&value)
Definition: CreateProjectRequest.h:100
Aws::CodeStar::Model::CreateProjectRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateProjectRequest.h:126
Aws::CodeStar::Model::CreateProjectRequest::SetId
void SetId(const char *value)
Definition: CreateProjectRequest.h:105
Aws::CodeStar::Model::CreateProjectRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateProjectRequest.h:34
CodeStarRequest.h
AWSString.h
Aws::CodeStar::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateProjectRequest.h:356
Aws::CodeStar::Model::CreateProjectRequest::WithDescription
CreateProjectRequest & WithDescription(Aws::String &&value)
Definition: CreateProjectRequest.h:156
Aws::CodeStar::Model::CreateProjectRequest::GetSourceCode
const Aws::Vector< Code > & GetSourceCode() const
Definition: CreateProjectRequest.h:218
Aws::CodeStar::Model::Toolchain
Definition: Toolchain.h:36
Aws::CodeStar::Model::CreateProjectRequest::WithTags
CreateProjectRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateProjectRequest.h:341
Aws::CodeStar::Model::CreateProjectRequest::WithName
CreateProjectRequest & WithName(const char *value)
Definition: CreateProjectRequest.h:79
Aws::CodeStar::Model::CreateProjectRequest::WithSourceCode
CreateProjectRequest & WithSourceCode(Aws::Vector< Code > &&value)
Definition: CreateProjectRequest.h:253
Aws::CodeStar::Model::CreateProjectRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateProjectRequest.h:131
Aws::CodeStar::Model::CreateProjectRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeStar::Model::CreateProjectRequest::WithClientRequestToken
CreateProjectRequest & WithClientRequestToken(const char *value)
Definition: CreateProjectRequest.h:210
Aws::CodeStar::Model::CreateProjectRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateProjectRequest.h:192
Aws::CodeStar::Model::CreateProjectRequest::WithClientRequestToken
CreateProjectRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateProjectRequest.h:198
Aws
Definition: AccessManagementClient.h:15
Aws::CodeStar::Model::CreateProjectRequest::WithName
CreateProjectRequest & WithName(const Aws::String &value)
Definition: CreateProjectRequest.h:69
Aws::CodeStar::Model::Code
Definition: Code.h:35
Aws::CodeStar::Model::CreateProjectRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateProjectRequest.h:141
Aws::CodeStar::Model::CreateProjectRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: CreateProjectRequest.h:90
Aws::CodeStar::Model::CreateProjectRequest::WithDescription
CreateProjectRequest & WithDescription(const char *value)
Definition: CreateProjectRequest.h:161
Aws::CodeStar::Model::CreateProjectRequest::WithToolchain
CreateProjectRequest & WithToolchain(const Toolchain &value)
Definition: CreateProjectRequest.h:303
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeStar::Model::CreateProjectRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateProjectRequest.h:174
Aws::CodeStar::Model::CreateProjectRequest::SetToolchain
void SetToolchain(Toolchain &&value)
Definition: CreateProjectRequest.h:296
Aws::CodeStar::Model::CreateProjectRequest::WithSourceCode
CreateProjectRequest & WithSourceCode(const Aws::Vector< Code > &value)
Definition: CreateProjectRequest.h:246
AWSMap.h
Aws::CodeStar::Model::CreateProjectRequest::SetId
void SetId(const Aws::String &value)
Definition: CreateProjectRequest.h:95
Aws::CodeStar::Model::CreateProjectRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateProjectRequest.h:316
Aws::CodeStar::Model::CreateProjectRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateProjectRequest.h:59
Aws::CodeStar::Model::CreateProjectRequest
Definition: CreateProjectRequest.h:26
Aws::CodeStar::Model::CreateProjectRequest::WithId
CreateProjectRequest & WithId(const char *value)
Definition: CreateProjectRequest.h:120
Aws::CodeStar::Model::CreateProjectRequest::SetSourceCode
void SetSourceCode(Aws::Vector< Code > &&value)
Definition: CreateProjectRequest.h:239
Aws::CodeStar::Model::CreateProjectRequest::AddTags
CreateProjectRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateProjectRequest.h:351
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::CodeStar::Model::CreateProjectRequest::ToolchainHasBeenSet
bool ToolchainHasBeenSet() const
Definition: CreateProjectRequest.h:282