AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
S3AccessPointAttachment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/FSx_EXPORTS.h>
10#include <aws/fsx/model/LifecycleTransitionReason.h>
11#include <aws/fsx/model/S3AccessPoint.h>
12#include <aws/fsx/model/S3AccessPointAttachmentLifecycle.h>
13#include <aws/fsx/model/S3AccessPointAttachmentType.h>
14#include <aws/fsx/model/S3AccessPointOntapConfiguration.h>
15#include <aws/fsx/model/S3AccessPointOpenZFSConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace FSx {
27namespace Model {
28
36 public:
37 AWS_FSX_API S3AccessPointAttachment() = default;
41
43
53 inline S3AccessPointAttachmentLifecycle GetLifecycle() const { return m_lifecycle; }
54 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
56 m_lifecycleHasBeenSet = true;
57 m_lifecycle = value;
58 }
60 SetLifecycle(value);
61 return *this;
62 }
64
66
67 inline const LifecycleTransitionReason& GetLifecycleTransitionReason() const { return m_lifecycleTransitionReason; }
68 inline bool LifecycleTransitionReasonHasBeenSet() const { return m_lifecycleTransitionReasonHasBeenSet; }
69 template <typename LifecycleTransitionReasonT = LifecycleTransitionReason>
70 void SetLifecycleTransitionReason(LifecycleTransitionReasonT&& value) {
71 m_lifecycleTransitionReasonHasBeenSet = true;
72 m_lifecycleTransitionReason = std::forward<LifecycleTransitionReasonT>(value);
73 }
74 template <typename LifecycleTransitionReasonT = LifecycleTransitionReason>
75 S3AccessPointAttachment& WithLifecycleTransitionReason(LifecycleTransitionReasonT&& value) {
76 SetLifecycleTransitionReason(std::forward<LifecycleTransitionReasonT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
84 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
85 template <typename CreationTimeT = Aws::Utils::DateTime>
86 void SetCreationTime(CreationTimeT&& value) {
87 m_creationTimeHasBeenSet = true;
88 m_creationTime = std::forward<CreationTimeT>(value);
89 }
90 template <typename CreationTimeT = Aws::Utils::DateTime>
91 S3AccessPointAttachment& WithCreationTime(CreationTimeT&& value) {
92 SetCreationTime(std::forward<CreationTimeT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetName() const { return m_name; }
103 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
104 template <typename NameT = Aws::String>
105 void SetName(NameT&& value) {
106 m_nameHasBeenSet = true;
107 m_name = std::forward<NameT>(value);
108 }
109 template <typename NameT = Aws::String>
111 SetName(std::forward<NameT>(value));
112 return *this;
113 }
115
117
120 inline S3AccessPointAttachmentType GetType() const { return m_type; }
121 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
123 m_typeHasBeenSet = true;
124 m_type = value;
125 }
127 SetType(value);
128 return *this;
129 }
131
133
136 inline const S3AccessPointOpenZFSConfiguration& GetOpenZFSConfiguration() const { return m_openZFSConfiguration; }
137 inline bool OpenZFSConfigurationHasBeenSet() const { return m_openZFSConfigurationHasBeenSet; }
138 template <typename OpenZFSConfigurationT = S3AccessPointOpenZFSConfiguration>
139 void SetOpenZFSConfiguration(OpenZFSConfigurationT&& value) {
140 m_openZFSConfigurationHasBeenSet = true;
141 m_openZFSConfiguration = std::forward<OpenZFSConfigurationT>(value);
142 }
143 template <typename OpenZFSConfigurationT = S3AccessPointOpenZFSConfiguration>
144 S3AccessPointAttachment& WithOpenZFSConfiguration(OpenZFSConfigurationT&& value) {
145 SetOpenZFSConfiguration(std::forward<OpenZFSConfigurationT>(value));
146 return *this;
147 }
149
151
154 inline const S3AccessPointOntapConfiguration& GetOntapConfiguration() const { return m_ontapConfiguration; }
155 inline bool OntapConfigurationHasBeenSet() const { return m_ontapConfigurationHasBeenSet; }
156 template <typename OntapConfigurationT = S3AccessPointOntapConfiguration>
157 void SetOntapConfiguration(OntapConfigurationT&& value) {
158 m_ontapConfigurationHasBeenSet = true;
159 m_ontapConfiguration = std::forward<OntapConfigurationT>(value);
160 }
161 template <typename OntapConfigurationT = S3AccessPointOntapConfiguration>
162 S3AccessPointAttachment& WithOntapConfiguration(OntapConfigurationT&& value) {
163 SetOntapConfiguration(std::forward<OntapConfigurationT>(value));
164 return *this;
165 }
167
169
172 inline const S3AccessPoint& GetS3AccessPoint() const { return m_s3AccessPoint; }
173 inline bool S3AccessPointHasBeenSet() const { return m_s3AccessPointHasBeenSet; }
174 template <typename S3AccessPointT = S3AccessPoint>
175 void SetS3AccessPoint(S3AccessPointT&& value) {
176 m_s3AccessPointHasBeenSet = true;
177 m_s3AccessPoint = std::forward<S3AccessPointT>(value);
178 }
179 template <typename S3AccessPointT = S3AccessPoint>
181 SetS3AccessPoint(std::forward<S3AccessPointT>(value));
182 return *this;
183 }
185 private:
187
188 LifecycleTransitionReason m_lifecycleTransitionReason;
189
190 Aws::Utils::DateTime m_creationTime{};
191
192 Aws::String m_name;
193
195
196 S3AccessPointOpenZFSConfiguration m_openZFSConfiguration;
197
198 S3AccessPointOntapConfiguration m_ontapConfiguration;
199
200 S3AccessPoint m_s3AccessPoint;
201 bool m_lifecycleHasBeenSet = false;
202 bool m_lifecycleTransitionReasonHasBeenSet = false;
203 bool m_creationTimeHasBeenSet = false;
204 bool m_nameHasBeenSet = false;
205 bool m_typeHasBeenSet = false;
206 bool m_openZFSConfigurationHasBeenSet = false;
207 bool m_ontapConfigurationHasBeenSet = false;
208 bool m_s3AccessPointHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace FSx
213} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
S3AccessPointAttachment & WithLifecycle(S3AccessPointAttachmentLifecycle value)
S3AccessPointAttachment & WithLifecycleTransitionReason(LifecycleTransitionReasonT &&value)
void SetLifecycle(S3AccessPointAttachmentLifecycle value)
S3AccessPointAttachment & WithName(NameT &&value)
S3AccessPointAttachment & WithCreationTime(CreationTimeT &&value)
AWS_FSX_API S3AccessPointAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API S3AccessPointAttachment()=default
void SetLifecycleTransitionReason(LifecycleTransitionReasonT &&value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
S3AccessPointAttachmentLifecycle GetLifecycle() const
void SetOpenZFSConfiguration(OpenZFSConfigurationT &&value)
S3AccessPointAttachment & WithOntapConfiguration(OntapConfigurationT &&value)
S3AccessPointAttachment & WithType(S3AccessPointAttachmentType value)
void SetType(S3AccessPointAttachmentType value)
S3AccessPointAttachment & WithS3AccessPoint(S3AccessPointT &&value)
const LifecycleTransitionReason & GetLifecycleTransitionReason() const
AWS_FSX_API S3AccessPointAttachment(Aws::Utils::Json::JsonView jsonValue)
S3AccessPointAttachmentType GetType() const
const S3AccessPointOntapConfiguration & GetOntapConfiguration() const
const S3AccessPointOpenZFSConfiguration & GetOpenZFSConfiguration() const
S3AccessPointAttachment & WithOpenZFSConfiguration(OpenZFSConfigurationT &&value)
void SetOntapConfiguration(OntapConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue