AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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& GetDescription() const { return m_description; }
38 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
39 template <typename DescriptionT = Aws::String>
40 void SetDescription(DescriptionT&& value) {
41 m_descriptionHasBeenSet = true;
42 m_description = std::forward<DescriptionT>(value);
43 }
44 template <typename DescriptionT = Aws::String>
45 UpdateRuleRequest& WithDescription(DescriptionT&& value) {
46 SetDescription(std::forward<DescriptionT>(value));
47 return *this;
48 }
50
52
55 inline const RuleDetail& GetDetail() const { return m_detail; }
56 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
57 template <typename DetailT = RuleDetail>
58 void SetDetail(DetailT&& value) {
59 m_detailHasBeenSet = true;
60 m_detail = std::forward<DetailT>(value);
61 }
62 template <typename DetailT = RuleDetail>
63 UpdateRuleRequest& WithDetail(DetailT&& value) {
64 SetDetail(std::forward<DetailT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
74 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
75 template <typename DomainIdentifierT = Aws::String>
76 void SetDomainIdentifier(DomainIdentifierT&& value) {
77 m_domainIdentifierHasBeenSet = true;
78 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
79 }
80 template <typename DomainIdentifierT = Aws::String>
81 UpdateRuleRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
82 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetIdentifier() const { return m_identifier; }
92 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
93 template <typename IdentifierT = Aws::String>
94 void SetIdentifier(IdentifierT&& value) {
95 m_identifierHasBeenSet = true;
96 m_identifier = std::forward<IdentifierT>(value);
97 }
98 template <typename IdentifierT = Aws::String>
99 UpdateRuleRequest& WithIdentifier(IdentifierT&& value) {
100 SetIdentifier(std::forward<IdentifierT>(value));
101 return *this;
102 }
104
106
109 inline bool GetIncludeChildDomainUnits() const { return m_includeChildDomainUnits; }
110 inline bool IncludeChildDomainUnitsHasBeenSet() const { return m_includeChildDomainUnitsHasBeenSet; }
111 inline void SetIncludeChildDomainUnits(bool value) {
112 m_includeChildDomainUnitsHasBeenSet = true;
113 m_includeChildDomainUnits = value;
114 }
117 return *this;
118 }
120
122
125 inline const Aws::String& GetName() const { return m_name; }
126 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
127 template <typename NameT = Aws::String>
128 void SetName(NameT&& value) {
129 m_nameHasBeenSet = true;
130 m_name = std::forward<NameT>(value);
131 }
132 template <typename NameT = Aws::String>
133 UpdateRuleRequest& WithName(NameT&& value) {
134 SetName(std::forward<NameT>(value));
135 return *this;
136 }
138
140
143 inline const RuleScope& GetScope() const { return m_scope; }
144 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
145 template <typename ScopeT = RuleScope>
146 void SetScope(ScopeT&& value) {
147 m_scopeHasBeenSet = true;
148 m_scope = std::forward<ScopeT>(value);
149 }
150 template <typename ScopeT = RuleScope>
151 UpdateRuleRequest& WithScope(ScopeT&& value) {
152 SetScope(std::forward<ScopeT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159
160 RuleDetail m_detail;
161 bool m_detailHasBeenSet = false;
162
163 Aws::String m_domainIdentifier;
164 bool m_domainIdentifierHasBeenSet = false;
165
166 Aws::String m_identifier;
167 bool m_identifierHasBeenSet = false;
168
169 bool m_includeChildDomainUnits{false};
170 bool m_includeChildDomainUnitsHasBeenSet = false;
171
172 Aws::String m_name;
173 bool m_nameHasBeenSet = false;
174
175 RuleScope m_scope;
176 bool m_scopeHasBeenSet = 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