AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetRuleSetResult.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mailmanager/model/Rule.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MailManager
27{
28namespace Model
29{
31 {
32 public:
33 AWS_MAILMANAGER_API GetRuleSetResult() = default;
36
37
39
42 inline const Aws::String& GetRuleSetId() const { return m_ruleSetId; }
43 template<typename RuleSetIdT = Aws::String>
44 void SetRuleSetId(RuleSetIdT&& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = std::forward<RuleSetIdT>(value); }
45 template<typename RuleSetIdT = Aws::String>
46 GetRuleSetResult& WithRuleSetId(RuleSetIdT&& value) { SetRuleSetId(std::forward<RuleSetIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetRuleSetArn() const { return m_ruleSetArn; }
54 template<typename RuleSetArnT = Aws::String>
55 void SetRuleSetArn(RuleSetArnT&& value) { m_ruleSetArnHasBeenSet = true; m_ruleSetArn = std::forward<RuleSetArnT>(value); }
56 template<typename RuleSetArnT = Aws::String>
57 GetRuleSetResult& WithRuleSetArn(RuleSetArnT&& value) { SetRuleSetArn(std::forward<RuleSetArnT>(value)); return *this;}
59
61
64 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
65 template<typename RuleSetNameT = Aws::String>
66 void SetRuleSetName(RuleSetNameT&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::forward<RuleSetNameT>(value); }
67 template<typename RuleSetNameT = Aws::String>
68 GetRuleSetResult& WithRuleSetName(RuleSetNameT&& value) { SetRuleSetName(std::forward<RuleSetNameT>(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
76 template<typename CreatedDateT = Aws::Utils::DateTime>
77 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
78 template<typename CreatedDateT = Aws::Utils::DateTime>
79 GetRuleSetResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetLastModificationDate() const { return m_lastModificationDate; }
87 template<typename LastModificationDateT = Aws::Utils::DateTime>
88 void SetLastModificationDate(LastModificationDateT&& value) { m_lastModificationDateHasBeenSet = true; m_lastModificationDate = std::forward<LastModificationDateT>(value); }
89 template<typename LastModificationDateT = Aws::Utils::DateTime>
90 GetRuleSetResult& WithLastModificationDate(LastModificationDateT&& value) { SetLastModificationDate(std::forward<LastModificationDateT>(value)); return *this;}
92
94
97 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
98 template<typename RulesT = Aws::Vector<Rule>>
99 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
100 template<typename RulesT = Aws::Vector<Rule>>
101 GetRuleSetResult& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
102 template<typename RulesT = Rule>
103 GetRuleSetResult& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template<typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
111 template<typename RequestIdT = Aws::String>
112 GetRuleSetResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
114 private:
115
116 Aws::String m_ruleSetId;
117 bool m_ruleSetIdHasBeenSet = false;
118
119 Aws::String m_ruleSetArn;
120 bool m_ruleSetArnHasBeenSet = false;
121
122 Aws::String m_ruleSetName;
123 bool m_ruleSetNameHasBeenSet = false;
124
125 Aws::Utils::DateTime m_createdDate{};
126 bool m_createdDateHasBeenSet = false;
127
128 Aws::Utils::DateTime m_lastModificationDate{};
129 bool m_lastModificationDateHasBeenSet = false;
130
131 Aws::Vector<Rule> m_rules;
132 bool m_rulesHasBeenSet = false;
133
134 Aws::String m_requestId;
135 bool m_requestIdHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace MailManager
140} // 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