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/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();
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 const VolumeType& GetVolumeType() const{ return m_volumeType; }
57 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
58 inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
59 inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
60 inline EBSOptions& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
61 inline EBSOptions& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
63
65
68 inline int GetVolumeSize() const{ return m_volumeSize; }
69 inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
70 inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
71 inline EBSOptions& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
73
75
80 inline int GetIops() const{ return m_iops; }
81 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
82 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
83 inline EBSOptions& WithIops(int value) { SetIops(value); return *this;}
85
87
91 inline int GetThroughput() const{ return m_throughput; }
92 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
93 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
94 inline EBSOptions& WithThroughput(int value) { SetThroughput(value); return *this;}
96 private:
97
98 bool m_eBSEnabled;
99 bool m_eBSEnabledHasBeenSet = false;
100
101 VolumeType m_volumeType;
102 bool m_volumeTypeHasBeenSet = false;
103
104 int m_volumeSize;
105 bool m_volumeSizeHasBeenSet = false;
106
107 int m_iops;
108 bool m_iopsHasBeenSet = false;
109
110 int m_throughput;
111 bool m_throughputHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace OpenSearchService
116} // namespace Aws
AWS_OPENSEARCHSERVICE_API EBSOptions()
AWS_OPENSEARCHSERVICE_API EBSOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVolumeType(const VolumeType &value)
Definition EBSOptions.h:58
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const VolumeType & GetVolumeType() const
Definition EBSOptions.h:56
AWS_OPENSEARCHSERVICE_API EBSOptions(Aws::Utils::Json::JsonView jsonValue)
EBSOptions & WithVolumeType(VolumeType &&value)
Definition EBSOptions.h:61
EBSOptions & WithVolumeType(const VolumeType &value)
Definition EBSOptions.h:60
EBSOptions & WithVolumeSize(int value)
Definition EBSOptions.h:71
EBSOptions & WithEBSEnabled(bool value)
Definition EBSOptions.h:49
void SetVolumeType(VolumeType &&value)
Definition EBSOptions.h:59
EBSOptions & WithThroughput(int value)
Definition EBSOptions.h:94
Aws::Utils::Json::JsonValue JsonValue