AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
FileSystemAssociationInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/storagegateway/StorageGateway_EXPORTS.h>
10#include <aws/storagegateway/model/CacheAttributes.h>
11#include <aws/storagegateway/model/EndpointNetworkConfiguration.h>
12#include <aws/storagegateway/model/FileSystemAssociationStatusDetail.h>
13#include <aws/storagegateway/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace StorageGateway {
25namespace Model {
26
34 public:
35 AWS_STORAGEGATEWAY_API FileSystemAssociationInfo() = default;
36 AWS_STORAGEGATEWAY_API FileSystemAssociationInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetFileSystemAssociationARN() const { return m_fileSystemAssociationARN; }
45 inline bool FileSystemAssociationARNHasBeenSet() const { return m_fileSystemAssociationARNHasBeenSet; }
46 template <typename FileSystemAssociationARNT = Aws::String>
47 void SetFileSystemAssociationARN(FileSystemAssociationARNT&& value) {
48 m_fileSystemAssociationARNHasBeenSet = true;
49 m_fileSystemAssociationARN = std::forward<FileSystemAssociationARNT>(value);
50 }
51 template <typename FileSystemAssociationARNT = Aws::String>
52 FileSystemAssociationInfo& WithFileSystemAssociationARN(FileSystemAssociationARNT&& value) {
53 SetFileSystemAssociationARN(std::forward<FileSystemAssociationARNT>(value));
54 return *this;
55 }
57
59
65 inline const Aws::String& GetLocationARN() const { return m_locationARN; }
66 inline bool LocationARNHasBeenSet() const { return m_locationARNHasBeenSet; }
67 template <typename LocationARNT = Aws::String>
68 void SetLocationARN(LocationARNT&& value) {
69 m_locationARNHasBeenSet = true;
70 m_locationARN = std::forward<LocationARNT>(value);
71 }
72 template <typename LocationARNT = Aws::String>
74 SetLocationARN(std::forward<LocationARNT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetFileSystemAssociationStatus() const { return m_fileSystemAssociationStatus; }
86 inline bool FileSystemAssociationStatusHasBeenSet() const { return m_fileSystemAssociationStatusHasBeenSet; }
87 template <typename FileSystemAssociationStatusT = Aws::String>
88 void SetFileSystemAssociationStatus(FileSystemAssociationStatusT&& value) {
89 m_fileSystemAssociationStatusHasBeenSet = true;
90 m_fileSystemAssociationStatus = std::forward<FileSystemAssociationStatusT>(value);
91 }
92 template <typename FileSystemAssociationStatusT = Aws::String>
93 FileSystemAssociationInfo& WithFileSystemAssociationStatus(FileSystemAssociationStatusT&& value) {
94 SetFileSystemAssociationStatus(std::forward<FileSystemAssociationStatusT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetAuditDestinationARN() const { return m_auditDestinationARN; }
104 inline bool AuditDestinationARNHasBeenSet() const { return m_auditDestinationARNHasBeenSet; }
105 template <typename AuditDestinationARNT = Aws::String>
106 void SetAuditDestinationARN(AuditDestinationARNT&& value) {
107 m_auditDestinationARNHasBeenSet = true;
108 m_auditDestinationARN = std::forward<AuditDestinationARNT>(value);
109 }
110 template <typename AuditDestinationARNT = Aws::String>
111 FileSystemAssociationInfo& WithAuditDestinationARN(AuditDestinationARNT&& value) {
112 SetAuditDestinationARN(std::forward<AuditDestinationARNT>(value));
113 return *this;
114 }
116
118
119 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
120 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
121 template <typename GatewayARNT = Aws::String>
122 void SetGatewayARN(GatewayARNT&& value) {
123 m_gatewayARNHasBeenSet = true;
124 m_gatewayARN = std::forward<GatewayARNT>(value);
125 }
126 template <typename GatewayARNT = Aws::String>
128 SetGatewayARN(std::forward<GatewayARNT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 template <typename TagsT = Aws::Vector<Tag>>
141 void SetTags(TagsT&& value) {
142 m_tagsHasBeenSet = true;
143 m_tags = std::forward<TagsT>(value);
144 }
145 template <typename TagsT = Aws::Vector<Tag>>
147 SetTags(std::forward<TagsT>(value));
148 return *this;
149 }
150 template <typename TagsT = Tag>
152 m_tagsHasBeenSet = true;
153 m_tags.emplace_back(std::forward<TagsT>(value));
154 return *this;
155 }
157
159
160 inline const CacheAttributes& GetCacheAttributes() const { return m_cacheAttributes; }
161 inline bool CacheAttributesHasBeenSet() const { return m_cacheAttributesHasBeenSet; }
162 template <typename CacheAttributesT = CacheAttributes>
163 void SetCacheAttributes(CacheAttributesT&& value) {
164 m_cacheAttributesHasBeenSet = true;
165 m_cacheAttributes = std::forward<CacheAttributesT>(value);
166 }
167 template <typename CacheAttributesT = CacheAttributes>
169 SetCacheAttributes(std::forward<CacheAttributesT>(value));
170 return *this;
171 }
173
175
181 inline const EndpointNetworkConfiguration& GetEndpointNetworkConfiguration() const { return m_endpointNetworkConfiguration; }
182 inline bool EndpointNetworkConfigurationHasBeenSet() const { return m_endpointNetworkConfigurationHasBeenSet; }
183 template <typename EndpointNetworkConfigurationT = EndpointNetworkConfiguration>
184 void SetEndpointNetworkConfiguration(EndpointNetworkConfigurationT&& value) {
185 m_endpointNetworkConfigurationHasBeenSet = true;
186 m_endpointNetworkConfiguration = std::forward<EndpointNetworkConfigurationT>(value);
187 }
188 template <typename EndpointNetworkConfigurationT = EndpointNetworkConfiguration>
189 FileSystemAssociationInfo& WithEndpointNetworkConfiguration(EndpointNetworkConfigurationT&& value) {
190 SetEndpointNetworkConfiguration(std::forward<EndpointNetworkConfigurationT>(value));
191 return *this;
192 }
194
196
201 return m_fileSystemAssociationStatusDetails;
202 }
203 inline bool FileSystemAssociationStatusDetailsHasBeenSet() const { return m_fileSystemAssociationStatusDetailsHasBeenSet; }
204 template <typename FileSystemAssociationStatusDetailsT = Aws::Vector<FileSystemAssociationStatusDetail>>
205 void SetFileSystemAssociationStatusDetails(FileSystemAssociationStatusDetailsT&& value) {
206 m_fileSystemAssociationStatusDetailsHasBeenSet = true;
207 m_fileSystemAssociationStatusDetails = std::forward<FileSystemAssociationStatusDetailsT>(value);
208 }
209 template <typename FileSystemAssociationStatusDetailsT = Aws::Vector<FileSystemAssociationStatusDetail>>
210 FileSystemAssociationInfo& WithFileSystemAssociationStatusDetails(FileSystemAssociationStatusDetailsT&& value) {
211 SetFileSystemAssociationStatusDetails(std::forward<FileSystemAssociationStatusDetailsT>(value));
212 return *this;
213 }
214 template <typename FileSystemAssociationStatusDetailsT = FileSystemAssociationStatusDetail>
215 FileSystemAssociationInfo& AddFileSystemAssociationStatusDetails(FileSystemAssociationStatusDetailsT&& value) {
216 m_fileSystemAssociationStatusDetailsHasBeenSet = true;
217 m_fileSystemAssociationStatusDetails.emplace_back(std::forward<FileSystemAssociationStatusDetailsT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_fileSystemAssociationARN;
223
224 Aws::String m_locationARN;
225
226 Aws::String m_fileSystemAssociationStatus;
227
228 Aws::String m_auditDestinationARN;
229
230 Aws::String m_gatewayARN;
231
232 Aws::Vector<Tag> m_tags;
233
234 CacheAttributes m_cacheAttributes;
235
236 EndpointNetworkConfiguration m_endpointNetworkConfiguration;
237
238 Aws::Vector<FileSystemAssociationStatusDetail> m_fileSystemAssociationStatusDetails;
239 bool m_fileSystemAssociationARNHasBeenSet = false;
240 bool m_locationARNHasBeenSet = false;
241 bool m_fileSystemAssociationStatusHasBeenSet = false;
242 bool m_auditDestinationARNHasBeenSet = false;
243 bool m_gatewayARNHasBeenSet = false;
244 bool m_tagsHasBeenSet = false;
245 bool m_cacheAttributesHasBeenSet = false;
246 bool m_endpointNetworkConfigurationHasBeenSet = false;
247 bool m_fileSystemAssociationStatusDetailsHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace StorageGateway
252} // namespace Aws
AWS_STORAGEGATEWAY_API FileSystemAssociationInfo()=default
FileSystemAssociationInfo & WithFileSystemAssociationARN(FileSystemAssociationARNT &&value)
FileSystemAssociationInfo & WithFileSystemAssociationStatus(FileSystemAssociationStatusT &&value)
FileSystemAssociationInfo & WithEndpointNetworkConfiguration(EndpointNetworkConfigurationT &&value)
FileSystemAssociationInfo & WithAuditDestinationARN(AuditDestinationARNT &&value)
void SetFileSystemAssociationStatusDetails(FileSystemAssociationStatusDetailsT &&value)
const Aws::Vector< FileSystemAssociationStatusDetail > & GetFileSystemAssociationStatusDetails() const
void SetFileSystemAssociationStatus(FileSystemAssociationStatusT &&value)
AWS_STORAGEGATEWAY_API FileSystemAssociationInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
FileSystemAssociationInfo & AddFileSystemAssociationStatusDetails(FileSystemAssociationStatusDetailsT &&value)
FileSystemAssociationInfo & WithLocationARN(LocationARNT &&value)
AWS_STORAGEGATEWAY_API FileSystemAssociationInfo(Aws::Utils::Json::JsonView jsonValue)
FileSystemAssociationInfo & WithCacheAttributes(CacheAttributesT &&value)
const EndpointNetworkConfiguration & GetEndpointNetworkConfiguration() const
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEndpointNetworkConfiguration(EndpointNetworkConfigurationT &&value)
FileSystemAssociationInfo & WithFileSystemAssociationStatusDetails(FileSystemAssociationStatusDetailsT &&value)
void SetFileSystemAssociationARN(FileSystemAssociationARNT &&value)
FileSystemAssociationInfo & WithGatewayARN(GatewayARNT &&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