AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ReplicationConfigurationDescription.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticfilesystem/model/Destination.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EFS
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EFS_API ReplicationConfigurationDescription() = default;
42
43
45
48 inline const Aws::String& GetSourceFileSystemId() const { return m_sourceFileSystemId; }
49 inline bool SourceFileSystemIdHasBeenSet() const { return m_sourceFileSystemIdHasBeenSet; }
50 template<typename SourceFileSystemIdT = Aws::String>
51 void SetSourceFileSystemId(SourceFileSystemIdT&& value) { m_sourceFileSystemIdHasBeenSet = true; m_sourceFileSystemId = std::forward<SourceFileSystemIdT>(value); }
52 template<typename SourceFileSystemIdT = Aws::String>
53 ReplicationConfigurationDescription& WithSourceFileSystemId(SourceFileSystemIdT&& value) { SetSourceFileSystemId(std::forward<SourceFileSystemIdT>(value)); return *this;}
55
57
61 inline const Aws::String& GetSourceFileSystemRegion() const { return m_sourceFileSystemRegion; }
62 inline bool SourceFileSystemRegionHasBeenSet() const { return m_sourceFileSystemRegionHasBeenSet; }
63 template<typename SourceFileSystemRegionT = Aws::String>
64 void SetSourceFileSystemRegion(SourceFileSystemRegionT&& value) { m_sourceFileSystemRegionHasBeenSet = true; m_sourceFileSystemRegion = std::forward<SourceFileSystemRegionT>(value); }
65 template<typename SourceFileSystemRegionT = Aws::String>
66 ReplicationConfigurationDescription& WithSourceFileSystemRegion(SourceFileSystemRegionT&& value) { SetSourceFileSystemRegion(std::forward<SourceFileSystemRegionT>(value)); return *this;}
68
70
74 inline const Aws::String& GetSourceFileSystemArn() const { return m_sourceFileSystemArn; }
75 inline bool SourceFileSystemArnHasBeenSet() const { return m_sourceFileSystemArnHasBeenSet; }
76 template<typename SourceFileSystemArnT = Aws::String>
77 void SetSourceFileSystemArn(SourceFileSystemArnT&& value) { m_sourceFileSystemArnHasBeenSet = true; m_sourceFileSystemArn = std::forward<SourceFileSystemArnT>(value); }
78 template<typename SourceFileSystemArnT = Aws::String>
79 ReplicationConfigurationDescription& WithSourceFileSystemArn(SourceFileSystemArnT&& value) { SetSourceFileSystemArn(std::forward<SourceFileSystemArnT>(value)); return *this;}
81
83
87 inline const Aws::String& GetOriginalSourceFileSystemArn() const { return m_originalSourceFileSystemArn; }
88 inline bool OriginalSourceFileSystemArnHasBeenSet() const { return m_originalSourceFileSystemArnHasBeenSet; }
89 template<typename OriginalSourceFileSystemArnT = Aws::String>
90 void SetOriginalSourceFileSystemArn(OriginalSourceFileSystemArnT&& value) { m_originalSourceFileSystemArnHasBeenSet = true; m_originalSourceFileSystemArn = std::forward<OriginalSourceFileSystemArnT>(value); }
91 template<typename OriginalSourceFileSystemArnT = Aws::String>
92 ReplicationConfigurationDescription& WithOriginalSourceFileSystemArn(OriginalSourceFileSystemArnT&& value) { SetOriginalSourceFileSystemArn(std::forward<OriginalSourceFileSystemArnT>(value)); return *this;}
94
96
99 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
100 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
101 template<typename CreationTimeT = Aws::Utils::DateTime>
102 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
103 template<typename CreationTimeT = Aws::Utils::DateTime>
104 ReplicationConfigurationDescription& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
106
108
112 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
113 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
114 template<typename DestinationsT = Aws::Vector<Destination>>
115 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
116 template<typename DestinationsT = Aws::Vector<Destination>>
117 ReplicationConfigurationDescription& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
118 template<typename DestinationsT = Destination>
119 ReplicationConfigurationDescription& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
121
123
127 inline const Aws::String& GetSourceFileSystemOwnerId() const { return m_sourceFileSystemOwnerId; }
128 inline bool SourceFileSystemOwnerIdHasBeenSet() const { return m_sourceFileSystemOwnerIdHasBeenSet; }
129 template<typename SourceFileSystemOwnerIdT = Aws::String>
130 void SetSourceFileSystemOwnerId(SourceFileSystemOwnerIdT&& value) { m_sourceFileSystemOwnerIdHasBeenSet = true; m_sourceFileSystemOwnerId = std::forward<SourceFileSystemOwnerIdT>(value); }
131 template<typename SourceFileSystemOwnerIdT = Aws::String>
132 ReplicationConfigurationDescription& WithSourceFileSystemOwnerId(SourceFileSystemOwnerIdT&& value) { SetSourceFileSystemOwnerId(std::forward<SourceFileSystemOwnerIdT>(value)); return *this;}
134
136
137 inline const Aws::String& GetRequestId() const { return m_requestId; }
138 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
139 template<typename RequestIdT = Aws::String>
140 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
141 template<typename RequestIdT = Aws::String>
142 ReplicationConfigurationDescription& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
144 private:
145
146 Aws::String m_sourceFileSystemId;
147 bool m_sourceFileSystemIdHasBeenSet = false;
148
149 Aws::String m_sourceFileSystemRegion;
150 bool m_sourceFileSystemRegionHasBeenSet = false;
151
152 Aws::String m_sourceFileSystemArn;
153 bool m_sourceFileSystemArnHasBeenSet = false;
154
155 Aws::String m_originalSourceFileSystemArn;
156 bool m_originalSourceFileSystemArnHasBeenSet = false;
157
158 Aws::Utils::DateTime m_creationTime{};
159 bool m_creationTimeHasBeenSet = false;
160
161 Aws::Vector<Destination> m_destinations;
162 bool m_destinationsHasBeenSet = false;
163
164 Aws::String m_sourceFileSystemOwnerId;
165 bool m_sourceFileSystemOwnerIdHasBeenSet = false;
166
167 Aws::String m_requestId;
168 bool m_requestIdHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace EFS
173} // namespace Aws
ReplicationConfigurationDescription & WithSourceFileSystemId(SourceFileSystemIdT &&value)
ReplicationConfigurationDescription & WithCreationTime(CreationTimeT &&value)
AWS_EFS_API ReplicationConfigurationDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EFS_API ReplicationConfigurationDescription(Aws::Utils::Json::JsonView jsonValue)
void SetOriginalSourceFileSystemArn(OriginalSourceFileSystemArnT &&value)
ReplicationConfigurationDescription & AddDestinations(DestinationsT &&value)
ReplicationConfigurationDescription & WithSourceFileSystemOwnerId(SourceFileSystemOwnerIdT &&value)
ReplicationConfigurationDescription & WithRequestId(RequestIdT &&value)
ReplicationConfigurationDescription & WithSourceFileSystemRegion(SourceFileSystemRegionT &&value)
ReplicationConfigurationDescription & WithDestinations(DestinationsT &&value)
AWS_EFS_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicationConfigurationDescription & WithSourceFileSystemArn(SourceFileSystemArnT &&value)
ReplicationConfigurationDescription & WithOriginalSourceFileSystemArn(OriginalSourceFileSystemArnT &&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