AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SnapshotIdT = Aws::String>
82 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
83 template<typename SnapshotIdT = Aws::String>
84 ScheduledInstancesEbs& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
86
88
93 inline int GetVolumeSize() const { return m_volumeSize; }
94 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
95 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
96 inline ScheduledInstancesEbs& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
98
100
103 inline const Aws::String& GetVolumeType() const { return m_volumeType; }
104 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
105 template<typename VolumeTypeT = Aws::String>
106 void SetVolumeType(VolumeTypeT&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::forward<VolumeTypeT>(value); }
107 template<typename VolumeTypeT = Aws::String>
108 ScheduledInstancesEbs& WithVolumeType(VolumeTypeT&& value) { SetVolumeType(std::forward<VolumeTypeT>(value)); return *this;}
110 private:
111
112 bool m_deleteOnTermination{false};
113 bool m_deleteOnTerminationHasBeenSet = false;
114
115 bool m_encrypted{false};
116 bool m_encryptedHasBeenSet = false;
117
118 int m_iops{0};
119 bool m_iopsHasBeenSet = false;
120
121 Aws::String m_snapshotId;
122 bool m_snapshotIdHasBeenSet = false;
123
124 int m_volumeSize{0};
125 bool m_volumeSizeHasBeenSet = false;
126
127 Aws::String m_volumeType;
128 bool m_volumeTypeHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace EC2
133} // 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