AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateRuleRequest.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/RuleDetail.h>
11#include <aws/datazone/model/RuleScope.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DataZone
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DATAZONE_API UpdateRuleRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateRule"; }
33
34 AWS_DATAZONE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetDescription() const { return m_description; }
42 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
43 template<typename DescriptionT = Aws::String>
44 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
45 template<typename DescriptionT = Aws::String>
46 UpdateRuleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
48
50
53 inline const RuleDetail& GetDetail() const { return m_detail; }
54 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
55 template<typename DetailT = RuleDetail>
56 void SetDetail(DetailT&& value) { m_detailHasBeenSet = true; m_detail = std::forward<DetailT>(value); }
57 template<typename DetailT = RuleDetail>
58 UpdateRuleRequest& WithDetail(DetailT&& value) { SetDetail(std::forward<DetailT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
66 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
67 template<typename DomainIdentifierT = Aws::String>
68 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
69 template<typename DomainIdentifierT = Aws::String>
70 UpdateRuleRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
72
74
77 inline const Aws::String& GetIdentifier() const { return m_identifier; }
78 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
79 template<typename IdentifierT = Aws::String>
80 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
81 template<typename IdentifierT = Aws::String>
82 UpdateRuleRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
84
86
89 inline bool GetIncludeChildDomainUnits() const { return m_includeChildDomainUnits; }
90 inline bool IncludeChildDomainUnitsHasBeenSet() const { return m_includeChildDomainUnitsHasBeenSet; }
91 inline void SetIncludeChildDomainUnits(bool value) { m_includeChildDomainUnitsHasBeenSet = true; m_includeChildDomainUnits = value; }
94
96
99 inline const Aws::String& GetName() const { return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 template<typename NameT = Aws::String>
102 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
103 template<typename NameT = Aws::String>
104 UpdateRuleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
106
108
111 inline const RuleScope& GetScope() const { return m_scope; }
112 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
113 template<typename ScopeT = RuleScope>
114 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
115 template<typename ScopeT = RuleScope>
116 UpdateRuleRequest& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
118 private:
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
123 RuleDetail m_detail;
124 bool m_detailHasBeenSet = false;
125
126 Aws::String m_domainIdentifier;
127 bool m_domainIdentifierHasBeenSet = false;
128
129 Aws::String m_identifier;
130 bool m_identifierHasBeenSet = false;
131
132 bool m_includeChildDomainUnits{false};
133 bool m_includeChildDomainUnitsHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 RuleScope m_scope;
139 bool m_scopeHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace DataZone
144} // 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