AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/RuleDetail.h>
11#include <aws/datazone/model/RuleScope.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataZone {
17namespace Model {
18
22 public:
23 AWS_DATAZONE_API UpdateRuleRequest() = 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 "UpdateRule"; }
30
31 AWS_DATAZONE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
38 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
39 template <typename DomainIdentifierT = Aws::String>
40 void SetDomainIdentifier(DomainIdentifierT&& value) {
41 m_domainIdentifierHasBeenSet = true;
42 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
43 }
44 template <typename DomainIdentifierT = Aws::String>
45 UpdateRuleRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
46 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetIdentifier() const { return m_identifier; }
56 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
57 template <typename IdentifierT = Aws::String>
58 void SetIdentifier(IdentifierT&& value) {
59 m_identifierHasBeenSet = true;
60 m_identifier = std::forward<IdentifierT>(value);
61 }
62 template <typename IdentifierT = Aws::String>
63 UpdateRuleRequest& WithIdentifier(IdentifierT&& value) {
64 SetIdentifier(std::forward<IdentifierT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
81 UpdateRuleRequest& WithName(NameT&& value) {
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
99 UpdateRuleRequest& WithDescription(DescriptionT&& value) {
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
109 inline const RuleScope& GetScope() const { return m_scope; }
110 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
111 template <typename ScopeT = RuleScope>
112 void SetScope(ScopeT&& value) {
113 m_scopeHasBeenSet = true;
114 m_scope = std::forward<ScopeT>(value);
115 }
116 template <typename ScopeT = RuleScope>
117 UpdateRuleRequest& WithScope(ScopeT&& value) {
118 SetScope(std::forward<ScopeT>(value));
119 return *this;
120 }
122
124
127 inline const RuleDetail& GetDetail() const { return m_detail; }
128 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
129 template <typename DetailT = RuleDetail>
130 void SetDetail(DetailT&& value) {
131 m_detailHasBeenSet = true;
132 m_detail = std::forward<DetailT>(value);
133 }
134 template <typename DetailT = RuleDetail>
135 UpdateRuleRequest& WithDetail(DetailT&& value) {
136 SetDetail(std::forward<DetailT>(value));
137 return *this;
138 }
140
142
145 inline bool GetIncludeChildDomainUnits() const { return m_includeChildDomainUnits; }
146 inline bool IncludeChildDomainUnitsHasBeenSet() const { return m_includeChildDomainUnitsHasBeenSet; }
147 inline void SetIncludeChildDomainUnits(bool value) {
148 m_includeChildDomainUnitsHasBeenSet = true;
149 m_includeChildDomainUnits = value;
150 }
153 return *this;
154 }
156 private:
157 Aws::String m_domainIdentifier;
158
159 Aws::String m_identifier;
160
161 Aws::String m_name;
162
163 Aws::String m_description;
164
165 RuleScope m_scope;
166
167 RuleDetail m_detail;
168
169 bool m_includeChildDomainUnits{false};
170 bool m_domainIdentifierHasBeenSet = false;
171 bool m_identifierHasBeenSet = false;
172 bool m_nameHasBeenSet = false;
173 bool m_descriptionHasBeenSet = false;
174 bool m_scopeHasBeenSet = false;
175 bool m_detailHasBeenSet = false;
176 bool m_includeChildDomainUnitsHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace DataZone
181} // namespace Aws
const Aws::String & GetIdentifier() const
UpdateRuleRequest & WithDetail(DetailT &&value)
AWS_DATAZONE_API UpdateRuleRequest()=default
UpdateRuleRequest & WithDescription(DescriptionT &&value)
void SetDomainIdentifier(DomainIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DATAZONE_API Aws::String SerializePayload() const override
UpdateRuleRequest & WithDomainIdentifier(DomainIdentifierT &&value)
const Aws::String & GetDomainIdentifier() const
UpdateRuleRequest & WithScope(ScopeT &&value)
UpdateRuleRequest & WithIdentifier(IdentifierT &&value)
UpdateRuleRequest & WithName(NameT &&value)
const Aws::String & GetDescription() const
UpdateRuleRequest & WithIncludeChildDomainUnits(bool value)
void SetDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String