AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRepositoryRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/CodeCommitRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeCommit
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_CODECOMMIT_API CreateRepositoryRequest();
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_CODECOMMIT_API Aws::String SerializePayload() const override;
38
40
41
43
52 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
53 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
54 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
55 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
56 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
57 inline CreateRepositoryRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
58 inline CreateRepositoryRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
59 inline CreateRepositoryRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
61
63
71 inline const Aws::String& GetRepositoryDescription() const{ return m_repositoryDescription; }
72 inline bool RepositoryDescriptionHasBeenSet() const { return m_repositoryDescriptionHasBeenSet; }
73 inline void SetRepositoryDescription(const Aws::String& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = value; }
74 inline void SetRepositoryDescription(Aws::String&& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = std::move(value); }
75 inline void SetRepositoryDescription(const char* value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription.assign(value); }
78 inline CreateRepositoryRequest& WithRepositoryDescription(const char* value) { SetRepositoryDescription(value); return *this;}
80
82
85 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
88 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
89 inline CreateRepositoryRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
90 inline CreateRepositoryRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
91 inline CreateRepositoryRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
92 inline CreateRepositoryRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
93 inline CreateRepositoryRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
94 inline CreateRepositoryRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
95 inline CreateRepositoryRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
96 inline CreateRepositoryRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
97 inline CreateRepositoryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
99
101
110 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
111 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
112 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
113 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
114 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
115 inline CreateRepositoryRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
116 inline CreateRepositoryRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
117 inline CreateRepositoryRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
119 private:
120
121 Aws::String m_repositoryName;
122 bool m_repositoryNameHasBeenSet = false;
123
124 Aws::String m_repositoryDescription;
125 bool m_repositoryDescriptionHasBeenSet = false;
126
128 bool m_tagsHasBeenSet = false;
129
130 Aws::String m_kmsKeyId;
131 bool m_kmsKeyIdHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace CodeCommit
136} // namespace Aws
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
CreateRepositoryRequest & WithKmsKeyId(const char *value)
CreateRepositoryRequest & AddTags(const char *key, Aws::String &&value)
CreateRepositoryRequest & WithRepositoryDescription(const Aws::String &value)
CreateRepositoryRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateRepositoryRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRepositoryRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateRepositoryRequest & AddTags(const char *key, const char *value)
CreateRepositoryRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateRepositoryRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateRepositoryRequest & WithRepositoryDescription(const char *value)
CreateRepositoryRequest & WithRepositoryName(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRepositoryRequest & WithRepositoryName(Aws::String &&value)
CreateRepositoryRequest & WithRepositoryDescription(Aws::String &&value)
CreateRepositoryRequest & WithKmsKeyId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateRepositoryRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateRepositoryRequest & WithRepositoryName(const char *value)
CreateRepositoryRequest & WithKmsKeyId(Aws::String &&value)
CreateRepositoryRequest & AddTags(const Aws::String &key, Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String