AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Volume.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/fsx/model/VolumeLifecycle.h>
11#include <aws/fsx/model/OntapVolumeConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/fsx/model/VolumeType.h>
14#include <aws/fsx/model/LifecycleTransitionReason.h>
15#include <aws/fsx/model/AdministrativeAction.h>
16#include <aws/fsx/model/OpenZFSVolumeConfiguration.h>
17#include <aws/fsx/model/Tag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace FSx
31{
32namespace Model
33{
34 class AdministrativeAction;
35
41 class Volume
42 {
43 public:
44 AWS_FSX_API Volume();
45 AWS_FSX_API Volume(Aws::Utils::Json::JsonView jsonValue);
48
49
51
52 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
53 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
54 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
55 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
56 inline Volume& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
57 inline Volume& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
59
61
62 inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
63 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
64 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
65 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
66 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
67 inline Volume& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
68 inline Volume& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
69 inline Volume& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
71
73
84 inline const VolumeLifecycle& GetLifecycle() const{ return m_lifecycle; }
85 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
86 inline void SetLifecycle(const VolumeLifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
87 inline void SetLifecycle(VolumeLifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
88 inline Volume& WithLifecycle(const VolumeLifecycle& value) { SetLifecycle(value); return *this;}
89 inline Volume& WithLifecycle(VolumeLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
91
93
96 inline const Aws::String& GetName() const{ return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
99 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
100 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
101 inline Volume& WithName(const Aws::String& value) { SetName(value); return *this;}
102 inline Volume& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
103 inline Volume& WithName(const char* value) { SetName(value); return *this;}
105
107
108 inline const OntapVolumeConfiguration& GetOntapConfiguration() const{ return m_ontapConfiguration; }
109 inline bool OntapConfigurationHasBeenSet() const { return m_ontapConfigurationHasBeenSet; }
110 inline void SetOntapConfiguration(const OntapVolumeConfiguration& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = value; }
111 inline void SetOntapConfiguration(OntapVolumeConfiguration&& value) { m_ontapConfigurationHasBeenSet = true; m_ontapConfiguration = std::move(value); }
113 inline Volume& WithOntapConfiguration(OntapVolumeConfiguration&& value) { SetOntapConfiguration(std::move(value)); return *this;}
115
117
118 inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
119 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
120 inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
121 inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
122 inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
123 inline Volume& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
124 inline Volume& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
125 inline Volume& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
127
129
130 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
133 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
134 inline Volume& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
135 inline Volume& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
136 inline Volume& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
137 inline Volume& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
139
141
144 inline const Aws::String& GetVolumeId() const{ return m_volumeId; }
145 inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; }
146 inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; }
147 inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); }
148 inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); }
149 inline Volume& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;}
150 inline Volume& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;}
151 inline Volume& WithVolumeId(const char* value) { SetVolumeId(value); return *this;}
153
155
158 inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
159 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
160 inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
161 inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
162 inline Volume& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
163 inline Volume& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
165
167
170 inline const LifecycleTransitionReason& GetLifecycleTransitionReason() const{ return m_lifecycleTransitionReason; }
171 inline bool LifecycleTransitionReasonHasBeenSet() const { return m_lifecycleTransitionReasonHasBeenSet; }
172 inline void SetLifecycleTransitionReason(const LifecycleTransitionReason& value) { m_lifecycleTransitionReasonHasBeenSet = true; m_lifecycleTransitionReason = value; }
173 inline void SetLifecycleTransitionReason(LifecycleTransitionReason&& value) { m_lifecycleTransitionReasonHasBeenSet = true; m_lifecycleTransitionReason = std::move(value); }
177
179
184 inline const Aws::Vector<AdministrativeAction>& GetAdministrativeActions() const{ return m_administrativeActions; }
185 inline bool AdministrativeActionsHasBeenSet() const { return m_administrativeActionsHasBeenSet; }
186 inline void SetAdministrativeActions(const Aws::Vector<AdministrativeAction>& value) { m_administrativeActionsHasBeenSet = true; m_administrativeActions = value; }
187 inline void SetAdministrativeActions(Aws::Vector<AdministrativeAction>&& value) { m_administrativeActionsHasBeenSet = true; m_administrativeActions = std::move(value); }
190 inline Volume& AddAdministrativeActions(const AdministrativeAction& value) { m_administrativeActionsHasBeenSet = true; m_administrativeActions.push_back(value); return *this; }
191 inline Volume& AddAdministrativeActions(AdministrativeAction&& value) { m_administrativeActionsHasBeenSet = true; m_administrativeActions.push_back(std::move(value)); return *this; }
193
195
198 inline const OpenZFSVolumeConfiguration& GetOpenZFSConfiguration() const{ return m_openZFSConfiguration; }
199 inline bool OpenZFSConfigurationHasBeenSet() const { return m_openZFSConfigurationHasBeenSet; }
200 inline void SetOpenZFSConfiguration(const OpenZFSVolumeConfiguration& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = value; }
201 inline void SetOpenZFSConfiguration(OpenZFSVolumeConfiguration&& value) { m_openZFSConfigurationHasBeenSet = true; m_openZFSConfiguration = std::move(value); }
203 inline Volume& WithOpenZFSConfiguration(OpenZFSVolumeConfiguration&& value) { SetOpenZFSConfiguration(std::move(value)); return *this;}
205 private:
206
207 Aws::Utils::DateTime m_creationTime;
208 bool m_creationTimeHasBeenSet = false;
209
210 Aws::String m_fileSystemId;
211 bool m_fileSystemIdHasBeenSet = false;
212
213 VolumeLifecycle m_lifecycle;
214 bool m_lifecycleHasBeenSet = false;
215
216 Aws::String m_name;
217 bool m_nameHasBeenSet = false;
218
219 OntapVolumeConfiguration m_ontapConfiguration;
220 bool m_ontapConfigurationHasBeenSet = false;
221
222 Aws::String m_resourceARN;
223 bool m_resourceARNHasBeenSet = false;
224
225 Aws::Vector<Tag> m_tags;
226 bool m_tagsHasBeenSet = false;
227
228 Aws::String m_volumeId;
229 bool m_volumeIdHasBeenSet = false;
230
231 VolumeType m_volumeType;
232 bool m_volumeTypeHasBeenSet = false;
233
234 LifecycleTransitionReason m_lifecycleTransitionReason;
235 bool m_lifecycleTransitionReasonHasBeenSet = false;
236
237 Aws::Vector<AdministrativeAction> m_administrativeActions;
238 bool m_administrativeActionsHasBeenSet = false;
239
240 OpenZFSVolumeConfiguration m_openZFSConfiguration;
241 bool m_openZFSConfigurationHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace FSx
246} // namespace Aws
void SetFileSystemId(Aws::String &&value)
Definition Volume.h:65
Volume & WithResourceARN(const char *value)
Definition Volume.h:125
const Aws::String & GetVolumeId() const
Definition Volume.h:144
Volume & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Volume.h:56
Volume & WithVolumeId(const char *value)
Definition Volume.h:151
void SetVolumeId(const Aws::String &value)
Definition Volume.h:146
Volume & WithTags(Aws::Vector< Tag > &&value)
Definition Volume.h:135
void SetFileSystemId(const Aws::String &value)
Definition Volume.h:64
void SetOntapConfiguration(const OntapVolumeConfiguration &value)
Definition Volume.h:110
void SetVolumeId(const char *value)
Definition Volume.h:148
Volume & WithAdministrativeActions(Aws::Vector< AdministrativeAction > &&value)
Definition Volume.h:189
const OpenZFSVolumeConfiguration & GetOpenZFSConfiguration() const
Definition Volume.h:198
Volume & WithOpenZFSConfiguration(const OpenZFSVolumeConfiguration &value)
Definition Volume.h:202
Volume & WithResourceARN(Aws::String &&value)
Definition Volume.h:124
Volume & WithVolumeType(const VolumeType &value)
Definition Volume.h:162
bool AdministrativeActionsHasBeenSet() const
Definition Volume.h:185
AWS_FSX_API Volume & operator=(Aws::Utils::Json::JsonView jsonValue)
Volume & AddAdministrativeActions(const AdministrativeAction &value)
Definition Volume.h:190
const Aws::Utils::DateTime & GetCreationTime() const
Definition Volume.h:52
void SetTags(const Aws::Vector< Tag > &value)
Definition Volume.h:132
Volume & WithTags(const Aws::Vector< Tag > &value)
Definition Volume.h:134
void SetName(Aws::String &&value)
Definition Volume.h:99
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOpenZFSConfiguration(OpenZFSVolumeConfiguration &&value)
Definition Volume.h:201
const VolumeLifecycle & GetLifecycle() const
Definition Volume.h:84
Volume & WithAdministrativeActions(const Aws::Vector< AdministrativeAction > &value)
Definition Volume.h:188
bool LifecycleHasBeenSet() const
Definition Volume.h:85
void SetVolumeType(const VolumeType &value)
Definition Volume.h:160
void SetLifecycle(const VolumeLifecycle &value)
Definition Volume.h:86
const OntapVolumeConfiguration & GetOntapConfiguration() const
Definition Volume.h:108
Volume & WithFileSystemId(const Aws::String &value)
Definition Volume.h:67
Volume & WithFileSystemId(Aws::String &&value)
Definition Volume.h:68
Volume & AddAdministrativeActions(AdministrativeAction &&value)
Definition Volume.h:191
bool CreationTimeHasBeenSet() const
Definition Volume.h:53
Volume & WithOntapConfiguration(OntapVolumeConfiguration &&value)
Definition Volume.h:113
Volume & AddTags(const Tag &value)
Definition Volume.h:136
Volume & WithVolumeType(VolumeType &&value)
Definition Volume.h:163
bool FileSystemIdHasBeenSet() const
Definition Volume.h:63
void SetVolumeType(VolumeType &&value)
Definition Volume.h:161
Volume & WithLifecycleTransitionReason(const LifecycleTransitionReason &value)
Definition Volume.h:174
bool VolumeIdHasBeenSet() const
Definition Volume.h:145
void SetLifecycleTransitionReason(LifecycleTransitionReason &&value)
Definition Volume.h:173
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Volume.h:54
bool LifecycleTransitionReasonHasBeenSet() const
Definition Volume.h:171
Volume & WithOntapConfiguration(const OntapVolumeConfiguration &value)
Definition Volume.h:112
bool NameHasBeenSet() const
Definition Volume.h:97
bool OpenZFSConfigurationHasBeenSet() const
Definition Volume.h:199
Volume & AddTags(Tag &&value)
Definition Volume.h:137
void SetAdministrativeActions(Aws::Vector< AdministrativeAction > &&value)
Definition Volume.h:187
void SetFileSystemId(const char *value)
Definition Volume.h:66
void SetVolumeId(Aws::String &&value)
Definition Volume.h:147
void SetLifecycleTransitionReason(const LifecycleTransitionReason &value)
Definition Volume.h:172
Volume & WithOpenZFSConfiguration(OpenZFSVolumeConfiguration &&value)
Definition Volume.h:203
Volume & WithLifecycle(const VolumeLifecycle &value)
Definition Volume.h:88
Volume & WithName(const Aws::String &value)
Definition Volume.h:101
void SetResourceARN(const char *value)
Definition Volume.h:122
Volume & WithName(const char *value)
Definition Volume.h:103
const Aws::String & GetResourceARN() const
Definition Volume.h:118
void SetName(const Aws::String &value)
Definition Volume.h:98
bool VolumeTypeHasBeenSet() const
Definition Volume.h:159
Volume & WithResourceARN(const Aws::String &value)
Definition Volume.h:123
const LifecycleTransitionReason & GetLifecycleTransitionReason() const
Definition Volume.h:170
const Aws::String & GetFileSystemId() const
Definition Volume.h:62
void SetTags(Aws::Vector< Tag > &&value)
Definition Volume.h:133
Volume & WithLifecycleTransitionReason(LifecycleTransitionReason &&value)
Definition Volume.h:175
void SetResourceARN(Aws::String &&value)
Definition Volume.h:121
void SetOpenZFSConfiguration(const OpenZFSVolumeConfiguration &value)
Definition Volume.h:200
bool OntapConfigurationHasBeenSet() const
Definition Volume.h:109
const Aws::String & GetName() const
Definition Volume.h:96
Volume & WithName(Aws::String &&value)
Definition Volume.h:102
const Aws::Vector< Tag > & GetTags() const
Definition Volume.h:130
Volume & WithVolumeId(Aws::String &&value)
Definition Volume.h:150
Volume & WithFileSystemId(const char *value)
Definition Volume.h:69
void SetAdministrativeActions(const Aws::Vector< AdministrativeAction > &value)
Definition Volume.h:186
bool TagsHasBeenSet() const
Definition Volume.h:131
void SetOntapConfiguration(OntapVolumeConfiguration &&value)
Definition Volume.h:111
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Volume.h:55
void SetName(const char *value)
Definition Volume.h:100
bool ResourceARNHasBeenSet() const
Definition Volume.h:119
AWS_FSX_API Volume(Aws::Utils::Json::JsonView jsonValue)
void SetResourceARN(const Aws::String &value)
Definition Volume.h:120
const Aws::Vector< AdministrativeAction > & GetAdministrativeActions() const
Definition Volume.h:184
void SetLifecycle(VolumeLifecycle &&value)
Definition Volume.h:87
Volume & WithVolumeId(const Aws::String &value)
Definition Volume.h:149
Volume & WithLifecycle(VolumeLifecycle &&value)
Definition Volume.h:89
const VolumeType & GetVolumeType() const
Definition Volume.h:158
Volume & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Volume.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue