AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#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 ElasticsearchService
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_ELASTICSEARCHSERVICE_API EBSOptions() = default;
38 AWS_ELASTICSEARCHSERVICE_API EBSOptions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELASTICSEARCHSERVICE_API EBSOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline bool GetEBSEnabled() const { return m_eBSEnabled; }
48 inline bool EBSEnabledHasBeenSet() const { return m_eBSEnabledHasBeenSet; }
49 inline void SetEBSEnabled(bool value) { m_eBSEnabledHasBeenSet = true; m_eBSEnabled = value; }
50 inline EBSOptions& WithEBSEnabled(bool value) { SetEBSEnabled(value); return *this;}
52
54
57 inline VolumeType GetVolumeType() const { return m_volumeType; }
58 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
59 inline void SetVolumeType(VolumeType value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
60 inline EBSOptions& WithVolumeType(VolumeType value) { SetVolumeType(value); return *this;}
62
64
67 inline int GetVolumeSize() const { return m_volumeSize; }
68 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
69 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
70 inline EBSOptions& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
72
74
77 inline int GetIops() const { return m_iops; }
78 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
79 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
80 inline EBSOptions& WithIops(int value) { SetIops(value); return *this;}
82
84
87 inline int GetThroughput() const { return m_throughput; }
88 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
89 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
90 inline EBSOptions& WithThroughput(int value) { SetThroughput(value); return *this;}
92 private:
93
94 bool m_eBSEnabled{false};
95 bool m_eBSEnabledHasBeenSet = false;
96
97 VolumeType m_volumeType{VolumeType::NOT_SET};
98 bool m_volumeTypeHasBeenSet = false;
99
100 int m_volumeSize{0};
101 bool m_volumeSizeHasBeenSet = false;
102
103 int m_iops{0};
104 bool m_iopsHasBeenSet = false;
105
106 int m_throughput{0};
107 bool m_throughputHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ElasticsearchService
112} // namespace Aws
EBSOptions & WithEBSEnabled(bool value)
Definition EBSOptions.h:50
AWS_ELASTICSEARCHSERVICE_API EBSOptions()=default
EBSOptions & WithVolumeType(VolumeType value)
Definition EBSOptions.h:60
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