AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetRuleSetResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mailmanager/MailManager_EXPORTS.h>
12#include <aws/mailmanager/model/Rule.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace MailManager {
26namespace Model {
28 public:
29 AWS_MAILMANAGER_API GetRuleSetResult() = default;
32
34
37 inline const Aws::String& GetRuleSetId() const { return m_ruleSetId; }
38 template <typename RuleSetIdT = Aws::String>
39 void SetRuleSetId(RuleSetIdT&& value) {
40 m_ruleSetIdHasBeenSet = true;
41 m_ruleSetId = std::forward<RuleSetIdT>(value);
42 }
43 template <typename RuleSetIdT = Aws::String>
44 GetRuleSetResult& WithRuleSetId(RuleSetIdT&& value) {
45 SetRuleSetId(std::forward<RuleSetIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetRuleSetArn() const { return m_ruleSetArn; }
55 template <typename RuleSetArnT = Aws::String>
56 void SetRuleSetArn(RuleSetArnT&& value) {
57 m_ruleSetArnHasBeenSet = true;
58 m_ruleSetArn = std::forward<RuleSetArnT>(value);
59 }
60 template <typename RuleSetArnT = Aws::String>
61 GetRuleSetResult& WithRuleSetArn(RuleSetArnT&& value) {
62 SetRuleSetArn(std::forward<RuleSetArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
72 template <typename RuleSetNameT = Aws::String>
73 void SetRuleSetName(RuleSetNameT&& value) {
74 m_ruleSetNameHasBeenSet = true;
75 m_ruleSetName = std::forward<RuleSetNameT>(value);
76 }
77 template <typename RuleSetNameT = Aws::String>
78 GetRuleSetResult& WithRuleSetName(RuleSetNameT&& value) {
79 SetRuleSetName(std::forward<RuleSetNameT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
89 template <typename CreatedDateT = Aws::Utils::DateTime>
90 void SetCreatedDate(CreatedDateT&& value) {
91 m_createdDateHasBeenSet = true;
92 m_createdDate = std::forward<CreatedDateT>(value);
93 }
94 template <typename CreatedDateT = Aws::Utils::DateTime>
95 GetRuleSetResult& WithCreatedDate(CreatedDateT&& value) {
96 SetCreatedDate(std::forward<CreatedDateT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Utils::DateTime& GetLastModificationDate() const { return m_lastModificationDate; }
106 template <typename LastModificationDateT = Aws::Utils::DateTime>
107 void SetLastModificationDate(LastModificationDateT&& value) {
108 m_lastModificationDateHasBeenSet = true;
109 m_lastModificationDate = std::forward<LastModificationDateT>(value);
110 }
111 template <typename LastModificationDateT = Aws::Utils::DateTime>
112 GetRuleSetResult& WithLastModificationDate(LastModificationDateT&& value) {
113 SetLastModificationDate(std::forward<LastModificationDateT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
123 template <typename RulesT = Aws::Vector<Rule>>
124 void SetRules(RulesT&& value) {
125 m_rulesHasBeenSet = true;
126 m_rules = std::forward<RulesT>(value);
127 }
128 template <typename RulesT = Aws::Vector<Rule>>
129 GetRuleSetResult& WithRules(RulesT&& value) {
130 SetRules(std::forward<RulesT>(value));
131 return *this;
132 }
133 template <typename RulesT = Rule>
134 GetRuleSetResult& AddRules(RulesT&& value) {
135 m_rulesHasBeenSet = true;
136 m_rules.emplace_back(std::forward<RulesT>(value));
137 return *this;
138 }
140
142
143 inline const Aws::String& GetRequestId() const { return m_requestId; }
144 template <typename RequestIdT = Aws::String>
145 void SetRequestId(RequestIdT&& value) {
146 m_requestIdHasBeenSet = true;
147 m_requestId = std::forward<RequestIdT>(value);
148 }
149 template <typename RequestIdT = Aws::String>
150 GetRuleSetResult& WithRequestId(RequestIdT&& value) {
151 SetRequestId(std::forward<RequestIdT>(value));
152 return *this;
153 }
155 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
156
157 private:
158 Aws::String m_ruleSetId;
159
160 Aws::String m_ruleSetArn;
161
162 Aws::String m_ruleSetName;
163
164 Aws::Utils::DateTime m_createdDate{};
165
166 Aws::Utils::DateTime m_lastModificationDate{};
167
168 Aws::Vector<Rule> m_rules;
169
170 Aws::String m_requestId;
171 Aws::Http::HttpResponseCode m_HttpResponseCode;
172 bool m_ruleSetIdHasBeenSet = false;
173 bool m_ruleSetArnHasBeenSet = false;
174 bool m_ruleSetNameHasBeenSet = false;
175 bool m_createdDateHasBeenSet = false;
176 bool m_lastModificationDateHasBeenSet = false;
177 bool m_rulesHasBeenSet = false;
178 bool m_requestIdHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace MailManager
183} // namespace Aws
void SetRuleSetName(RuleSetNameT &&value)
GetRuleSetResult & AddRules(RulesT &&value)
GetRuleSetResult & WithRuleSetId(RuleSetIdT &&value)
const Aws::String & GetRuleSetId() const
GetRuleSetResult & WithRuleSetArn(RuleSetArnT &&value)
const Aws::String & GetRuleSetArn() const
GetRuleSetResult & WithCreatedDate(CreatedDateT &&value)
AWS_MAILMANAGER_API GetRuleSetResult()=default
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::Vector< Rule > & GetRules() const
GetRuleSetResult & WithRequestId(RequestIdT &&value)
GetRuleSetResult & WithRuleSetName(RuleSetNameT &&value)
AWS_MAILMANAGER_API GetRuleSetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetLastModificationDate(LastModificationDateT &&value)
GetRuleSetResult & WithRules(RulesT &&value)
AWS_MAILMANAGER_API GetRuleSetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRuleSetResult & WithLastModificationDate(LastModificationDateT &&value)
const Aws::String & GetRuleSetName() const
const Aws::Utils::DateTime & GetLastModificationDate() const
void SetCreatedDate(CreatedDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue