AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
EBSOptions.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/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 ElasticsearchService {
20namespace Model {
21
31 public:
32 AWS_ELASTICSEARCHSERVICE_API EBSOptions() = default;
33 AWS_ELASTICSEARCHSERVICE_API EBSOptions(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELASTICSEARCHSERVICE_API EBSOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline bool GetEBSEnabled() const { return m_eBSEnabled; }
42 inline bool EBSEnabledHasBeenSet() const { return m_eBSEnabledHasBeenSet; }
43 inline void SetEBSEnabled(bool value) {
44 m_eBSEnabledHasBeenSet = true;
45 m_eBSEnabled = value;
46 }
47 inline EBSOptions& WithEBSEnabled(bool value) {
48 SetEBSEnabled(value);
49 return *this;
50 }
52
54
57 inline VolumeType GetVolumeType() const { return m_volumeType; }
58 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
59 inline void SetVolumeType(VolumeType value) {
60 m_volumeTypeHasBeenSet = true;
61 m_volumeType = value;
62 }
64 SetVolumeType(value);
65 return *this;
66 }
68
70
73 inline int GetVolumeSize() const { return m_volumeSize; }
74 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
75 inline void SetVolumeSize(int value) {
76 m_volumeSizeHasBeenSet = true;
77 m_volumeSize = value;
78 }
79 inline EBSOptions& WithVolumeSize(int value) {
80 SetVolumeSize(value);
81 return *this;
82 }
84
86
89 inline int GetIops() const { return m_iops; }
90 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
91 inline void SetIops(int value) {
92 m_iopsHasBeenSet = true;
93 m_iops = value;
94 }
95 inline EBSOptions& WithIops(int value) {
96 SetIops(value);
97 return *this;
98 }
100
102
105 inline int GetThroughput() const { return m_throughput; }
106 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
107 inline void SetThroughput(int value) {
108 m_throughputHasBeenSet = true;
109 m_throughput = value;
110 }
111 inline EBSOptions& WithThroughput(int value) {
112 SetThroughput(value);
113 return *this;
114 }
116 private:
117 bool m_eBSEnabled{false};
118
119 VolumeType m_volumeType{VolumeType::NOT_SET};
120
121 int m_volumeSize{0};
122
123 int m_iops{0};
124
125 int m_throughput{0};
126 bool m_eBSEnabledHasBeenSet = false;
127 bool m_volumeTypeHasBeenSet = false;
128 bool m_volumeSizeHasBeenSet = false;
129 bool m_iopsHasBeenSet = false;
130 bool m_throughputHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace ElasticsearchService
135} // namespace Aws
EBSOptions & WithEBSEnabled(bool value)
Definition EBSOptions.h:47
AWS_ELASTICSEARCHSERVICE_API EBSOptions()=default
EBSOptions & WithVolumeType(VolumeType value)
Definition EBSOptions.h:63
AWS_ELASTICSEARCHSERVICE_API EBSOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API EBSOptions(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue