AWS SDK for C++  1.9.108
AWS SDK for C++
Limits.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace ElasticsearchService
25 {
26 namespace Model
27 {
28 
38  {
39  public:
40  Limits();
44 
45 
50  inline const Aws::Vector<StorageType>& GetStorageTypes() const{ return m_storageTypes; }
51 
56  inline bool StorageTypesHasBeenSet() const { return m_storageTypesHasBeenSet; }
57 
62  inline void SetStorageTypes(const Aws::Vector<StorageType>& value) { m_storageTypesHasBeenSet = true; m_storageTypes = value; }
63 
68  inline void SetStorageTypes(Aws::Vector<StorageType>&& value) { m_storageTypesHasBeenSet = true; m_storageTypes = std::move(value); }
69 
74  inline Limits& WithStorageTypes(const Aws::Vector<StorageType>& value) { SetStorageTypes(value); return *this;}
75 
80  inline Limits& WithStorageTypes(Aws::Vector<StorageType>&& value) { SetStorageTypes(std::move(value)); return *this;}
81 
86  inline Limits& AddStorageTypes(const StorageType& value) { m_storageTypesHasBeenSet = true; m_storageTypes.push_back(value); return *this; }
87 
92  inline Limits& AddStorageTypes(StorageType&& value) { m_storageTypesHasBeenSet = true; m_storageTypes.push_back(std::move(value)); return *this; }
93 
94 
95 
96  inline const InstanceLimits& GetInstanceLimits() const{ return m_instanceLimits; }
97 
98 
99  inline bool InstanceLimitsHasBeenSet() const { return m_instanceLimitsHasBeenSet; }
100 
101 
102  inline void SetInstanceLimits(const InstanceLimits& value) { m_instanceLimitsHasBeenSet = true; m_instanceLimits = value; }
103 
104 
105  inline void SetInstanceLimits(InstanceLimits&& value) { m_instanceLimitsHasBeenSet = true; m_instanceLimits = std::move(value); }
106 
107 
108  inline Limits& WithInstanceLimits(const InstanceLimits& value) { SetInstanceLimits(value); return *this;}
109 
110 
111  inline Limits& WithInstanceLimits(InstanceLimits&& value) { SetInstanceLimits(std::move(value)); return *this;}
112 
113 
118  inline const Aws::Vector<AdditionalLimit>& GetAdditionalLimits() const{ return m_additionalLimits; }
119 
124  inline bool AdditionalLimitsHasBeenSet() const { return m_additionalLimitsHasBeenSet; }
125 
130  inline void SetAdditionalLimits(const Aws::Vector<AdditionalLimit>& value) { m_additionalLimitsHasBeenSet = true; m_additionalLimits = value; }
131 
136  inline void SetAdditionalLimits(Aws::Vector<AdditionalLimit>&& value) { m_additionalLimitsHasBeenSet = true; m_additionalLimits = std::move(value); }
137 
142  inline Limits& WithAdditionalLimits(const Aws::Vector<AdditionalLimit>& value) { SetAdditionalLimits(value); return *this;}
143 
148  inline Limits& WithAdditionalLimits(Aws::Vector<AdditionalLimit>&& value) { SetAdditionalLimits(std::move(value)); return *this;}
149 
154  inline Limits& AddAdditionalLimits(const AdditionalLimit& value) { m_additionalLimitsHasBeenSet = true; m_additionalLimits.push_back(value); return *this; }
155 
160  inline Limits& AddAdditionalLimits(AdditionalLimit&& value) { m_additionalLimitsHasBeenSet = true; m_additionalLimits.push_back(std::move(value)); return *this; }
161 
162  private:
163 
164  Aws::Vector<StorageType> m_storageTypes;
165  bool m_storageTypesHasBeenSet;
166 
167  InstanceLimits m_instanceLimits;
168  bool m_instanceLimitsHasBeenSet;
169 
170  Aws::Vector<AdditionalLimit> m_additionalLimits;
171  bool m_additionalLimitsHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace ElasticsearchService
176 } // namespace Aws
Aws::ElasticsearchService::Model::Limits::Limits
Limits()
Aws::ElasticsearchService::Model::Limits::InstanceLimitsHasBeenSet
bool InstanceLimitsHasBeenSet() const
Definition: Limits.h:99
Aws::ElasticsearchService::Model::Limits::SetAdditionalLimits
void SetAdditionalLimits(const Aws::Vector< AdditionalLimit > &value)
Definition: Limits.h:130
Aws::ElasticsearchService::Model::Limits::WithStorageTypes
Limits & WithStorageTypes(const Aws::Vector< StorageType > &value)
Definition: Limits.h:74
Aws::ElasticsearchService::Model::Limits::AddAdditionalLimits
Limits & AddAdditionalLimits(const AdditionalLimit &value)
Definition: Limits.h:154
Aws::ElasticsearchService::Model::Limits::WithAdditionalLimits
Limits & WithAdditionalLimits(const Aws::Vector< AdditionalLimit > &value)
Definition: Limits.h:142
Aws::ElasticsearchService::Model::Limits::SetAdditionalLimits
void SetAdditionalLimits(Aws::Vector< AdditionalLimit > &&value)
Definition: Limits.h:136
Aws::ElasticsearchService::Model::Limits::AddStorageTypes
Limits & AddStorageTypes(const StorageType &value)
Definition: Limits.h:86
Aws::ElasticsearchService::Model::Limits::AddAdditionalLimits
Limits & AddAdditionalLimits(AdditionalLimit &&value)
Definition: Limits.h:160
Aws::ElasticsearchService::Model::Limits::SetInstanceLimits
void SetInstanceLimits(InstanceLimits &&value)
Definition: Limits.h:105
Aws::ElasticsearchService::Model::Limits
Definition: Limits.h:38
Aws::ElasticsearchService::Model::Limits::WithAdditionalLimits
Limits & WithAdditionalLimits(Aws::Vector< AdditionalLimit > &&value)
Definition: Limits.h:148
Aws::ElasticsearchService::Model::Limits::SetStorageTypes
void SetStorageTypes(const Aws::Vector< StorageType > &value)
Definition: Limits.h:62
Aws::ElasticsearchService::Model::Limits::StorageTypesHasBeenSet
bool StorageTypesHasBeenSet() const
Definition: Limits.h:56
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::Limits::WithStorageTypes
Limits & WithStorageTypes(Aws::Vector< StorageType > &&value)
Definition: Limits.h:80
Aws::ElasticsearchService::Model::Limits::AdditionalLimitsHasBeenSet
bool AdditionalLimitsHasBeenSet() const
Definition: Limits.h:124
AWSVector.h
Aws::ElasticsearchService::Model::Limits::AddStorageTypes
Limits & AddStorageTypes(StorageType &&value)
Definition: Limits.h:92
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::InstanceLimits
Definition: InstanceLimits.h:33
StorageType.h
InstanceLimits.h
Aws::ElasticsearchService::Model::Limits::SetStorageTypes
void SetStorageTypes(Aws::Vector< StorageType > &&value)
Definition: Limits.h:68
Aws::ElasticsearchService::Model::Limits::WithInstanceLimits
Limits & WithInstanceLimits(InstanceLimits &&value)
Definition: Limits.h:111
Aws::ElasticsearchService::Model::StorageType
Definition: StorageType.h:35
Aws::ElasticsearchService::Model::Limits::WithInstanceLimits
Limits & WithInstanceLimits(const InstanceLimits &value)
Definition: Limits.h:108
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::Limits::SetInstanceLimits
void SetInstanceLimits(const InstanceLimits &value)
Definition: Limits.h:102
Aws::ElasticsearchService::Model::Limits::GetStorageTypes
const Aws::Vector< StorageType > & GetStorageTypes() const
Definition: Limits.h:50
Aws::ElasticsearchService::Model::Limits::GetAdditionalLimits
const Aws::Vector< AdditionalLimit > & GetAdditionalLimits() const
Definition: Limits.h:118
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::Limits::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::Limits::operator=
Limits & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::Limits::Limits
Limits(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::Limits::GetInstanceLimits
const InstanceLimits & GetInstanceLimits() const
Definition: Limits.h:96
Aws::ElasticsearchService::Model::AdditionalLimit
Definition: AdditionalLimit.h:34
AdditionalLimit.h