AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EBSOptions.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/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 OpenSearchService {
20namespace Model {
21
29 public:
30 AWS_OPENSEARCHSERVICE_API EBSOptions() = default;
31 AWS_OPENSEARCHSERVICE_API EBSOptions(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVICE_API EBSOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline bool GetEBSEnabled() const { return m_eBSEnabled; }
41 inline bool EBSEnabledHasBeenSet() const { return m_eBSEnabledHasBeenSet; }
42 inline void SetEBSEnabled(bool value) {
43 m_eBSEnabledHasBeenSet = true;
44 m_eBSEnabled = value;
45 }
46 inline EBSOptions& WithEBSEnabled(bool value) {
47 SetEBSEnabled(value);
48 return *this;
49 }
51
53
56 inline VolumeType GetVolumeType() const { return m_volumeType; }
57 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
58 inline void SetVolumeType(VolumeType value) {
59 m_volumeTypeHasBeenSet = true;
60 m_volumeType = value;
61 }
63 SetVolumeType(value);
64 return *this;
65 }
67
69
72 inline int GetVolumeSize() const { return m_volumeSize; }
73 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
74 inline void SetVolumeSize(int value) {
75 m_volumeSizeHasBeenSet = true;
76 m_volumeSize = value;
77 }
78 inline EBSOptions& WithVolumeSize(int value) {
79 SetVolumeSize(value);
80 return *this;
81 }
83
85
90 inline int GetIops() const { return m_iops; }
91 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
92 inline void SetIops(int value) {
93 m_iopsHasBeenSet = true;
94 m_iops = value;
95 }
96 inline EBSOptions& WithIops(int value) {
97 SetIops(value);
98 return *this;
99 }
101
103
107 inline int GetThroughput() const { return m_throughput; }
108 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
109 inline void SetThroughput(int value) {
110 m_throughputHasBeenSet = true;
111 m_throughput = value;
112 }
113 inline EBSOptions& WithThroughput(int value) {
114 SetThroughput(value);
115 return *this;
116 }
118 private:
119 bool m_eBSEnabled{false};
120
121 VolumeType m_volumeType{VolumeType::NOT_SET};
122
123 int m_volumeSize{0};
124
125 int m_iops{0};
126
127 int m_throughput{0};
128 bool m_eBSEnabledHasBeenSet = false;
129 bool m_volumeTypeHasBeenSet = false;
130 bool m_volumeSizeHasBeenSet = false;
131 bool m_iopsHasBeenSet = false;
132 bool m_throughputHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace OpenSearchService
137} // namespace Aws
AWS_OPENSEARCHSERVICE_API EBSOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API EBSOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API EBSOptions()=default
EBSOptions & WithVolumeType(VolumeType value)
Definition EBSOptions.h:62
EBSOptions & WithVolumeSize(int value)
Definition EBSOptions.h:78
EBSOptions & WithEBSEnabled(bool value)
Definition EBSOptions.h:46
EBSOptions & WithThroughput(int value)
Definition EBSOptions.h:113
Aws::Utils::Json::JsonValue JsonValue