AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
LaunchTemplateDiskConf.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/model/VolumeType.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace mgn {
20namespace Model {
21
28 public:
29 AWS_MGN_API LaunchTemplateDiskConf() = default;
33
35
38 inline VolumeType GetVolumeType() const { return m_volumeType; }
39 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
40 inline void SetVolumeType(VolumeType value) {
41 m_volumeTypeHasBeenSet = true;
42 m_volumeType = value;
43 }
45 SetVolumeType(value);
46 return *this;
47 }
49
51
54 inline long long GetIops() const { return m_iops; }
55 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
56 inline void SetIops(long long value) {
57 m_iopsHasBeenSet = true;
58 m_iops = value;
59 }
60 inline LaunchTemplateDiskConf& WithIops(long long value) {
61 SetIops(value);
62 return *this;
63 }
65
67
70 inline long long GetThroughput() const { return m_throughput; }
71 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
72 inline void SetThroughput(long long value) {
73 m_throughputHasBeenSet = true;
74 m_throughput = value;
75 }
76 inline LaunchTemplateDiskConf& WithThroughput(long long value) {
77 SetThroughput(value);
78 return *this;
79 }
81
83
86 inline long long GetVolumeInitializationRate() const { return m_volumeInitializationRate; }
87 inline bool VolumeInitializationRateHasBeenSet() const { return m_volumeInitializationRateHasBeenSet; }
88 inline void SetVolumeInitializationRate(long long value) {
89 m_volumeInitializationRateHasBeenSet = true;
90 m_volumeInitializationRate = value;
91 }
94 return *this;
95 }
97
99
102 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
103 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
104 inline void SetDeleteOnTermination(bool value) {
105 m_deleteOnTerminationHasBeenSet = true;
106 m_deleteOnTermination = value;
107 }
110 return *this;
111 }
113 private:
114 VolumeType m_volumeType{VolumeType::NOT_SET};
115
116 long long m_iops{0};
117
118 long long m_throughput{0};
119
120 long long m_volumeInitializationRate{0};
121
122 bool m_deleteOnTermination{false};
123 bool m_volumeTypeHasBeenSet = false;
124 bool m_iopsHasBeenSet = false;
125 bool m_throughputHasBeenSet = false;
126 bool m_volumeInitializationRateHasBeenSet = false;
127 bool m_deleteOnTerminationHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace mgn
132} // namespace Aws
LaunchTemplateDiskConf & WithDeleteOnTermination(bool value)
LaunchTemplateDiskConf & WithIops(long long value)
AWS_MGN_API LaunchTemplateDiskConf & operator=(Aws::Utils::Json::JsonView jsonValue)
LaunchTemplateDiskConf & WithThroughput(long long value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
LaunchTemplateDiskConf & WithVolumeType(VolumeType value)
AWS_MGN_API LaunchTemplateDiskConf()=default
AWS_MGN_API LaunchTemplateDiskConf(Aws::Utils::Json::JsonView jsonValue)
LaunchTemplateDiskConf & WithVolumeInitializationRate(long long value)
Aws::Utils::Json::JsonValue JsonValue