AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GetRuleSetResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mailmanager/MailManager_EXPORTS.h>
11#include <aws/mailmanager/model/Rule.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MailManager {
25namespace Model {
27 public:
28 AWS_MAILMANAGER_API GetRuleSetResult() = default;
31
33
36 inline const Aws::String& GetRuleSetId() const { return m_ruleSetId; }
37 template <typename RuleSetIdT = Aws::String>
38 void SetRuleSetId(RuleSetIdT&& value) {
39 m_ruleSetIdHasBeenSet = true;
40 m_ruleSetId = std::forward<RuleSetIdT>(value);
41 }
42 template <typename RuleSetIdT = Aws::String>
43 GetRuleSetResult& WithRuleSetId(RuleSetIdT&& value) {
44 SetRuleSetId(std::forward<RuleSetIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetRuleSetArn() const { return m_ruleSetArn; }
54 template <typename RuleSetArnT = Aws::String>
55 void SetRuleSetArn(RuleSetArnT&& value) {
56 m_ruleSetArnHasBeenSet = true;
57 m_ruleSetArn = std::forward<RuleSetArnT>(value);
58 }
59 template <typename RuleSetArnT = Aws::String>
60 GetRuleSetResult& WithRuleSetArn(RuleSetArnT&& value) {
61 SetRuleSetArn(std::forward<RuleSetArnT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
71 template <typename RuleSetNameT = Aws::String>
72 void SetRuleSetName(RuleSetNameT&& value) {
73 m_ruleSetNameHasBeenSet = true;
74 m_ruleSetName = std::forward<RuleSetNameT>(value);
75 }
76 template <typename RuleSetNameT = Aws::String>
77 GetRuleSetResult& WithRuleSetName(RuleSetNameT&& value) {
78 SetRuleSetName(std::forward<RuleSetNameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
88 template <typename CreatedDateT = Aws::Utils::DateTime>
89 void SetCreatedDate(CreatedDateT&& value) {
90 m_createdDateHasBeenSet = true;
91 m_createdDate = std::forward<CreatedDateT>(value);
92 }
93 template <typename CreatedDateT = Aws::Utils::DateTime>
94 GetRuleSetResult& WithCreatedDate(CreatedDateT&& value) {
95 SetCreatedDate(std::forward<CreatedDateT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetLastModificationDate() const { return m_lastModificationDate; }
105 template <typename LastModificationDateT = Aws::Utils::DateTime>
106 void SetLastModificationDate(LastModificationDateT&& value) {
107 m_lastModificationDateHasBeenSet = true;
108 m_lastModificationDate = std::forward<LastModificationDateT>(value);
109 }
110 template <typename LastModificationDateT = Aws::Utils::DateTime>
111 GetRuleSetResult& WithLastModificationDate(LastModificationDateT&& value) {
112 SetLastModificationDate(std::forward<LastModificationDateT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
122 template <typename RulesT = Aws::Vector<Rule>>
123 void SetRules(RulesT&& value) {
124 m_rulesHasBeenSet = true;
125 m_rules = std::forward<RulesT>(value);
126 }
127 template <typename RulesT = Aws::Vector<Rule>>
128 GetRuleSetResult& WithRules(RulesT&& value) {
129 SetRules(std::forward<RulesT>(value));
130 return *this;
131 }
132 template <typename RulesT = Rule>
133 GetRuleSetResult& AddRules(RulesT&& value) {
134 m_rulesHasBeenSet = true;
135 m_rules.emplace_back(std::forward<RulesT>(value));
136 return *this;
137 }
139
141
142 inline const Aws::String& GetRequestId() const { return m_requestId; }
143 template <typename RequestIdT = Aws::String>
144 void SetRequestId(RequestIdT&& value) {
145 m_requestIdHasBeenSet = true;
146 m_requestId = std::forward<RequestIdT>(value);
147 }
148 template <typename RequestIdT = Aws::String>
149 GetRuleSetResult& WithRequestId(RequestIdT&& value) {
150 SetRequestId(std::forward<RequestIdT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_ruleSetId;
156
157 Aws::String m_ruleSetArn;
158
159 Aws::String m_ruleSetName;
160
161 Aws::Utils::DateTime m_createdDate{};
162
163 Aws::Utils::DateTime m_lastModificationDate{};
164
165 Aws::Vector<Rule> m_rules;
166
167 Aws::String m_requestId;
168 bool m_ruleSetIdHasBeenSet = false;
169 bool m_ruleSetArnHasBeenSet = false;
170 bool m_ruleSetNameHasBeenSet = false;
171 bool m_createdDateHasBeenSet = false;
172 bool m_lastModificationDateHasBeenSet = false;
173 bool m_rulesHasBeenSet = false;
174 bool m_requestIdHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace MailManager
179} // 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)
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