AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const VolumeType& GetVolumeType() const{ return m_volumeType; }
58 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
59 inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
60 inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
61 inline EBSOptions& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
62 inline EBSOptions& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
64
66
69 inline int GetVolumeSize() const{ return m_volumeSize; }
70 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
71 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
72 inline EBSOptions& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
74
76
79 inline int GetIops() const{ return m_iops; }
80 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
81 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
82 inline EBSOptions& WithIops(int value) { SetIops(value); return *this;}
84
86
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;
97 bool m_eBSEnabledHasBeenSet = false;
98
99 VolumeType m_volumeType;
100 bool m_volumeTypeHasBeenSet = false;
101
102 int m_volumeSize;
103 bool m_volumeSizeHasBeenSet = false;
104
105 int m_iops;
106 bool m_iopsHasBeenSet = false;
107
108 int m_throughput;
109 bool m_throughputHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace ElasticsearchService
114} // namespace Aws
EBSOptions & WithEBSEnabled(bool value)
Definition EBSOptions.h:50
EBSOptions & WithVolumeType(VolumeType &&value)
Definition EBSOptions.h:62
void SetVolumeType(const VolumeType &value)
Definition EBSOptions.h:59
const VolumeType & GetVolumeType() const
Definition EBSOptions.h:57
EBSOptions & WithVolumeType(const VolumeType &value)
Definition EBSOptions.h:61
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_ELASTICSEARCHSERVICE_API EBSOptions()
Aws::Utils::Json::JsonValue JsonValue