AWS SDK for C++  1.9.97
AWS SDK for C++
StorageTypeLimit.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ElasticsearchService
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
54  inline const Aws::String& GetLimitName() const{ return m_limitName; }
55 
68  inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
69 
82  inline void SetLimitName(const Aws::String& value) { m_limitNameHasBeenSet = true; m_limitName = value; }
83 
96  inline void SetLimitName(Aws::String&& value) { m_limitNameHasBeenSet = true; m_limitName = std::move(value); }
97 
110  inline void SetLimitName(const char* value) { m_limitNameHasBeenSet = true; m_limitName.assign(value); }
111 
124  inline StorageTypeLimit& WithLimitName(const Aws::String& value) { SetLimitName(value); return *this;}
125 
138  inline StorageTypeLimit& WithLimitName(Aws::String&& value) { SetLimitName(std::move(value)); return *this;}
139 
152  inline StorageTypeLimit& WithLimitName(const char* value) { SetLimitName(value); return *this;}
153 
154 
158  inline const Aws::Vector<Aws::String>& GetLimitValues() const{ return m_limitValues; }
159 
163  inline bool LimitValuesHasBeenSet() const { return m_limitValuesHasBeenSet; }
164 
168  inline void SetLimitValues(const Aws::Vector<Aws::String>& value) { m_limitValuesHasBeenSet = true; m_limitValues = value; }
169 
173  inline void SetLimitValues(Aws::Vector<Aws::String>&& value) { m_limitValuesHasBeenSet = true; m_limitValues = std::move(value); }
174 
178  inline StorageTypeLimit& WithLimitValues(const Aws::Vector<Aws::String>& value) { SetLimitValues(value); return *this;}
179 
183  inline StorageTypeLimit& WithLimitValues(Aws::Vector<Aws::String>&& value) { SetLimitValues(std::move(value)); return *this;}
184 
188  inline StorageTypeLimit& AddLimitValues(const Aws::String& value) { m_limitValuesHasBeenSet = true; m_limitValues.push_back(value); return *this; }
189 
193  inline StorageTypeLimit& AddLimitValues(Aws::String&& value) { m_limitValuesHasBeenSet = true; m_limitValues.push_back(std::move(value)); return *this; }
194 
198  inline StorageTypeLimit& AddLimitValues(const char* value) { m_limitValuesHasBeenSet = true; m_limitValues.push_back(value); return *this; }
199 
200  private:
201 
202  Aws::String m_limitName;
203  bool m_limitNameHasBeenSet;
204 
205  Aws::Vector<Aws::String> m_limitValues;
206  bool m_limitValuesHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace ElasticsearchService
211 } // namespace Aws
Aws::ElasticsearchService::Model::StorageTypeLimit::WithLimitName
StorageTypeLimit & WithLimitName(const char *value)
Definition: StorageTypeLimit.h:152
Aws::ElasticsearchService::Model::StorageTypeLimit::SetLimitValues
void SetLimitValues(const Aws::Vector< Aws::String > &value)
Definition: StorageTypeLimit.h:168
Aws::ElasticsearchService::Model::StorageTypeLimit::AddLimitValues
StorageTypeLimit & AddLimitValues(Aws::String &&value)
Definition: StorageTypeLimit.h:193
Aws::ElasticsearchService::Model::StorageTypeLimit::SetLimitName
void SetLimitName(Aws::String &&value)
Definition: StorageTypeLimit.h:96
Aws::ElasticsearchService::Model::StorageTypeLimit::GetLimitValues
const Aws::Vector< Aws::String > & GetLimitValues() const
Definition: StorageTypeLimit.h:158
Aws::ElasticsearchService::Model::StorageTypeLimit
Definition: StorageTypeLimit.h:34
Aws::ElasticsearchService::Model::StorageTypeLimit::WithLimitName
StorageTypeLimit & WithLimitName(Aws::String &&value)
Definition: StorageTypeLimit.h:138
Aws::ElasticsearchService::Model::StorageTypeLimit::WithLimitValues
StorageTypeLimit & WithLimitValues(const Aws::Vector< Aws::String > &value)
Definition: StorageTypeLimit.h:178
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::StorageTypeLimit::WithLimitName
StorageTypeLimit & WithLimitName(const Aws::String &value)
Definition: StorageTypeLimit.h:124
AWSVector.h
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::StorageTypeLimit::StorageTypeLimit
StorageTypeLimit(Aws::Utils::Json::JsonView jsonValue)
ElasticsearchService_EXPORTS.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::StorageTypeLimit::AddLimitValues
StorageTypeLimit & AddLimitValues(const char *value)
Definition: StorageTypeLimit.h:198
Aws::ElasticsearchService::Model::StorageTypeLimit::WithLimitValues
StorageTypeLimit & WithLimitValues(Aws::Vector< Aws::String > &&value)
Definition: StorageTypeLimit.h:183
Aws::ElasticsearchService::Model::StorageTypeLimit::operator=
StorageTypeLimit & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::StorageTypeLimit::LimitNameHasBeenSet
bool LimitNameHasBeenSet() const
Definition: StorageTypeLimit.h:68
Aws::ElasticsearchService::Model::StorageTypeLimit::LimitValuesHasBeenSet
bool LimitValuesHasBeenSet() const
Definition: StorageTypeLimit.h:163
Aws::ElasticsearchService::Model::StorageTypeLimit::SetLimitValues
void SetLimitValues(Aws::Vector< Aws::String > &&value)
Definition: StorageTypeLimit.h:173
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::StorageTypeLimit::SetLimitName
void SetLimitName(const Aws::String &value)
Definition: StorageTypeLimit.h:82
Aws::ElasticsearchService::Model::StorageTypeLimit::AddLimitValues
StorageTypeLimit & AddLimitValues(const Aws::String &value)
Definition: StorageTypeLimit.h:188
Aws::ElasticsearchService::Model::StorageTypeLimit::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::StorageTypeLimit::GetLimitName
const Aws::String & GetLimitName() const
Definition: StorageTypeLimit.h:54
Aws::ElasticsearchService::Model::StorageTypeLimit::SetLimitName
void SetLimitName(const char *value)
Definition: StorageTypeLimit.h:110
Aws::ElasticsearchService::Model::StorageTypeLimit::StorageTypeLimit
StorageTypeLimit()