AWS SDK for C++  1.9.97
AWS SDK for C++
EBSOptions.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ElasticsearchService
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
46  inline bool GetEBSEnabled() const{ return m_eBSEnabled; }
47 
51  inline bool EBSEnabledHasBeenSet() const { return m_eBSEnabledHasBeenSet; }
52 
56  inline void SetEBSEnabled(bool value) { m_eBSEnabledHasBeenSet = true; m_eBSEnabled = value; }
57 
61  inline EBSOptions& WithEBSEnabled(bool value) { SetEBSEnabled(value); return *this;}
62 
63 
67  inline const VolumeType& GetVolumeType() const{ return m_volumeType; }
68 
72  inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
73 
77  inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
78 
82  inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
83 
87  inline EBSOptions& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;}
88 
92  inline EBSOptions& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;}
93 
94 
98  inline int GetVolumeSize() const{ return m_volumeSize; }
99 
103  inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; }
104 
108  inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
109 
113  inline EBSOptions& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
114 
115 
119  inline int GetIops() const{ return m_iops; }
120 
124  inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
125 
129  inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
130 
134  inline EBSOptions& WithIops(int value) { SetIops(value); return *this;}
135 
136  private:
137 
138  bool m_eBSEnabled;
139  bool m_eBSEnabledHasBeenSet;
140 
141  VolumeType m_volumeType;
142  bool m_volumeTypeHasBeenSet;
143 
144  int m_volumeSize;
145  bool m_volumeSizeHasBeenSet;
146 
147  int m_iops;
148  bool m_iopsHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace ElasticsearchService
153 } // namespace Aws
Aws::ElasticsearchService::Model::EBSOptions::WithIops
EBSOptions & WithIops(int value)
Definition: EBSOptions.h:134
Aws::ElasticsearchService::Model::EBSOptions::GetIops
int GetIops() const
Definition: EBSOptions.h:119
Aws::ElasticsearchService::Model::EBSOptions::GetEBSEnabled
bool GetEBSEnabled() const
Definition: EBSOptions.h:46
Aws::ElasticsearchService::Model::VolumeType
VolumeType
Definition: VolumeType.h:17
Aws::ElasticsearchService::Model::EBSOptions::GetVolumeType
const VolumeType & GetVolumeType() const
Definition: EBSOptions.h:67
Aws::ElasticsearchService::Model::EBSOptions::WithEBSEnabled
EBSOptions & WithEBSEnabled(bool value)
Definition: EBSOptions.h:61
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::EBSOptions::EBSEnabledHasBeenSet
bool EBSEnabledHasBeenSet() const
Definition: EBSOptions.h:51
Aws::ElasticsearchService::Model::EBSOptions::VolumeSizeHasBeenSet
bool VolumeSizeHasBeenSet() const
Definition: EBSOptions.h:103
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::EBSOptions::WithVolumeType
EBSOptions & WithVolumeType(VolumeType &&value)
Definition: EBSOptions.h:92
Aws::ElasticsearchService::Model::EBSOptions::WithVolumeType
EBSOptions & WithVolumeType(const VolumeType &value)
Definition: EBSOptions.h:87
Aws::ElasticsearchService::Model::EBSOptions::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::EBSOptions::operator=
EBSOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::EBSOptions::SetVolumeType
void SetVolumeType(const VolumeType &value)
Definition: EBSOptions.h:77
Aws::ElasticsearchService::Model::EBSOptions::EBSOptions
EBSOptions(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::EBSOptions
Definition: EBSOptions.h:35
Aws::ElasticsearchService::Model::EBSOptions::GetVolumeSize
int GetVolumeSize() const
Definition: EBSOptions.h:98
Aws::ElasticsearchService::Model::EBSOptions::SetVolumeType
void SetVolumeType(VolumeType &&value)
Definition: EBSOptions.h:82
Aws::ElasticsearchService::Model::EBSOptions::SetVolumeSize
void SetVolumeSize(int value)
Definition: EBSOptions.h:108
Aws
Definition: AccessManagementClient.h:15
VolumeType.h
Aws::ElasticsearchService::Model::EBSOptions::SetIops
void SetIops(int value)
Definition: EBSOptions.h:129
Aws::ElasticsearchService::Model::EBSOptions::IopsHasBeenSet
bool IopsHasBeenSet() const
Definition: EBSOptions.h:124
Aws::ElasticsearchService::Model::EBSOptions::SetEBSEnabled
void SetEBSEnabled(bool value)
Definition: EBSOptions.h:56
Aws::ElasticsearchService::Model::EBSOptions::WithVolumeSize
EBSOptions & WithVolumeSize(int value)
Definition: EBSOptions.h:113
Aws::ElasticsearchService::Model::EBSOptions::VolumeTypeHasBeenSet
bool VolumeTypeHasBeenSet() const
Definition: EBSOptions.h:72
Aws::ElasticsearchService::Model::EBSOptions::EBSOptions
EBSOptions()