AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ScheduledInstancesEbs.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API ScheduledInstancesEbs() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
42 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
43 inline void SetDeleteOnTermination(bool value) {
44 m_deleteOnTerminationHasBeenSet = true;
45 m_deleteOnTermination = value;
46 }
49 return *this;
50 }
52
54
58 inline bool GetEncrypted() const { return m_encrypted; }
59 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
60 inline void SetEncrypted(bool value) {
61 m_encryptedHasBeenSet = true;
62 m_encrypted = value;
63 }
65 SetEncrypted(value);
66 return *this;
67 }
69
71
75 inline int GetIops() const { return m_iops; }
76 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
77 inline void SetIops(int value) {
78 m_iopsHasBeenSet = true;
79 m_iops = value;
80 }
81 inline ScheduledInstancesEbs& WithIops(int value) {
82 SetIops(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
92 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
93 template <typename SnapshotIdT = Aws::String>
94 void SetSnapshotId(SnapshotIdT&& value) {
95 m_snapshotIdHasBeenSet = true;
96 m_snapshotId = std::forward<SnapshotIdT>(value);
97 }
98 template <typename SnapshotIdT = Aws::String>
99 ScheduledInstancesEbs& WithSnapshotId(SnapshotIdT&& value) {
100 SetSnapshotId(std::forward<SnapshotIdT>(value));
101 return *this;
102 }
104
106
111 inline int GetVolumeSize() const { return m_volumeSize; }
112 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
113 inline void SetVolumeSize(int value) {
114 m_volumeSizeHasBeenSet = true;
115 m_volumeSize = value;
116 }
118 SetVolumeSize(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetVolumeType() const { return m_volumeType; }
128 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
129 template <typename VolumeTypeT = Aws::String>
130 void SetVolumeType(VolumeTypeT&& value) {
131 m_volumeTypeHasBeenSet = true;
132 m_volumeType = std::forward<VolumeTypeT>(value);
133 }
134 template <typename VolumeTypeT = Aws::String>
135 ScheduledInstancesEbs& WithVolumeType(VolumeTypeT&& value) {
136 SetVolumeType(std::forward<VolumeTypeT>(value));
137 return *this;
138 }
140 private:
141 bool m_deleteOnTermination{false};
142
143 bool m_encrypted{false};
144
145 int m_iops{0};
146
147 Aws::String m_snapshotId;
148
149 int m_volumeSize{0};
150
151 Aws::String m_volumeType;
152 bool m_deleteOnTerminationHasBeenSet = false;
153 bool m_encryptedHasBeenSet = false;
154 bool m_iopsHasBeenSet = false;
155 bool m_snapshotIdHasBeenSet = false;
156 bool m_volumeSizeHasBeenSet = false;
157 bool m_volumeTypeHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace EC2
162} // namespace Aws
ScheduledInstancesEbs & WithVolumeType(VolumeTypeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ScheduledInstancesEbs & WithVolumeSize(int value)
AWS_EC2_API ScheduledInstancesEbs(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ScheduledInstancesEbs & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstancesEbs & WithEncrypted(bool value)
ScheduledInstancesEbs & WithSnapshotId(SnapshotIdT &&value)
ScheduledInstancesEbs & WithIops(int value)
ScheduledInstancesEbs & WithDeleteOnTermination(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API ScheduledInstancesEbs()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream