AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
MultiRegionEndpoint.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/sesv2/SESV2_EXPORTS.h>
11#include <aws/sesv2/model/Status.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SESV2 {
23namespace Model {
24
32 public:
33 AWS_SESV2_API MultiRegionEndpoint() = default;
36 AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
43 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
44 template <typename EndpointNameT = Aws::String>
45 void SetEndpointName(EndpointNameT&& value) {
46 m_endpointNameHasBeenSet = true;
47 m_endpointName = std::forward<EndpointNameT>(value);
48 }
49 template <typename EndpointNameT = Aws::String>
50 MultiRegionEndpoint& WithEndpointName(EndpointNameT&& value) {
51 SetEndpointName(std::forward<EndpointNameT>(value));
52 return *this;
53 }
55
57
65 inline Status GetStatus() const { return m_status; }
66 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
67 inline void SetStatus(Status value) {
68 m_statusHasBeenSet = true;
69 m_status = value;
70 }
72 SetStatus(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
82 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
83 template <typename EndpointIdT = Aws::String>
84 void SetEndpointId(EndpointIdT&& value) {
85 m_endpointIdHasBeenSet = true;
86 m_endpointId = std::forward<EndpointIdT>(value);
87 }
88 template <typename EndpointIdT = Aws::String>
89 MultiRegionEndpoint& WithEndpointId(EndpointIdT&& value) {
90 SetEndpointId(std::forward<EndpointIdT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
101 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
102 template <typename RegionsT = Aws::Vector<Aws::String>>
103 void SetRegions(RegionsT&& value) {
104 m_regionsHasBeenSet = true;
105 m_regions = std::forward<RegionsT>(value);
106 }
107 template <typename RegionsT = Aws::Vector<Aws::String>>
108 MultiRegionEndpoint& WithRegions(RegionsT&& value) {
109 SetRegions(std::forward<RegionsT>(value));
110 return *this;
111 }
112 template <typename RegionsT = Aws::String>
113 MultiRegionEndpoint& AddRegions(RegionsT&& value) {
114 m_regionsHasBeenSet = true;
115 m_regions.emplace_back(std::forward<RegionsT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
126 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
127 template <typename CreatedTimestampT = Aws::Utils::DateTime>
128 void SetCreatedTimestamp(CreatedTimestampT&& value) {
129 m_createdTimestampHasBeenSet = true;
130 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
131 }
132 template <typename CreatedTimestampT = Aws::Utils::DateTime>
133 MultiRegionEndpoint& WithCreatedTimestamp(CreatedTimestampT&& value) {
134 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
145 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
146 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
147 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
148 m_lastUpdatedTimestampHasBeenSet = true;
149 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
150 }
151 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
152 MultiRegionEndpoint& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
153 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_endpointName;
159
160 Status m_status{Status::NOT_SET};
161
162 Aws::String m_endpointId;
163
164 Aws::Vector<Aws::String> m_regions;
165
166 Aws::Utils::DateTime m_createdTimestamp{};
167
168 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
169 bool m_endpointNameHasBeenSet = false;
170 bool m_statusHasBeenSet = false;
171 bool m_endpointIdHasBeenSet = false;
172 bool m_regionsHasBeenSet = false;
173 bool m_createdTimestampHasBeenSet = false;
174 bool m_lastUpdatedTimestampHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace SESV2
179} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
const Aws::Utils::DateTime & GetCreatedTimestamp() const
MultiRegionEndpoint & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
const Aws::String & GetEndpointId() const
MultiRegionEndpoint & WithCreatedTimestamp(CreatedTimestampT &&value)
MultiRegionEndpoint & AddRegions(RegionsT &&value)
AWS_SESV2_API MultiRegionEndpoint()=default
MultiRegionEndpoint & WithRegions(RegionsT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const
MultiRegionEndpoint & WithStatus(Status value)
MultiRegionEndpoint & WithEndpointName(EndpointNameT &&value)
AWS_SESV2_API MultiRegionEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
void SetEndpointName(EndpointNameT &&value)
void SetCreatedTimestamp(CreatedTimestampT &&value)
const Aws::String & GetEndpointName() const
MultiRegionEndpoint & WithEndpointId(EndpointIdT &&value)
AWS_SESV2_API MultiRegionEndpoint(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue