AWS SDK for C++  1.9.40
AWS SDK for C++
CreateRepositoryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CodeCommit
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateRepository"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
51  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
52 
62  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
63 
73  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
74 
84  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
85 
95  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
96 
106  inline CreateRepositoryRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
107 
117  inline CreateRepositoryRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
118 
128  inline CreateRepositoryRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
129 
130 
139  inline const Aws::String& GetRepositoryDescription() const{ return m_repositoryDescription; }
140 
149  inline bool RepositoryDescriptionHasBeenSet() const { return m_repositoryDescriptionHasBeenSet; }
150 
159  inline void SetRepositoryDescription(const Aws::String& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = value; }
160 
169  inline void SetRepositoryDescription(Aws::String&& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = std::move(value); }
170 
179  inline void SetRepositoryDescription(const char* value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription.assign(value); }
180 
189  inline CreateRepositoryRequest& WithRepositoryDescription(const Aws::String& value) { SetRepositoryDescription(value); return *this;}
190 
199  inline CreateRepositoryRequest& WithRepositoryDescription(Aws::String&& value) { SetRepositoryDescription(std::move(value)); return *this;}
200 
209  inline CreateRepositoryRequest& WithRepositoryDescription(const char* value) { SetRepositoryDescription(value); return *this;}
210 
211 
215  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
216 
220  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 
225  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
226 
230  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
231 
235  inline CreateRepositoryRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
236 
240  inline CreateRepositoryRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
241 
245  inline CreateRepositoryRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
246 
250  inline CreateRepositoryRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
251 
255  inline CreateRepositoryRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
256 
260  inline CreateRepositoryRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
261 
265  inline CreateRepositoryRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
266 
270  inline CreateRepositoryRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
271 
275  inline CreateRepositoryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
276 
277  private:
278 
279  Aws::String m_repositoryName;
280  bool m_repositoryNameHasBeenSet;
281 
282  Aws::String m_repositoryDescription;
283  bool m_repositoryDescriptionHasBeenSet;
284 
286  bool m_tagsHasBeenSet;
287  };
288 
289 } // namespace Model
290 } // namespace CodeCommit
291 } // namespace Aws
Aws::CodeCommit::Model::CreateRepositoryRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateRepositoryRequest.h:230
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::CreateRepositoryRequest::AddTags
CreateRepositoryRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateRepositoryRequest.h:260
Aws::CodeCommit::Model::CreateRepositoryRequest::WithRepositoryName
CreateRepositoryRequest & WithRepositoryName(const Aws::String &value)
Definition: CreateRepositoryRequest.h:106
Aws::CodeCommit::Model::CreateRepositoryRequest
Definition: CreateRepositoryRequest.h:27
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::CreateRepositoryRequest::WithRepositoryName
CreateRepositoryRequest & WithRepositoryName(const char *value)
Definition: CreateRepositoryRequest.h:128
Aws::CodeCommit::Model::CreateRepositoryRequest::WithRepositoryDescription
CreateRepositoryRequest & WithRepositoryDescription(const Aws::String &value)
Definition: CreateRepositoryRequest.h:189
Aws::CodeCommit::Model::CreateRepositoryRequest::CreateRepositoryRequest
CreateRepositoryRequest()
Aws::CodeCommit::Model::CreateRepositoryRequest::AddTags
CreateRepositoryRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateRepositoryRequest.h:265
Aws::CodeCommit::Model::CreateRepositoryRequest::WithRepositoryName
CreateRepositoryRequest & WithRepositoryName(Aws::String &&value)
Definition: CreateRepositoryRequest.h:117
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::CreateRepositoryRequest::WithTags
CreateRepositoryRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateRepositoryRequest.h:240
CodeCommitRequest.h
Aws::CodeCommit::Model::CreateRepositoryRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: CreateRepositoryRequest.h:51
Aws::CodeCommit::Model::CreateRepositoryRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: CreateRepositoryRequest.h:73
Aws::CodeCommit::Model::CreateRepositoryRequest::AddTags
CreateRepositoryRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateRepositoryRequest.h:270
Aws::CodeCommit::Model::CreateRepositoryRequest::SetRepositoryDescription
void SetRepositoryDescription(const Aws::String &value)
Definition: CreateRepositoryRequest.h:159
Aws::CodeCommit::Model::CreateRepositoryRequest::AddTags
CreateRepositoryRequest & AddTags(const char *key, const char *value)
Definition: CreateRepositoryRequest.h:275
Aws::CodeCommit::Model::CreateRepositoryRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: CreateRepositoryRequest.h:84
Aws::CodeCommit::Model::CreateRepositoryRequest::AddTags
CreateRepositoryRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateRepositoryRequest.h:245
Aws::CodeCommit::Model::CreateRepositoryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::CreateRepositoryRequest::WithTags
CreateRepositoryRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateRepositoryRequest.h:235
Aws::CodeCommit::Model::CreateRepositoryRequest::RepositoryDescriptionHasBeenSet
bool RepositoryDescriptionHasBeenSet() const
Definition: CreateRepositoryRequest.h:149
Aws::CodeCommit::Model::CreateRepositoryRequest::AddTags
CreateRepositoryRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateRepositoryRequest.h:250
AWSString.h
Aws::CodeCommit::Model::CreateRepositoryRequest::SetRepositoryDescription
void SetRepositoryDescription(const char *value)
Definition: CreateRepositoryRequest.h:179
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::CreateRepositoryRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: CreateRepositoryRequest.h:95
Aws::CodeCommit::Model::CreateRepositoryRequest::AddTags
CreateRepositoryRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateRepositoryRequest.h:255
Aws::CodeCommit::Model::CreateRepositoryRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateRepositoryRequest.h:225
Aws::CodeCommit::Model::CreateRepositoryRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: CreateRepositoryRequest.h:62
Aws::CodeCommit::Model::CreateRepositoryRequest::SetRepositoryDescription
void SetRepositoryDescription(Aws::String &&value)
Definition: CreateRepositoryRequest.h:169
Aws::CodeCommit::Model::CreateRepositoryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRepositoryRequest.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::CreateRepositoryRequest::WithRepositoryDescription
CreateRepositoryRequest & WithRepositoryDescription(const char *value)
Definition: CreateRepositoryRequest.h:209
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::CreateRepositoryRequest::WithRepositoryDescription
CreateRepositoryRequest & WithRepositoryDescription(Aws::String &&value)
Definition: CreateRepositoryRequest.h:199
Aws::CodeCommit::Model::CreateRepositoryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::CreateRepositoryRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateRepositoryRequest.h:220
AWSMap.h
Aws::CodeCommit::Model::CreateRepositoryRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateRepositoryRequest.h:215
Aws::CodeCommit::Model::CreateRepositoryRequest::GetRepositoryDescription
const Aws::String & GetRepositoryDescription() const
Definition: CreateRepositoryRequest.h:139
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19