AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetTrafficPolicyResult.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/mailmanager/model/AcceptAction.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/mailmanager/model/PolicyStatement.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace MailManager
28{
29namespace Model
30{
32 {
33 public:
34 AWS_MAILMANAGER_API GetTrafficPolicyResult();
37
38
40
43 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
44 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
45 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
47 inline GetTrafficPolicyResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
49
51
54 inline const AcceptAction& GetDefaultAction() const{ return m_defaultAction; }
55 inline void SetDefaultAction(const AcceptAction& value) { m_defaultAction = value; }
56 inline void SetDefaultAction(AcceptAction&& value) { m_defaultAction = std::move(value); }
57 inline GetTrafficPolicyResult& WithDefaultAction(const AcceptAction& value) { SetDefaultAction(value); return *this;}
58 inline GetTrafficPolicyResult& WithDefaultAction(AcceptAction&& value) { SetDefaultAction(std::move(value)); return *this;}
60
62
65 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
66 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestamp = value; }
67 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestamp = std::move(value); }
71
73
77 inline int GetMaxMessageSizeBytes() const{ return m_maxMessageSizeBytes; }
78 inline void SetMaxMessageSizeBytes(int value) { m_maxMessageSizeBytes = value; }
79 inline GetTrafficPolicyResult& WithMaxMessageSizeBytes(int value) { SetMaxMessageSizeBytes(value); return *this;}
81
83
86 inline const Aws::Vector<PolicyStatement>& GetPolicyStatements() const{ return m_policyStatements; }
87 inline void SetPolicyStatements(const Aws::Vector<PolicyStatement>& value) { m_policyStatements = value; }
88 inline void SetPolicyStatements(Aws::Vector<PolicyStatement>&& value) { m_policyStatements = std::move(value); }
91 inline GetTrafficPolicyResult& AddPolicyStatements(const PolicyStatement& value) { m_policyStatements.push_back(value); return *this; }
92 inline GetTrafficPolicyResult& AddPolicyStatements(PolicyStatement&& value) { m_policyStatements.push_back(std::move(value)); return *this; }
94
96
99 inline const Aws::String& GetTrafficPolicyArn() const{ return m_trafficPolicyArn; }
100 inline void SetTrafficPolicyArn(const Aws::String& value) { m_trafficPolicyArn = value; }
101 inline void SetTrafficPolicyArn(Aws::String&& value) { m_trafficPolicyArn = std::move(value); }
102 inline void SetTrafficPolicyArn(const char* value) { m_trafficPolicyArn.assign(value); }
103 inline GetTrafficPolicyResult& WithTrafficPolicyArn(const Aws::String& value) { SetTrafficPolicyArn(value); return *this;}
104 inline GetTrafficPolicyResult& WithTrafficPolicyArn(Aws::String&& value) { SetTrafficPolicyArn(std::move(value)); return *this;}
105 inline GetTrafficPolicyResult& WithTrafficPolicyArn(const char* value) { SetTrafficPolicyArn(value); return *this;}
107
109
112 inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; }
113 inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyId = value; }
114 inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyId = std::move(value); }
115 inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyId.assign(value); }
116 inline GetTrafficPolicyResult& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;}
117 inline GetTrafficPolicyResult& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;}
118 inline GetTrafficPolicyResult& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;}
120
122
125 inline const Aws::String& GetTrafficPolicyName() const{ return m_trafficPolicyName; }
126 inline void SetTrafficPolicyName(const Aws::String& value) { m_trafficPolicyName = value; }
127 inline void SetTrafficPolicyName(Aws::String&& value) { m_trafficPolicyName = std::move(value); }
128 inline void SetTrafficPolicyName(const char* value) { m_trafficPolicyName.assign(value); }
130 inline GetTrafficPolicyResult& WithTrafficPolicyName(Aws::String&& value) { SetTrafficPolicyName(std::move(value)); return *this;}
131 inline GetTrafficPolicyResult& WithTrafficPolicyName(const char* value) { SetTrafficPolicyName(value); return *this;}
133
135
136 inline const Aws::String& GetRequestId() const{ return m_requestId; }
137 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
138 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
139 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
140 inline GetTrafficPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
141 inline GetTrafficPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
142 inline GetTrafficPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
144 private:
145
146 Aws::Utils::DateTime m_createdTimestamp;
147
148 AcceptAction m_defaultAction;
149
150 Aws::Utils::DateTime m_lastUpdatedTimestamp;
151
152 int m_maxMessageSizeBytes;
153
154 Aws::Vector<PolicyStatement> m_policyStatements;
155
156 Aws::String m_trafficPolicyArn;
157
158 Aws::String m_trafficPolicyId;
159
160 Aws::String m_trafficPolicyName;
161
162 Aws::String m_requestId;
163 };
164
165} // namespace Model
166} // namespace MailManager
167} // namespace Aws
AWS_MAILMANAGER_API GetTrafficPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< PolicyStatement > & GetPolicyStatements() const
GetTrafficPolicyResult & WithMaxMessageSizeBytes(int value)
GetTrafficPolicyResult & WithTrafficPolicyArn(const Aws::String &value)
AWS_MAILMANAGER_API GetTrafficPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTrafficPolicyResult & WithRequestId(const Aws::String &value)
GetTrafficPolicyResult & AddPolicyStatements(const PolicyStatement &value)
GetTrafficPolicyResult & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
GetTrafficPolicyResult & WithTrafficPolicyId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
GetTrafficPolicyResult & AddPolicyStatements(PolicyStatement &&value)
GetTrafficPolicyResult & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
GetTrafficPolicyResult & WithTrafficPolicyId(const char *value)
GetTrafficPolicyResult & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
GetTrafficPolicyResult & WithTrafficPolicyArn(Aws::String &&value)
GetTrafficPolicyResult & WithTrafficPolicyId(Aws::String &&value)
GetTrafficPolicyResult & WithTrafficPolicyArn(const char *value)
GetTrafficPolicyResult & WithDefaultAction(AcceptAction &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
GetTrafficPolicyResult & WithPolicyStatements(const Aws::Vector< PolicyStatement > &value)
void SetPolicyStatements(Aws::Vector< PolicyStatement > &&value)
GetTrafficPolicyResult & WithTrafficPolicyName(const Aws::String &value)
GetTrafficPolicyResult & WithPolicyStatements(Aws::Vector< PolicyStatement > &&value)
GetTrafficPolicyResult & WithTrafficPolicyName(const char *value)
GetTrafficPolicyResult & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
GetTrafficPolicyResult & WithRequestId(Aws::String &&value)
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
GetTrafficPolicyResult & WithRequestId(const char *value)
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetPolicyStatements(const Aws::Vector< PolicyStatement > &value)
GetTrafficPolicyResult & WithDefaultAction(const AcceptAction &value)
GetTrafficPolicyResult & WithTrafficPolicyName(Aws::String &&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