AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateGlossaryRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZoneRequest.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/GlossaryStatus.h>
13#include <aws/datazone/model/GlossaryUsageRestriction.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DataZone {
19namespace Model {
20
24 public:
25 AWS_DATAZONE_API CreateGlossaryRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateGlossary"; }
32
33 AWS_DATAZONE_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetClientToken() const { return m_clientToken; }
41 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
42 template <typename ClientTokenT = Aws::String>
43 void SetClientToken(ClientTokenT&& value) {
44 m_clientTokenHasBeenSet = true;
45 m_clientToken = std::forward<ClientTokenT>(value);
46 }
47 template <typename ClientTokenT = Aws::String>
48 CreateGlossaryRequest& WithClientToken(ClientTokenT&& value) {
49 SetClientToken(std::forward<ClientTokenT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 CreateGlossaryRequest& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
78 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
79 template <typename DomainIdentifierT = Aws::String>
80 void SetDomainIdentifier(DomainIdentifierT&& value) {
81 m_domainIdentifierHasBeenSet = true;
82 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
83 }
84 template <typename DomainIdentifierT = Aws::String>
85 CreateGlossaryRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
86 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetName() const { return m_name; }
96 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 template <typename NameT = Aws::String>
98 void SetName(NameT&& value) {
99 m_nameHasBeenSet = true;
100 m_name = std::forward<NameT>(value);
101 }
102 template <typename NameT = Aws::String>
104 SetName(std::forward<NameT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
114 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
115 template <typename OwningProjectIdentifierT = Aws::String>
116 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
117 m_owningProjectIdentifierHasBeenSet = true;
118 m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value);
119 }
120 template <typename OwningProjectIdentifierT = Aws::String>
121 CreateGlossaryRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) {
122 SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value));
123 return *this;
124 }
126
128
131 inline GlossaryStatus GetStatus() const { return m_status; }
132 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
133 inline void SetStatus(GlossaryStatus value) {
134 m_statusHasBeenSet = true;
135 m_status = value;
136 }
138 SetStatus(value);
139 return *this;
140 }
142
144
147 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
148 inline bool UsageRestrictionsHasBeenSet() const { return m_usageRestrictionsHasBeenSet; }
149 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
150 void SetUsageRestrictions(UsageRestrictionsT&& value) {
151 m_usageRestrictionsHasBeenSet = true;
152 m_usageRestrictions = std::forward<UsageRestrictionsT>(value);
153 }
154 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
155 CreateGlossaryRequest& WithUsageRestrictions(UsageRestrictionsT&& value) {
156 SetUsageRestrictions(std::forward<UsageRestrictionsT>(value));
157 return *this;
158 }
160 m_usageRestrictionsHasBeenSet = true;
161 m_usageRestrictions.push_back(value);
162 return *this;
163 }
165 private:
167 bool m_clientTokenHasBeenSet = true;
168
169 Aws::String m_description;
170 bool m_descriptionHasBeenSet = false;
171
172 Aws::String m_domainIdentifier;
173 bool m_domainIdentifierHasBeenSet = false;
174
175 Aws::String m_name;
176 bool m_nameHasBeenSet = false;
177
178 Aws::String m_owningProjectIdentifier;
179 bool m_owningProjectIdentifierHasBeenSet = false;
180
182 bool m_statusHasBeenSet = false;
183
184 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
185 bool m_usageRestrictionsHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace DataZone
190} // namespace Aws
CreateGlossaryRequest & WithName(NameT &&value)
CreateGlossaryRequest & WithDomainIdentifier(DomainIdentifierT &&value)
CreateGlossaryRequest & WithUsageRestrictions(UsageRestrictionsT &&value)
void SetOwningProjectIdentifier(OwningProjectIdentifierT &&value)
CreateGlossaryRequest & WithDescription(DescriptionT &&value)
CreateGlossaryRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< GlossaryUsageRestriction > & GetUsageRestrictions() const
void SetDomainIdentifier(DomainIdentifierT &&value)
void SetUsageRestrictions(UsageRestrictionsT &&value)
virtual const char * GetServiceRequestName() const override
CreateGlossaryRequest & WithOwningProjectIdentifier(OwningProjectIdentifierT &&value)
AWS_DATAZONE_API CreateGlossaryRequest()=default
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateGlossaryRequest & WithStatus(GlossaryStatus value)
CreateGlossaryRequest & AddUsageRestrictions(GlossaryUsageRestriction value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector