AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledInstancesEbs.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API ScheduledInstancesEbs();
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
48 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
49 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
50 inline ScheduledInstancesEbs& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
52
54
58 inline bool GetEncrypted() const{ return m_encrypted; }
59 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
60 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
61 inline ScheduledInstancesEbs& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
63
65
69 inline int GetIops() const{ return m_iops; }
70 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
71 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
72 inline ScheduledInstancesEbs& WithIops(int value) { SetIops(value); return *this;}
74
76
79 inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
80 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
81 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
82 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
83 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
84 inline ScheduledInstancesEbs& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
85 inline ScheduledInstancesEbs& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
86 inline ScheduledInstancesEbs& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
88
90
95 inline int GetVolumeSize() const{ return m_volumeSize; }
96 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
97 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
98 inline ScheduledInstancesEbs& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
100
102
105 inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
106 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
107 inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
108 inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
109 inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
110 inline ScheduledInstancesEbs& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
111 inline ScheduledInstancesEbs& WithVolumeType(Aws::String&& value) { SetVolumeType(std::move(value)); return *this;}
112 inline ScheduledInstancesEbs& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
114 private:
115
116 bool m_deleteOnTermination;
117 bool m_deleteOnTerminationHasBeenSet = false;
118
119 bool m_encrypted;
120 bool m_encryptedHasBeenSet = false;
121
122 int m_iops;
123 bool m_iopsHasBeenSet = false;
124
125 Aws::String m_snapshotId;
126 bool m_snapshotIdHasBeenSet = false;
127
128 int m_volumeSize;
129 bool m_volumeSizeHasBeenSet = false;
130
131 Aws::String m_volumeType;
132 bool m_volumeTypeHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace EC2
137} // namespace Aws
ScheduledInstancesEbs & WithSnapshotId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ScheduledInstancesEbs & WithSnapshotId(const Aws::String &value)
ScheduledInstancesEbs & WithVolumeSize(int value)
AWS_EC2_API ScheduledInstancesEbs(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstancesEbs & WithSnapshotId(Aws::String &&value)
AWS_EC2_API ScheduledInstancesEbs & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSnapshotId(const Aws::String &value)
ScheduledInstancesEbs & WithEncrypted(bool value)
ScheduledInstancesEbs & WithVolumeType(const char *value)
ScheduledInstancesEbs & WithIops(int value)
ScheduledInstancesEbs & WithDeleteOnTermination(bool value)
ScheduledInstancesEbs & WithVolumeType(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetVolumeType(const Aws::String &value)
ScheduledInstancesEbs & WithVolumeType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream