AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Destination.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/elasticfilesystem/model/ReplicationStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EFS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EFS_API Destination() = default;
41
42
44
50 inline ReplicationStatus GetStatus() const { return m_status; }
51 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
52 inline void SetStatus(ReplicationStatus value) { m_statusHasBeenSet = true; m_status = value; }
53 inline Destination& WithStatus(ReplicationStatus value) { SetStatus(value); return *this;}
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) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::forward<FileSystemIdT>(value); }
64 template<typename FileSystemIdT = Aws::String>
65 Destination& WithFileSystemId(FileSystemIdT&& value) { SetFileSystemId(std::forward<FileSystemIdT>(value)); return *this;}
67
69
73 inline const Aws::String& GetRegion() const { return m_region; }
74 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
75 template<typename RegionT = Aws::String>
76 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
77 template<typename RegionT = Aws::String>
78 Destination& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
80
82
89 inline const Aws::Utils::DateTime& GetLastReplicatedTimestamp() const { return m_lastReplicatedTimestamp; }
90 inline bool LastReplicatedTimestampHasBeenSet() const { return m_lastReplicatedTimestampHasBeenSet; }
91 template<typename LastReplicatedTimestampT = Aws::Utils::DateTime>
92 void SetLastReplicatedTimestamp(LastReplicatedTimestampT&& value) { m_lastReplicatedTimestampHasBeenSet = true; m_lastReplicatedTimestamp = std::forward<LastReplicatedTimestampT>(value); }
93 template<typename LastReplicatedTimestampT = Aws::Utils::DateTime>
94 Destination& WithLastReplicatedTimestamp(LastReplicatedTimestampT&& value) { SetLastReplicatedTimestamp(std::forward<LastReplicatedTimestampT>(value)); return *this;}
96
98
102 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
103 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
104 template<typename OwnerIdT = Aws::String>
105 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
106 template<typename OwnerIdT = Aws::String>
107 Destination& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
109
111
118 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
119 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
120 template<typename StatusMessageT = Aws::String>
121 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
122 template<typename StatusMessageT = Aws::String>
123 Destination& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
125
127
132 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
133 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
134 template<typename RoleArnT = Aws::String>
135 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
136 template<typename RoleArnT = Aws::String>
137 Destination& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
139 private:
140
142 bool m_statusHasBeenSet = false;
143
144 Aws::String m_fileSystemId;
145 bool m_fileSystemIdHasBeenSet = false;
146
147 Aws::String m_region;
148 bool m_regionHasBeenSet = false;
149
150 Aws::Utils::DateTime m_lastReplicatedTimestamp{};
151 bool m_lastReplicatedTimestampHasBeenSet = false;
152
153 Aws::String m_ownerId;
154 bool m_ownerIdHasBeenSet = false;
155
156 Aws::String m_statusMessage;
157 bool m_statusMessageHasBeenSet = false;
158
159 Aws::String m_roleArn;
160 bool m_roleArnHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace EFS
165} // namespace Aws
ReplicationStatus GetStatus() const
Definition Destination.h:50
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:53
Destination & WithRegion(RegionT &&value)
Definition Destination.h:78
const Aws::String & GetRoleArn() const
Destination & WithRoleArn(RoleArnT &&value)
void SetOwnerId(OwnerIdT &&value)
void SetStatus(ReplicationStatus value)
Definition Destination.h:52
const Aws::String & GetRegion() const
Definition Destination.h:73
bool StatusMessageHasBeenSet() const
void SetFileSystemId(FileSystemIdT &&value)
Definition Destination.h:63
const Aws::Utils::DateTime & GetLastReplicatedTimestamp() const
Definition Destination.h:89
void SetRegion(RegionT &&value)
Definition Destination.h:76
void SetRoleArn(RoleArnT &&value)
bool FileSystemIdHasBeenSet() const
Definition Destination.h:61
Destination & WithFileSystemId(FileSystemIdT &&value)
Definition Destination.h:65
AWS_EFS_API Destination()=default
const Aws::String & GetStatusMessage() const
void SetStatusMessage(StatusMessageT &&value)
void SetLastReplicatedTimestamp(LastReplicatedTimestampT &&value)
Definition Destination.h:92
Destination & WithLastReplicatedTimestamp(LastReplicatedTimestampT &&value)
Definition Destination.h:94
Destination & WithStatusMessage(StatusMessageT &&value)
bool LastReplicatedTimestampHasBeenSet() const
Definition Destination.h:90
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