AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetTrafficPolicyResult.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/AcceptAction.h>
12#include <aws/mailmanager/model/PolicyStatement.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 GetTrafficPolicyResult() = default;
32
34
37 inline const Aws::String& GetTrafficPolicyName() const { return m_trafficPolicyName; }
38 template <typename TrafficPolicyNameT = Aws::String>
39 void SetTrafficPolicyName(TrafficPolicyNameT&& value) {
40 m_trafficPolicyNameHasBeenSet = true;
41 m_trafficPolicyName = std::forward<TrafficPolicyNameT>(value);
42 }
43 template <typename TrafficPolicyNameT = Aws::String>
44 GetTrafficPolicyResult& WithTrafficPolicyName(TrafficPolicyNameT&& value) {
45 SetTrafficPolicyName(std::forward<TrafficPolicyNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetTrafficPolicyId() const { return m_trafficPolicyId; }
55 template <typename TrafficPolicyIdT = Aws::String>
56 void SetTrafficPolicyId(TrafficPolicyIdT&& value) {
57 m_trafficPolicyIdHasBeenSet = true;
58 m_trafficPolicyId = std::forward<TrafficPolicyIdT>(value);
59 }
60 template <typename TrafficPolicyIdT = Aws::String>
61 GetTrafficPolicyResult& WithTrafficPolicyId(TrafficPolicyIdT&& value) {
62 SetTrafficPolicyId(std::forward<TrafficPolicyIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetTrafficPolicyArn() const { return m_trafficPolicyArn; }
72 template <typename TrafficPolicyArnT = Aws::String>
73 void SetTrafficPolicyArn(TrafficPolicyArnT&& value) {
74 m_trafficPolicyArnHasBeenSet = true;
75 m_trafficPolicyArn = std::forward<TrafficPolicyArnT>(value);
76 }
77 template <typename TrafficPolicyArnT = Aws::String>
78 GetTrafficPolicyResult& WithTrafficPolicyArn(TrafficPolicyArnT&& value) {
79 SetTrafficPolicyArn(std::forward<TrafficPolicyArnT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<PolicyStatement>& GetPolicyStatements() const { return m_policyStatements; }
89 template <typename PolicyStatementsT = Aws::Vector<PolicyStatement>>
90 void SetPolicyStatements(PolicyStatementsT&& value) {
91 m_policyStatementsHasBeenSet = true;
92 m_policyStatements = std::forward<PolicyStatementsT>(value);
93 }
94 template <typename PolicyStatementsT = Aws::Vector<PolicyStatement>>
95 GetTrafficPolicyResult& WithPolicyStatements(PolicyStatementsT&& value) {
96 SetPolicyStatements(std::forward<PolicyStatementsT>(value));
97 return *this;
98 }
99 template <typename PolicyStatementsT = PolicyStatement>
100 GetTrafficPolicyResult& AddPolicyStatements(PolicyStatementsT&& value) {
101 m_policyStatementsHasBeenSet = true;
102 m_policyStatements.emplace_back(std::forward<PolicyStatementsT>(value));
103 return *this;
104 }
106
108
112 inline int GetMaxMessageSizeBytes() const { return m_maxMessageSizeBytes; }
113 inline void SetMaxMessageSizeBytes(int value) {
114 m_maxMessageSizeBytesHasBeenSet = true;
115 m_maxMessageSizeBytes = value;
116 }
119 return *this;
120 }
122
124
127 inline AcceptAction GetDefaultAction() const { return m_defaultAction; }
128 inline void SetDefaultAction(AcceptAction value) {
129 m_defaultActionHasBeenSet = true;
130 m_defaultAction = value;
131 }
133 SetDefaultAction(value);
134 return *this;
135 }
137
139
142 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
143 template <typename CreatedTimestampT = Aws::Utils::DateTime>
144 void SetCreatedTimestamp(CreatedTimestampT&& value) {
145 m_createdTimestampHasBeenSet = true;
146 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
147 }
148 template <typename CreatedTimestampT = Aws::Utils::DateTime>
149 GetTrafficPolicyResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
150 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
160 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
161 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
162 m_lastUpdatedTimestampHasBeenSet = true;
163 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
164 }
165 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
166 GetTrafficPolicyResult& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
167 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
168 return *this;
169 }
171
173
174 inline const Aws::String& GetRequestId() const { return m_requestId; }
175 template <typename RequestIdT = Aws::String>
176 void SetRequestId(RequestIdT&& value) {
177 m_requestIdHasBeenSet = true;
178 m_requestId = std::forward<RequestIdT>(value);
179 }
180 template <typename RequestIdT = Aws::String>
182 SetRequestId(std::forward<RequestIdT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_trafficPolicyName;
188
189 Aws::String m_trafficPolicyId;
190
191 Aws::String m_trafficPolicyArn;
192
193 Aws::Vector<PolicyStatement> m_policyStatements;
194
195 int m_maxMessageSizeBytes{0};
196
197 AcceptAction m_defaultAction{AcceptAction::NOT_SET};
198
199 Aws::Utils::DateTime m_createdTimestamp{};
200
201 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
202
203 Aws::String m_requestId;
204 bool m_trafficPolicyNameHasBeenSet = false;
205 bool m_trafficPolicyIdHasBeenSet = false;
206 bool m_trafficPolicyArnHasBeenSet = false;
207 bool m_policyStatementsHasBeenSet = false;
208 bool m_maxMessageSizeBytesHasBeenSet = false;
209 bool m_defaultActionHasBeenSet = false;
210 bool m_createdTimestampHasBeenSet = false;
211 bool m_lastUpdatedTimestampHasBeenSet = false;
212 bool m_requestIdHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace MailManager
217} // namespace Aws
AWS_MAILMANAGER_API GetTrafficPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTrafficPolicyResult & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
GetTrafficPolicyResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< PolicyStatement > & GetPolicyStatements() const
GetTrafficPolicyResult & WithMaxMessageSizeBytes(int value)
AWS_MAILMANAGER_API GetTrafficPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
GetTrafficPolicyResult & WithPolicyStatements(PolicyStatementsT &&value)
GetTrafficPolicyResult & WithCreatedTimestamp(CreatedTimestampT &&value)
void SetTrafficPolicyName(TrafficPolicyNameT &&value)
GetTrafficPolicyResult & WithTrafficPolicyName(TrafficPolicyNameT &&value)
GetTrafficPolicyResult & WithTrafficPolicyArn(TrafficPolicyArnT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
GetTrafficPolicyResult & WithDefaultAction(AcceptAction value)
AWS_MAILMANAGER_API GetTrafficPolicyResult()=default
GetTrafficPolicyResult & AddPolicyStatements(PolicyStatementsT &&value)
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
GetTrafficPolicyResult & WithTrafficPolicyId(TrafficPolicyIdT &&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