AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename RepositoryNameT = Aws::String>
55 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
56 template<typename RepositoryNameT = Aws::String>
57 CreateRepositoryRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
59
61
69 inline const Aws::String& GetRepositoryDescription() const { return m_repositoryDescription; }
70 inline bool RepositoryDescriptionHasBeenSet() const { return m_repositoryDescriptionHasBeenSet; }
71 template<typename RepositoryDescriptionT = Aws::String>
72 void SetRepositoryDescription(RepositoryDescriptionT&& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = std::forward<RepositoryDescriptionT>(value); }
73 template<typename RepositoryDescriptionT = Aws::String>
74 CreateRepositoryRequest& WithRepositoryDescription(RepositoryDescriptionT&& value) { SetRepositoryDescription(std::forward<RepositoryDescriptionT>(value)); return *this;}
76
78
81 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 CreateRepositoryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
87 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 CreateRepositoryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
90 }
92
94
103 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
104 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
105 template<typename KmsKeyIdT = Aws::String>
106 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
107 template<typename KmsKeyIdT = Aws::String>
108 CreateRepositoryRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
110 private:
111
112 Aws::String m_repositoryName;
113 bool m_repositoryNameHasBeenSet = false;
114
115 Aws::String m_repositoryDescription;
116 bool m_repositoryDescriptionHasBeenSet = false;
117
119 bool m_tagsHasBeenSet = false;
120
121 Aws::String m_kmsKeyId;
122 bool m_kmsKeyIdHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace CodeCommit
127} // 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