AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Destination.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticfilesystem/EFS_EXPORTS.h>
10#include <aws/elasticfilesystem/model/ReplicationStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EFS {
22namespace Model {
23
31 public:
32 AWS_EFS_API Destination() = default;
36
38
44 inline ReplicationStatus GetStatus() const { return m_status; }
45 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
46 inline void SetStatus(ReplicationStatus value) {
47 m_statusHasBeenSet = true;
48 m_status = value;
49 }
51 SetStatus(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
61 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
62 template <typename FileSystemIdT = Aws::String>
63 void SetFileSystemId(FileSystemIdT&& value) {
64 m_fileSystemIdHasBeenSet = true;
65 m_fileSystemId = std::forward<FileSystemIdT>(value);
66 }
67 template <typename FileSystemIdT = Aws::String>
68 Destination& WithFileSystemId(FileSystemIdT&& value) {
69 SetFileSystemId(std::forward<FileSystemIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetRegion() const { return m_region; }
80 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
81 template <typename RegionT = Aws::String>
82 void SetRegion(RegionT&& value) {
83 m_regionHasBeenSet = true;
84 m_region = std::forward<RegionT>(value);
85 }
86 template <typename RegionT = Aws::String>
87 Destination& WithRegion(RegionT&& value) {
88 SetRegion(std::forward<RegionT>(value));
89 return *this;
90 }
92
94
101 inline const Aws::Utils::DateTime& GetLastReplicatedTimestamp() const { return m_lastReplicatedTimestamp; }
102 inline bool LastReplicatedTimestampHasBeenSet() const { return m_lastReplicatedTimestampHasBeenSet; }
103 template <typename LastReplicatedTimestampT = Aws::Utils::DateTime>
104 void SetLastReplicatedTimestamp(LastReplicatedTimestampT&& value) {
105 m_lastReplicatedTimestampHasBeenSet = true;
106 m_lastReplicatedTimestamp = std::forward<LastReplicatedTimestampT>(value);
107 }
108 template <typename LastReplicatedTimestampT = Aws::Utils::DateTime>
109 Destination& WithLastReplicatedTimestamp(LastReplicatedTimestampT&& value) {
110 SetLastReplicatedTimestamp(std::forward<LastReplicatedTimestampT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
121 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
122 template <typename OwnerIdT = Aws::String>
123 void SetOwnerId(OwnerIdT&& value) {
124 m_ownerIdHasBeenSet = true;
125 m_ownerId = std::forward<OwnerIdT>(value);
126 }
127 template <typename OwnerIdT = Aws::String>
128 Destination& WithOwnerId(OwnerIdT&& value) {
129 SetOwnerId(std::forward<OwnerIdT>(value));
130 return *this;
131 }
133
135
142 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
143 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
144 template <typename StatusMessageT = Aws::String>
145 void SetStatusMessage(StatusMessageT&& value) {
146 m_statusMessageHasBeenSet = true;
147 m_statusMessage = std::forward<StatusMessageT>(value);
148 }
149 template <typename StatusMessageT = Aws::String>
150 Destination& WithStatusMessage(StatusMessageT&& value) {
151 SetStatusMessage(std::forward<StatusMessageT>(value));
152 return *this;
153 }
155
157
162 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
163 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
164 template <typename RoleArnT = Aws::String>
165 void SetRoleArn(RoleArnT&& value) {
166 m_roleArnHasBeenSet = true;
167 m_roleArn = std::forward<RoleArnT>(value);
168 }
169 template <typename RoleArnT = Aws::String>
170 Destination& WithRoleArn(RoleArnT&& value) {
171 SetRoleArn(std::forward<RoleArnT>(value));
172 return *this;
173 }
175 private:
177
178 Aws::String m_fileSystemId;
179
180 Aws::String m_region;
181
182 Aws::Utils::DateTime m_lastReplicatedTimestamp{};
183
184 Aws::String m_ownerId;
185
186 Aws::String m_statusMessage;
187
188 Aws::String m_roleArn;
189 bool m_statusHasBeenSet = false;
190 bool m_fileSystemIdHasBeenSet = false;
191 bool m_regionHasBeenSet = false;
192 bool m_lastReplicatedTimestampHasBeenSet = false;
193 bool m_ownerIdHasBeenSet = false;
194 bool m_statusMessageHasBeenSet = false;
195 bool m_roleArnHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace EFS
200} // namespace Aws
ReplicationStatus GetStatus() const
Definition Destination.h:44
const Aws::String & GetFileSystemId() const
Definition Destination.h:60
AWS_EFS_API Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOwnerId() const
Destination & WithStatus(ReplicationStatus value)
Definition Destination.h:50
Destination & WithRegion(RegionT &&value)
Definition Destination.h:87
const Aws::String & GetRoleArn() const
Destination & WithRoleArn(RoleArnT &&value)
void SetOwnerId(OwnerIdT &&value)
void SetStatus(ReplicationStatus value)
Definition Destination.h:46
const Aws::String & GetRegion() const
Definition Destination.h:79
bool StatusMessageHasBeenSet() const
void SetFileSystemId(FileSystemIdT &&value)
Definition Destination.h:63
const Aws::Utils::DateTime & GetLastReplicatedTimestamp() const
void SetRegion(RegionT &&value)
Definition Destination.h:82
void SetRoleArn(RoleArnT &&value)
bool FileSystemIdHasBeenSet() const
Definition Destination.h:61
Destination & WithFileSystemId(FileSystemIdT &&value)
Definition Destination.h:68
AWS_EFS_API Destination()=default
const Aws::String & GetStatusMessage() const
void SetStatusMessage(StatusMessageT &&value)
void SetLastReplicatedTimestamp(LastReplicatedTimestampT &&value)
Destination & WithLastReplicatedTimestamp(LastReplicatedTimestampT &&value)
Destination & WithStatusMessage(StatusMessageT &&value)
bool LastReplicatedTimestampHasBeenSet() const
Destination & WithOwnerId(OwnerIdT &&value)
AWS_EFS_API Destination(Aws::Utils::Json::JsonView jsonValue)
AWS_EFS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue