AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateDomainRequest.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifactRequest.h>
8#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
9#include <aws/codeartifact/model/Tag.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace CodeArtifact {
20namespace Model {
21
25 public:
26 AWS_CODEARTIFACT_API CreateDomainRequest() = 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 "CreateDomain"; }
33
34 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
35
36 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
45 inline const Aws::String& GetDomain() const { return m_domain; }
46 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
47 template <typename DomainT = Aws::String>
48 void SetDomain(DomainT&& value) {
49 m_domainHasBeenSet = true;
50 m_domain = std::forward<DomainT>(value);
51 }
52 template <typename DomainT = Aws::String>
53 CreateDomainRequest& WithDomain(DomainT&& value) {
54 SetDomain(std::forward<DomainT>(value));
55 return *this;
56 }
58
60
77 inline const Aws::String& GetEncryptionKey() const { return m_encryptionKey; }
78 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
79 template <typename EncryptionKeyT = Aws::String>
80 void SetEncryptionKey(EncryptionKeyT&& value) {
81 m_encryptionKeyHasBeenSet = true;
82 m_encryptionKey = std::forward<EncryptionKeyT>(value);
83 }
84 template <typename EncryptionKeyT = Aws::String>
85 CreateDomainRequest& WithEncryptionKey(EncryptionKeyT&& value) {
86 SetEncryptionKey(std::forward<EncryptionKeyT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template <typename TagsT = Aws::Vector<Tag>>
98 void SetTags(TagsT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags = std::forward<TagsT>(value);
101 }
102 template <typename TagsT = Aws::Vector<Tag>>
104 SetTags(std::forward<TagsT>(value));
105 return *this;
106 }
107 template <typename TagsT = Tag>
108 CreateDomainRequest& AddTags(TagsT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags.emplace_back(std::forward<TagsT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_domain;
116
117 Aws::String m_encryptionKey;
118
119 Aws::Vector<Tag> m_tags;
120 bool m_domainHasBeenSet = false;
121 bool m_encryptionKeyHasBeenSet = false;
122 bool m_tagsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace CodeArtifact
127} // namespace Aws
CreateDomainRequest & WithDomain(DomainT &&value)
CreateDomainRequest & AddTags(TagsT &&value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
CreateDomainRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateDomainRequest & WithEncryptionKey(EncryptionKeyT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_CODEARTIFACT_API CreateDomainRequest()=default
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector