AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
AssociateGovernedTermsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/GovernedEntityType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataZone {
17namespace Model {
18
22 public:
23 AWS_DATAZONE_API AssociateGovernedTermsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "AssociateGovernedTerms"; }
30
31 AWS_DATAZONE_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
39 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
40 template <typename DomainIdentifierT = Aws::String>
41 void SetDomainIdentifier(DomainIdentifierT&& value) {
42 m_domainIdentifierHasBeenSet = true;
43 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
44 }
45 template <typename DomainIdentifierT = Aws::String>
47 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetEntityIdentifier() const { return m_entityIdentifier; }
57 inline bool EntityIdentifierHasBeenSet() const { return m_entityIdentifierHasBeenSet; }
58 template <typename EntityIdentifierT = Aws::String>
59 void SetEntityIdentifier(EntityIdentifierT&& value) {
60 m_entityIdentifierHasBeenSet = true;
61 m_entityIdentifier = std::forward<EntityIdentifierT>(value);
62 }
63 template <typename EntityIdentifierT = Aws::String>
65 SetEntityIdentifier(std::forward<EntityIdentifierT>(value));
66 return *this;
67 }
69
71
74 inline GovernedEntityType GetEntityType() const { return m_entityType; }
75 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
76 inline void SetEntityType(GovernedEntityType value) {
77 m_entityTypeHasBeenSet = true;
78 m_entityType = value;
79 }
81 SetEntityType(value);
82 return *this;
83 }
85
87
90 inline const Aws::Vector<Aws::String>& GetGovernedGlossaryTerms() const { return m_governedGlossaryTerms; }
91 inline bool GovernedGlossaryTermsHasBeenSet() const { return m_governedGlossaryTermsHasBeenSet; }
92 template <typename GovernedGlossaryTermsT = Aws::Vector<Aws::String>>
93 void SetGovernedGlossaryTerms(GovernedGlossaryTermsT&& value) {
94 m_governedGlossaryTermsHasBeenSet = true;
95 m_governedGlossaryTerms = std::forward<GovernedGlossaryTermsT>(value);
96 }
97 template <typename GovernedGlossaryTermsT = Aws::Vector<Aws::String>>
99 SetGovernedGlossaryTerms(std::forward<GovernedGlossaryTermsT>(value));
100 return *this;
101 }
102 template <typename GovernedGlossaryTermsT = Aws::String>
104 m_governedGlossaryTermsHasBeenSet = true;
105 m_governedGlossaryTerms.emplace_back(std::forward<GovernedGlossaryTermsT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_domainIdentifier;
111 bool m_domainIdentifierHasBeenSet = false;
112
113 Aws::String m_entityIdentifier;
114 bool m_entityIdentifierHasBeenSet = false;
115
117 bool m_entityTypeHasBeenSet = false;
118
119 Aws::Vector<Aws::String> m_governedGlossaryTerms;
120 bool m_governedGlossaryTermsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace DataZone
125} // namespace Aws
AWS_DATAZONE_API AssociateGovernedTermsRequest()=default
const Aws::Vector< Aws::String > & GetGovernedGlossaryTerms() const
AssociateGovernedTermsRequest & WithEntityType(GovernedEntityType value)
AssociateGovernedTermsRequest & WithDomainIdentifier(DomainIdentifierT &&value)
AssociateGovernedTermsRequest & WithGovernedGlossaryTerms(GovernedGlossaryTermsT &&value)
AssociateGovernedTermsRequest & AddGovernedGlossaryTerms(GovernedGlossaryTermsT &&value)
AssociateGovernedTermsRequest & WithEntityIdentifier(EntityIdentifierT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector