AWS SDK for C++  1.9.97
AWS SDK for C++
AdditionalLimit.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 
53  inline const Aws::String& GetLimitName() const{ return m_limitName; }
54 
66  inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
67 
79  inline void SetLimitName(const Aws::String& value) { m_limitNameHasBeenSet = true; m_limitName = value; }
80 
92  inline void SetLimitName(Aws::String&& value) { m_limitNameHasBeenSet = true; m_limitName = std::move(value); }
93 
105  inline void SetLimitName(const char* value) { m_limitNameHasBeenSet = true; m_limitName.assign(value); }
106 
118  inline AdditionalLimit& WithLimitName(const Aws::String& value) { SetLimitName(value); return *this;}
119 
131  inline AdditionalLimit& WithLimitName(Aws::String&& value) { SetLimitName(std::move(value)); return *this;}
132 
144  inline AdditionalLimit& WithLimitName(const char* value) { SetLimitName(value); return *this;}
145 
146 
150  inline const Aws::Vector<Aws::String>& GetLimitValues() const{ return m_limitValues; }
151 
155  inline bool LimitValuesHasBeenSet() const { return m_limitValuesHasBeenSet; }
156 
160  inline void SetLimitValues(const Aws::Vector<Aws::String>& value) { m_limitValuesHasBeenSet = true; m_limitValues = value; }
161 
165  inline void SetLimitValues(Aws::Vector<Aws::String>&& value) { m_limitValuesHasBeenSet = true; m_limitValues = std::move(value); }
166 
170  inline AdditionalLimit& WithLimitValues(const Aws::Vector<Aws::String>& value) { SetLimitValues(value); return *this;}
171 
175  inline AdditionalLimit& WithLimitValues(Aws::Vector<Aws::String>&& value) { SetLimitValues(std::move(value)); return *this;}
176 
180  inline AdditionalLimit& AddLimitValues(const Aws::String& value) { m_limitValuesHasBeenSet = true; m_limitValues.push_back(value); return *this; }
181 
185  inline AdditionalLimit& AddLimitValues(Aws::String&& value) { m_limitValuesHasBeenSet = true; m_limitValues.push_back(std::move(value)); return *this; }
186 
190  inline AdditionalLimit& AddLimitValues(const char* value) { m_limitValuesHasBeenSet = true; m_limitValues.push_back(value); return *this; }
191 
192  private:
193 
194  Aws::String m_limitName;
195  bool m_limitNameHasBeenSet;
196 
197  Aws::Vector<Aws::String> m_limitValues;
198  bool m_limitValuesHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace ElasticsearchService
203 } // namespace Aws
Aws::ElasticsearchService::Model::AdditionalLimit::operator=
AdditionalLimit & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::AdditionalLimit::GetLimitValues
const Aws::Vector< Aws::String > & GetLimitValues() const
Definition: AdditionalLimit.h:150
Aws::ElasticsearchService::Model::AdditionalLimit::AdditionalLimit
AdditionalLimit(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::AdditionalLimit::WithLimitValues
AdditionalLimit & WithLimitValues(const Aws::Vector< Aws::String > &value)
Definition: AdditionalLimit.h:170
Aws::ElasticsearchService::Model::AdditionalLimit::SetLimitName
void SetLimitName(const Aws::String &value)
Definition: AdditionalLimit.h:79
Aws::ElasticsearchService::Model::AdditionalLimit::AddLimitValues
AdditionalLimit & AddLimitValues(const char *value)
Definition: AdditionalLimit.h:190
Aws::ElasticsearchService::Model::AdditionalLimit::SetLimitName
void SetLimitName(Aws::String &&value)
Definition: AdditionalLimit.h:92
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::AdditionalLimit::WithLimitName
AdditionalLimit & WithLimitName(const Aws::String &value)
Definition: AdditionalLimit.h:118
Aws::ElasticsearchService::Model::AdditionalLimit::SetLimitName
void SetLimitName(const char *value)
Definition: AdditionalLimit.h:105
Aws::ElasticsearchService::Model::AdditionalLimit::SetLimitValues
void SetLimitValues(Aws::Vector< Aws::String > &&value)
Definition: AdditionalLimit.h:165
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::AdditionalLimit::GetLimitName
const Aws::String & GetLimitName() const
Definition: AdditionalLimit.h:53
Aws::ElasticsearchService::Model::AdditionalLimit::WithLimitValues
AdditionalLimit & WithLimitValues(Aws::Vector< Aws::String > &&value)
Definition: AdditionalLimit.h:175
Aws::ElasticsearchService::Model::AdditionalLimit::AddLimitValues
AdditionalLimit & AddLimitValues(const Aws::String &value)
Definition: AdditionalLimit.h:180
Aws::ElasticsearchService::Model::AdditionalLimit::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::AdditionalLimit::SetLimitValues
void SetLimitValues(const Aws::Vector< Aws::String > &value)
Definition: AdditionalLimit.h:160
Aws::ElasticsearchService::Model::AdditionalLimit::LimitNameHasBeenSet
bool LimitNameHasBeenSet() const
Definition: AdditionalLimit.h:66
Aws::ElasticsearchService::Model::AdditionalLimit::AddLimitValues
AdditionalLimit & AddLimitValues(Aws::String &&value)
Definition: AdditionalLimit.h:185
Aws::ElasticsearchService::Model::AdditionalLimit::WithLimitName
AdditionalLimit & WithLimitName(const char *value)
Definition: AdditionalLimit.h:144
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::AdditionalLimit::WithLimitName
AdditionalLimit & WithLimitName(Aws::String &&value)
Definition: AdditionalLimit.h:131
Aws::ElasticsearchService::Model::AdditionalLimit
Definition: AdditionalLimit.h:34
Aws::ElasticsearchService::Model::AdditionalLimit::AdditionalLimit
AdditionalLimit()
Aws::ElasticsearchService::Model::AdditionalLimit::LimitValuesHasBeenSet
bool LimitValuesHasBeenSet() const
Definition: AdditionalLimit.h:155