AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
KxVolume.h
1
6#pragma once
7#include <aws/finspace/Finspace_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/finspace/model/KxVolumeType.h>
10#include <aws/finspace/model/KxVolumeStatus.h>
11#include <aws/finspace/model/KxAzMode.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/DateTime.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace finspace
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_FINSPACE_API KxVolume() = default;
41 AWS_FINSPACE_API KxVolume(Aws::Utils::Json::JsonView jsonValue);
42 AWS_FINSPACE_API KxVolume& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetVolumeName() const { return m_volumeName; }
51 inline bool VolumeNameHasBeenSet() const { return m_volumeNameHasBeenSet; }
52 template<typename VolumeNameT = Aws::String>
53 void SetVolumeName(VolumeNameT&& value) { m_volumeNameHasBeenSet = true; m_volumeName = std::forward<VolumeNameT>(value); }
54 template<typename VolumeNameT = Aws::String>
55 KxVolume& WithVolumeName(VolumeNameT&& value) { SetVolumeName(std::forward<VolumeNameT>(value)); return *this;}
57
59
63 inline KxVolumeType GetVolumeType() const { return m_volumeType; }
64 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
65 inline void SetVolumeType(KxVolumeType value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
66 inline KxVolume& WithVolumeType(KxVolumeType value) { SetVolumeType(value); return *this;}
68
70
81 inline KxVolumeStatus GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 inline void SetStatus(KxVolumeStatus value) { m_statusHasBeenSet = true; m_status = value; }
84 inline KxVolume& WithStatus(KxVolumeStatus value) { SetStatus(value); return *this;}
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template<typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
95 template<typename DescriptionT = Aws::String>
96 KxVolume& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
98
100
103 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
104 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
105 template<typename StatusReasonT = Aws::String>
106 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
107 template<typename StatusReasonT = Aws::String>
108 KxVolume& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
110
112
117 inline KxAzMode GetAzMode() const { return m_azMode; }
118 inline bool AzModeHasBeenSet() const { return m_azModeHasBeenSet; }
119 inline void SetAzMode(KxAzMode value) { m_azModeHasBeenSet = true; m_azMode = value; }
120 inline KxVolume& WithAzMode(KxAzMode value) { SetAzMode(value); return *this;}
122
124
127 inline const Aws::Vector<Aws::String>& GetAvailabilityZoneIds() const { return m_availabilityZoneIds; }
128 inline bool AvailabilityZoneIdsHasBeenSet() const { return m_availabilityZoneIdsHasBeenSet; }
129 template<typename AvailabilityZoneIdsT = Aws::Vector<Aws::String>>
130 void SetAvailabilityZoneIds(AvailabilityZoneIdsT&& value) { m_availabilityZoneIdsHasBeenSet = true; m_availabilityZoneIds = std::forward<AvailabilityZoneIdsT>(value); }
131 template<typename AvailabilityZoneIdsT = Aws::Vector<Aws::String>>
132 KxVolume& WithAvailabilityZoneIds(AvailabilityZoneIdsT&& value) { SetAvailabilityZoneIds(std::forward<AvailabilityZoneIdsT>(value)); return *this;}
133 template<typename AvailabilityZoneIdsT = Aws::String>
134 KxVolume& AddAvailabilityZoneIds(AvailabilityZoneIdsT&& value) { m_availabilityZoneIdsHasBeenSet = true; m_availabilityZoneIds.emplace_back(std::forward<AvailabilityZoneIdsT>(value)); return *this; }
136
138
143 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
144 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
145 template<typename CreatedTimestampT = Aws::Utils::DateTime>
146 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
147 template<typename CreatedTimestampT = Aws::Utils::DateTime>
148 KxVolume& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
150
152
157 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
158 inline bool LastModifiedTimestampHasBeenSet() const { return m_lastModifiedTimestampHasBeenSet; }
159 template<typename LastModifiedTimestampT = Aws::Utils::DateTime>
160 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) { m_lastModifiedTimestampHasBeenSet = true; m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value); }
161 template<typename LastModifiedTimestampT = Aws::Utils::DateTime>
162 KxVolume& WithLastModifiedTimestamp(LastModifiedTimestampT&& value) { SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value)); return *this;}
164 private:
165
166 Aws::String m_volumeName;
167 bool m_volumeNameHasBeenSet = false;
168
170 bool m_volumeTypeHasBeenSet = false;
171
173 bool m_statusHasBeenSet = false;
174
175 Aws::String m_description;
176 bool m_descriptionHasBeenSet = false;
177
178 Aws::String m_statusReason;
179 bool m_statusReasonHasBeenSet = false;
180
181 KxAzMode m_azMode{KxAzMode::NOT_SET};
182 bool m_azModeHasBeenSet = false;
183
184 Aws::Vector<Aws::String> m_availabilityZoneIds;
185 bool m_availabilityZoneIdsHasBeenSet = false;
186
187 Aws::Utils::DateTime m_createdTimestamp{};
188 bool m_createdTimestampHasBeenSet = false;
189
190 Aws::Utils::DateTime m_lastModifiedTimestamp{};
191 bool m_lastModifiedTimestampHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace finspace
196} // namespace Aws
void SetStatusReason(StatusReasonT &&value)
Definition KxVolume.h:106
bool StatusReasonHasBeenSet() const
Definition KxVolume.h:104
void SetVolumeType(KxVolumeType value)
Definition KxVolume.h:65
KxVolumeType GetVolumeType() const
Definition KxVolume.h:63
const Aws::Vector< Aws::String > & GetAvailabilityZoneIds() const
Definition KxVolume.h:127
KxVolume & WithStatus(KxVolumeStatus value)
Definition KxVolume.h:84
void SetAzMode(KxAzMode value)
Definition KxVolume.h:119
KxVolume & WithStatusReason(StatusReasonT &&value)
Definition KxVolume.h:108
const Aws::String & GetVolumeName() const
Definition KxVolume.h:50
bool AvailabilityZoneIdsHasBeenSet() const
Definition KxVolume.h:128
KxVolumeStatus GetStatus() const
Definition KxVolume.h:81
bool VolumeNameHasBeenSet() const
Definition KxVolume.h:51
const Aws::String & GetStatusReason() const
Definition KxVolume.h:103
AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedTimestampHasBeenSet() const
Definition KxVolume.h:144
void SetLastModifiedTimestamp(LastModifiedTimestampT &&value)
Definition KxVolume.h:160
KxAzMode GetAzMode() const
Definition KxVolume.h:117
void SetVolumeName(VolumeNameT &&value)
Definition KxVolume.h:53
KxVolume & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition KxVolume.h:148
bool DescriptionHasBeenSet() const
Definition KxVolume.h:92
AWS_FINSPACE_API KxVolume & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FINSPACE_API KxVolume(Aws::Utils::Json::JsonView jsonValue)
KxVolume & WithVolumeType(KxVolumeType value)
Definition KxVolume.h:66
void SetDescription(DescriptionT &&value)
Definition KxVolume.h:94
const Aws::Utils::DateTime & GetLastModifiedTimestamp() const
Definition KxVolume.h:157
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition KxVolume.h:143
AWS_FINSPACE_API KxVolume()=default
KxVolume & WithAvailabilityZoneIds(AvailabilityZoneIdsT &&value)
Definition KxVolume.h:132
KxVolume & WithDescription(DescriptionT &&value)
Definition KxVolume.h:96
void SetStatus(KxVolumeStatus value)
Definition KxVolume.h:83
bool VolumeTypeHasBeenSet() const
Definition KxVolume.h:64
KxVolume & WithAzMode(KxAzMode value)
Definition KxVolume.h:120
const Aws::String & GetDescription() const
Definition KxVolume.h:91
KxVolume & WithVolumeName(VolumeNameT &&value)
Definition KxVolume.h:55
void SetAvailabilityZoneIds(AvailabilityZoneIdsT &&value)
Definition KxVolume.h:130
KxVolume & WithLastModifiedTimestamp(LastModifiedTimestampT &&value)
Definition KxVolume.h:162
KxVolume & AddAvailabilityZoneIds(AvailabilityZoneIdsT &&value)
Definition KxVolume.h:134
bool LastModifiedTimestampHasBeenSet() const
Definition KxVolume.h:158
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition KxVolume.h:146
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue