AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRuleRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/model/RuleAction.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/RuleDetail.h>
12#include <aws/datazone/model/RuleScope.h>
13#include <aws/datazone/model/RuleTarget.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace DataZone
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_DATAZONE_API CreateRuleRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateRule"; }
36
37 AWS_DATAZONE_API Aws::String SerializePayload() const override;
38
39
41
44 inline RuleAction GetAction() const { return m_action; }
45 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
46 inline void SetAction(RuleAction value) { m_actionHasBeenSet = true; m_action = value; }
47 inline CreateRuleRequest& WithAction(RuleAction value) { SetAction(value); return *this;}
49
51
55 inline const Aws::String& GetClientToken() const { return m_clientToken; }
56 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
57 template<typename ClientTokenT = Aws::String>
58 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
59 template<typename ClientTokenT = Aws::String>
60 CreateRuleRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template<typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 CreateRuleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74
76
79 inline const RuleDetail& GetDetail() const { return m_detail; }
80 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
81 template<typename DetailT = RuleDetail>
82 void SetDetail(DetailT&& value) { m_detailHasBeenSet = true; m_detail = std::forward<DetailT>(value); }
83 template<typename DetailT = RuleDetail>
84 CreateRuleRequest& WithDetail(DetailT&& value) { SetDetail(std::forward<DetailT>(value)); return *this;}
86
88
91 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
92 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
93 template<typename DomainIdentifierT = Aws::String>
94 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
95 template<typename DomainIdentifierT = Aws::String>
96 CreateRuleRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
98
100
103 inline const Aws::String& GetName() const { return m_name; }
104 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
105 template<typename NameT = Aws::String>
106 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
107 template<typename NameT = Aws::String>
108 CreateRuleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
110
112
115 inline const RuleScope& GetScope() const { return m_scope; }
116 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
117 template<typename ScopeT = RuleScope>
118 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
119 template<typename ScopeT = RuleScope>
120 CreateRuleRequest& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
122
124
127 inline const RuleTarget& GetTarget() const { return m_target; }
128 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
129 template<typename TargetT = RuleTarget>
130 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
131 template<typename TargetT = RuleTarget>
132 CreateRuleRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
134 private:
135
137 bool m_actionHasBeenSet = false;
138
140 bool m_clientTokenHasBeenSet = true;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
145 RuleDetail m_detail;
146 bool m_detailHasBeenSet = false;
147
148 Aws::String m_domainIdentifier;
149 bool m_domainIdentifierHasBeenSet = false;
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
154 RuleScope m_scope;
155 bool m_scopeHasBeenSet = false;
156
157 RuleTarget m_target;
158 bool m_targetHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace DataZone
163} // namespace Aws
CreateRuleRequest & WithDetail(DetailT &&value)
virtual const char * GetServiceRequestName() const override
CreateRuleRequest & WithClientToken(ClientTokenT &&value)
CreateRuleRequest & WithScope(ScopeT &&value)
CreateRuleRequest & WithDomainIdentifier(DomainIdentifierT &&value)
void SetDescription(DescriptionT &&value)
AWS_DATAZONE_API CreateRuleRequest()=default
const Aws::String & GetDescription() const
const Aws::String & GetClientToken() const
void SetDomainIdentifier(DomainIdentifierT &&value)
CreateRuleRequest & WithDescription(DescriptionT &&value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetDomainIdentifier() const
CreateRuleRequest & WithName(NameT &&value)
CreateRuleRequest & WithAction(RuleAction value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateRuleRequest & WithTarget(TargetT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String