AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
CreateGlossaryRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/model/GlossaryStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/datazone/model/GlossaryUsageRestriction.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace DataZone
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_DATAZONE_API CreateGlossaryRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateGlossary"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetClientToken() const { return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 template<typename ClientTokenT = Aws::String>
47 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
48 template<typename ClientTokenT = Aws::String>
49 CreateGlossaryRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 CreateGlossaryRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
69 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
70 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
71 template<typename DomainIdentifierT = Aws::String>
72 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
73 template<typename DomainIdentifierT = Aws::String>
74 CreateGlossaryRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template<typename NameT = Aws::String>
84 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
85 template<typename NameT = Aws::String>
86 CreateGlossaryRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
88
90
93 inline const Aws::String& GetOwningProjectIdentifier() const { return m_owningProjectIdentifier; }
94 inline bool OwningProjectIdentifierHasBeenSet() const { return m_owningProjectIdentifierHasBeenSet; }
95 template<typename OwningProjectIdentifierT = Aws::String>
96 void SetOwningProjectIdentifier(OwningProjectIdentifierT&& value) { m_owningProjectIdentifierHasBeenSet = true; m_owningProjectIdentifier = std::forward<OwningProjectIdentifierT>(value); }
97 template<typename OwningProjectIdentifierT = Aws::String>
98 CreateGlossaryRequest& WithOwningProjectIdentifier(OwningProjectIdentifierT&& value) { SetOwningProjectIdentifier(std::forward<OwningProjectIdentifierT>(value)); return *this;}
100
102
105 inline GlossaryStatus GetStatus() const { return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 inline void SetStatus(GlossaryStatus value) { m_statusHasBeenSet = true; m_status = value; }
108 inline CreateGlossaryRequest& WithStatus(GlossaryStatus value) { SetStatus(value); return *this;}
110
112
115 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
116 inline bool UsageRestrictionsHasBeenSet() const { return m_usageRestrictionsHasBeenSet; }
117 template<typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
118 void SetUsageRestrictions(UsageRestrictionsT&& value) { m_usageRestrictionsHasBeenSet = true; m_usageRestrictions = std::forward<UsageRestrictionsT>(value); }
119 template<typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
120 CreateGlossaryRequest& WithUsageRestrictions(UsageRestrictionsT&& value) { SetUsageRestrictions(std::forward<UsageRestrictionsT>(value)); return *this;}
121 inline CreateGlossaryRequest& AddUsageRestrictions(GlossaryUsageRestriction value) { m_usageRestrictionsHasBeenSet = true; m_usageRestrictions.push_back(value); return *this; }
123 private:
124
126 bool m_clientTokenHasBeenSet = true;
127
128 Aws::String m_description;
129 bool m_descriptionHasBeenSet = false;
130
131 Aws::String m_domainIdentifier;
132 bool m_domainIdentifierHasBeenSet = false;
133
134 Aws::String m_name;
135 bool m_nameHasBeenSet = false;
136
137 Aws::String m_owningProjectIdentifier;
138 bool m_owningProjectIdentifierHasBeenSet = false;
139
141 bool m_statusHasBeenSet = false;
142
143 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
144 bool m_usageRestrictionsHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace DataZone
149} // 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
const Aws::String & GetOwningProjectIdentifier() const
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