AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateRepositoryRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeCommit {
16namespace Model {
17
25 public:
26 AWS_CODECOMMIT_API CreateRepositoryRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateRepository"; }
33
34 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
35
37
39
48 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
49 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
50 template <typename RepositoryNameT = Aws::String>
51 void SetRepositoryName(RepositoryNameT&& value) {
52 m_repositoryNameHasBeenSet = true;
53 m_repositoryName = std::forward<RepositoryNameT>(value);
54 }
55 template <typename RepositoryNameT = Aws::String>
56 CreateRepositoryRequest& WithRepositoryName(RepositoryNameT&& value) {
57 SetRepositoryName(std::forward<RepositoryNameT>(value));
58 return *this;
59 }
61
63
71 inline const Aws::String& GetRepositoryDescription() const { return m_repositoryDescription; }
72 inline bool RepositoryDescriptionHasBeenSet() const { return m_repositoryDescriptionHasBeenSet; }
73 template <typename RepositoryDescriptionT = Aws::String>
74 void SetRepositoryDescription(RepositoryDescriptionT&& value) {
75 m_repositoryDescriptionHasBeenSet = true;
76 m_repositoryDescription = std::forward<RepositoryDescriptionT>(value);
77 }
78 template <typename RepositoryDescriptionT = Aws::String>
79 CreateRepositoryRequest& WithRepositoryDescription(RepositoryDescriptionT&& value) {
80 SetRepositoryDescription(std::forward<RepositoryDescriptionT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
92 void SetTags(TagsT&& value) {
93 m_tagsHasBeenSet = true;
94 m_tags = std::forward<TagsT>(value);
95 }
96 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 SetTags(std::forward<TagsT>(value));
99 return *this;
100 }
101 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
102 CreateRepositoryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
103 m_tagsHasBeenSet = true;
104 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
105 return *this;
106 }
108
110
119 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
120 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
121 template <typename KmsKeyIdT = Aws::String>
122 void SetKmsKeyId(KmsKeyIdT&& value) {
123 m_kmsKeyIdHasBeenSet = true;
124 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
125 }
126 template <typename KmsKeyIdT = Aws::String>
128 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_repositoryName;
134
135 Aws::String m_repositoryDescription;
136
138
139 Aws::String m_kmsKeyId;
140 bool m_repositoryNameHasBeenSet = false;
141 bool m_repositoryDescriptionHasBeenSet = false;
142 bool m_tagsHasBeenSet = false;
143 bool m_kmsKeyIdHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace CodeCommit
148} // namespace Aws
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRepositoryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateRepositoryRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_CODECOMMIT_API CreateRepositoryRequest()=default
CreateRepositoryRequest & WithTags(TagsT &&value)
void SetRepositoryDescription(RepositoryDescriptionT &&value)
CreateRepositoryRequest & WithRepositoryName(RepositoryNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateRepositoryRequest & WithRepositoryDescription(RepositoryDescriptionT &&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