AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_OPENSEARCHSERVICE_API EBSOptions() = default;
36 AWS_OPENSEARCHSERVICE_API EBSOptions(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API EBSOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline bool GetEBSEnabled() const { return m_eBSEnabled; }
47 inline bool EBSEnabledHasBeenSet() const { return m_eBSEnabledHasBeenSet; }
48 inline void SetEBSEnabled(bool value) { m_eBSEnabledHasBeenSet = true; m_eBSEnabled = value; }
49 inline EBSOptions& WithEBSEnabled(bool value) { SetEBSEnabled(value); return *this;}
51
53
56 inline VolumeType GetVolumeType() const { return m_volumeType; }
57 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
58 inline void SetVolumeType(VolumeType value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
59 inline EBSOptions& WithVolumeType(VolumeType value) { SetVolumeType(value); return *this;}
61
63
66 inline int GetVolumeSize() const { return m_volumeSize; }
67 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
68 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
69 inline EBSOptions& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
71
73
78 inline int GetIops() const { return m_iops; }
79 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
80 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
81 inline EBSOptions& WithIops(int value) { SetIops(value); return *this;}
83
85
89 inline int GetThroughput() const { return m_throughput; }
90 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
91 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
92 inline EBSOptions& WithThroughput(int value) { SetThroughput(value); return *this;}
94 private:
95
96 bool m_eBSEnabled{false};
97 bool m_eBSEnabledHasBeenSet = false;
98
99 VolumeType m_volumeType{VolumeType::NOT_SET};
100 bool m_volumeTypeHasBeenSet = false;
101
102 int m_volumeSize{0};
103 bool m_volumeSizeHasBeenSet = false;
104
105 int m_iops{0};
106 bool m_iopsHasBeenSet = false;
107
108 int m_throughput{0};
109 bool m_throughputHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace OpenSearchService
114} // 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:59
EBSOptions & WithVolumeSize(int value)
Definition EBSOptions.h:69
EBSOptions & WithEBSEnabled(bool value)
Definition EBSOptions.h:49
EBSOptions & WithThroughput(int value)
Definition EBSOptions.h:92
Aws::Utils::Json::JsonValue JsonValue