AWS SDK for C++  1.9.67
AWS SDK for C++
ScheduledInstancesEbs.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
47 
51  inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
52 
56  inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
57 
61  inline ScheduledInstancesEbs& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
62 
63 
68  inline bool GetEncrypted() const{ return m_encrypted; }
69 
74  inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
75 
80  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
81 
86  inline ScheduledInstancesEbs& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
87 
88 
103  inline int GetIops() const{ return m_iops; }
104 
119  inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
120 
135  inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
136 
151  inline ScheduledInstancesEbs& WithIops(int value) { SetIops(value); return *this;}
152 
153 
157  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
158 
162  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
163 
167  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
168 
172  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
173 
177  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
178 
182  inline ScheduledInstancesEbs& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
183 
187  inline ScheduledInstancesEbs& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
188 
192  inline ScheduledInstancesEbs& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
193 
194 
200  inline int GetVolumeSize() const{ return m_volumeSize; }
201 
207  inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
208 
214  inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
215 
221  inline ScheduledInstancesEbs& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
222 
223 
230  inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
231 
238  inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
239 
246  inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
247 
254  inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
255 
262  inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
263 
270  inline ScheduledInstancesEbs& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
271 
278  inline ScheduledInstancesEbs& WithVolumeType(Aws::String&& value) { SetVolumeType(std::move(value)); return *this;}
279 
286  inline ScheduledInstancesEbs& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
287 
288  private:
289 
290  bool m_deleteOnTermination;
291  bool m_deleteOnTerminationHasBeenSet;
292 
293  bool m_encrypted;
294  bool m_encryptedHasBeenSet;
295 
296  int m_iops;
297  bool m_iopsHasBeenSet;
298 
299  Aws::String m_snapshotId;
300  bool m_snapshotIdHasBeenSet;
301 
302  int m_volumeSize;
303  bool m_volumeSizeHasBeenSet;
304 
305  Aws::String m_volumeType;
306  bool m_volumeTypeHasBeenSet;
307  };
308 
309 } // namespace Model
310 } // namespace EC2
311 } // namespace Aws
Aws::EC2::Model::ScheduledInstancesEbs::IopsHasBeenSet
bool IopsHasBeenSet() const
Definition: ScheduledInstancesEbs.h:119
Aws::EC2::Model::ScheduledInstancesEbs::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: ScheduledInstancesEbs.h:157
Aws::EC2::Model::ScheduledInstancesEbs::EncryptedHasBeenSet
bool EncryptedHasBeenSet() const
Definition: ScheduledInstancesEbs.h:74
Aws::EC2::Model::ScheduledInstancesEbs::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: ScheduledInstancesEbs.h:172
Aws::EC2::Model::ScheduledInstancesEbs::SetDeleteOnTermination
void SetDeleteOnTermination(bool value)
Definition: ScheduledInstancesEbs.h:56
Aws::EC2::Model::ScheduledInstancesEbs::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ScheduledInstancesEbs::SetVolumeType
void SetVolumeType(const Aws::String &value)
Definition: ScheduledInstancesEbs.h:246
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ScheduledInstancesEbs::ScheduledInstancesEbs
ScheduledInstancesEbs()
Aws::EC2::Model::ScheduledInstancesEbs
Definition: ScheduledInstancesEbs.h:33
AWSStreamFwd.h
Aws::EC2::Model::ScheduledInstancesEbs::SetEncrypted
void SetEncrypted(bool value)
Definition: ScheduledInstancesEbs.h:80
Aws::EC2::Model::ScheduledInstancesEbs::WithDeleteOnTermination
ScheduledInstancesEbs & WithDeleteOnTermination(bool value)
Definition: ScheduledInstancesEbs.h:61
Aws::EC2::Model::ScheduledInstancesEbs::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: ScheduledInstancesEbs.h:167
Aws::EC2::Model::ScheduledInstancesEbs::GetVolumeSize
int GetVolumeSize() const
Definition: ScheduledInstancesEbs.h:200
Aws::EC2::Model::ScheduledInstancesEbs::WithVolumeType
ScheduledInstancesEbs & WithVolumeType(const Aws::String &value)
Definition: ScheduledInstancesEbs.h:270
Aws::EC2::Model::ScheduledInstancesEbs::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: ScheduledInstancesEbs.h:162
Aws::EC2::Model::ScheduledInstancesEbs::WithEncrypted
ScheduledInstancesEbs & WithEncrypted(bool value)
Definition: ScheduledInstancesEbs.h:86
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ScheduledInstancesEbs::GetIops
int GetIops() const
Definition: ScheduledInstancesEbs.h:103
Aws::EC2::Model::ScheduledInstancesEbs::WithSnapshotId
ScheduledInstancesEbs & WithSnapshotId(const char *value)
Definition: ScheduledInstancesEbs.h:192
Aws::EC2::Model::ScheduledInstancesEbs::WithSnapshotId
ScheduledInstancesEbs & WithSnapshotId(const Aws::String &value)
Definition: ScheduledInstancesEbs.h:182
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ScheduledInstancesEbs::ScheduledInstancesEbs
ScheduledInstancesEbs(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ScheduledInstancesEbs::WithIops
ScheduledInstancesEbs & WithIops(int value)
Definition: ScheduledInstancesEbs.h:151
Aws::EC2::Model::ScheduledInstancesEbs::VolumeSizeHasBeenSet
bool VolumeSizeHasBeenSet() const
Definition: ScheduledInstancesEbs.h:207
Aws::EC2::Model::ScheduledInstancesEbs::SetIops
void SetIops(int value)
Definition: ScheduledInstancesEbs.h:135
AWSString.h
Aws::EC2::Model::ScheduledInstancesEbs::SetVolumeSize
void SetVolumeSize(int value)
Definition: ScheduledInstancesEbs.h:214
Aws::EC2::Model::ScheduledInstancesEbs::GetDeleteOnTermination
bool GetDeleteOnTermination() const
Definition: ScheduledInstancesEbs.h:46
Aws::EC2::Model::ScheduledInstancesEbs::WithVolumeType
ScheduledInstancesEbs & WithVolumeType(const char *value)
Definition: ScheduledInstancesEbs.h:286
Aws::EC2::Model::ScheduledInstancesEbs::SetVolumeType
void SetVolumeType(Aws::String &&value)
Definition: ScheduledInstancesEbs.h:254
Aws::EC2::Model::ScheduledInstancesEbs::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: ScheduledInstancesEbs.h:177
Aws::EC2::Model::ScheduledInstancesEbs::GetVolumeType
const Aws::String & GetVolumeType() const
Definition: ScheduledInstancesEbs.h:230
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ScheduledInstancesEbs::WithSnapshotId
ScheduledInstancesEbs & WithSnapshotId(Aws::String &&value)
Definition: ScheduledInstancesEbs.h:187
Aws::EC2::Model::ScheduledInstancesEbs::GetEncrypted
bool GetEncrypted() const
Definition: ScheduledInstancesEbs.h:68
Aws::EC2::Model::ScheduledInstancesEbs::operator=
ScheduledInstancesEbs & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ScheduledInstancesEbs::WithVolumeType
ScheduledInstancesEbs & WithVolumeType(Aws::String &&value)
Definition: ScheduledInstancesEbs.h:278
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ScheduledInstancesEbs::DeleteOnTerminationHasBeenSet
bool DeleteOnTerminationHasBeenSet() const
Definition: ScheduledInstancesEbs.h:51
Aws::EC2::Model::ScheduledInstancesEbs::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ScheduledInstancesEbs::WithVolumeSize
ScheduledInstancesEbs & WithVolumeSize(int value)
Definition: ScheduledInstancesEbs.h:221
Aws::EC2::Model::ScheduledInstancesEbs::SetVolumeType
void SetVolumeType(const char *value)
Definition: ScheduledInstancesEbs.h:262
Aws::EC2::Model::ScheduledInstancesEbs::VolumeTypeHasBeenSet
bool VolumeTypeHasBeenSet() const
Definition: ScheduledInstancesEbs.h:238
EC2_EXPORTS.h