AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Limits.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/es/model/InstanceLimits.h>
10#include <aws/es/model/StorageType.h>
11#include <aws/es/model/AdditionalLimit.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ElasticsearchService
25{
26namespace Model
27{
28
37 class Limits
38 {
39 public:
40 AWS_ELASTICSEARCHSERVICE_API Limits();
41 AWS_ELASTICSEARCHSERVICE_API Limits(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ELASTICSEARCHSERVICE_API Limits& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Vector<StorageType>& GetStorageTypes() const{ return m_storageTypes; }
52 inline bool StorageTypesHasBeenSet() const { return m_storageTypesHasBeenSet; }
53 inline void SetStorageTypes(const Aws::Vector<StorageType>& value) { m_storageTypesHasBeenSet = true; m_storageTypes = value; }
54 inline void SetStorageTypes(Aws::Vector<StorageType>&& value) { m_storageTypesHasBeenSet = true; m_storageTypes = std::move(value); }
55 inline Limits& WithStorageTypes(const Aws::Vector<StorageType>& value) { SetStorageTypes(value); return *this;}
56 inline Limits& WithStorageTypes(Aws::Vector<StorageType>&& value) { SetStorageTypes(std::move(value)); return *this;}
57 inline Limits& AddStorageTypes(const StorageType& value) { m_storageTypesHasBeenSet = true; m_storageTypes.push_back(value); return *this; }
58 inline Limits& AddStorageTypes(StorageType&& value) { m_storageTypesHasBeenSet = true; m_storageTypes.push_back(std::move(value)); return *this; }
60
62
63 inline const InstanceLimits& GetInstanceLimits() const{ return m_instanceLimits; }
64 inline bool InstanceLimitsHasBeenSet() const { return m_instanceLimitsHasBeenSet; }
65 inline void SetInstanceLimits(const InstanceLimits& value) { m_instanceLimitsHasBeenSet = true; m_instanceLimits = value; }
66 inline void SetInstanceLimits(InstanceLimits&& value) { m_instanceLimitsHasBeenSet = true; m_instanceLimits = std::move(value); }
67 inline Limits& WithInstanceLimits(const InstanceLimits& value) { SetInstanceLimits(value); return *this;}
68 inline Limits& WithInstanceLimits(InstanceLimits&& value) { SetInstanceLimits(std::move(value)); return *this;}
70
72
76 inline const Aws::Vector<AdditionalLimit>& GetAdditionalLimits() const{ return m_additionalLimits; }
77 inline bool AdditionalLimitsHasBeenSet() const { return m_additionalLimitsHasBeenSet; }
78 inline void SetAdditionalLimits(const Aws::Vector<AdditionalLimit>& value) { m_additionalLimitsHasBeenSet = true; m_additionalLimits = value; }
79 inline void SetAdditionalLimits(Aws::Vector<AdditionalLimit>&& value) { m_additionalLimitsHasBeenSet = true; m_additionalLimits = std::move(value); }
80 inline Limits& WithAdditionalLimits(const Aws::Vector<AdditionalLimit>& value) { SetAdditionalLimits(value); return *this;}
81 inline Limits& WithAdditionalLimits(Aws::Vector<AdditionalLimit>&& value) { SetAdditionalLimits(std::move(value)); return *this;}
82 inline Limits& AddAdditionalLimits(const AdditionalLimit& value) { m_additionalLimitsHasBeenSet = true; m_additionalLimits.push_back(value); return *this; }
83 inline Limits& AddAdditionalLimits(AdditionalLimit&& value) { m_additionalLimitsHasBeenSet = true; m_additionalLimits.push_back(std::move(value)); return *this; }
85 private:
86
87 Aws::Vector<StorageType> m_storageTypes;
88 bool m_storageTypesHasBeenSet = false;
89
90 InstanceLimits m_instanceLimits;
91 bool m_instanceLimitsHasBeenSet = false;
92
93 Aws::Vector<AdditionalLimit> m_additionalLimits;
94 bool m_additionalLimitsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ElasticsearchService
99} // namespace Aws
Limits & WithInstanceLimits(const InstanceLimits &value)
Definition Limits.h:67
void SetStorageTypes(const Aws::Vector< StorageType > &value)
Definition Limits.h:53
AWS_ELASTICSEARCHSERVICE_API Limits(Aws::Utils::Json::JsonView jsonValue)
void SetAdditionalLimits(const Aws::Vector< AdditionalLimit > &value)
Definition Limits.h:78
Limits & WithStorageTypes(Aws::Vector< StorageType > &&value)
Definition Limits.h:56
void SetInstanceLimits(InstanceLimits &&value)
Definition Limits.h:66
AWS_ELASTICSEARCHSERVICE_API Limits()
AWS_ELASTICSEARCHSERVICE_API Limits & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAdditionalLimits(Aws::Vector< AdditionalLimit > &&value)
Definition Limits.h:79
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const InstanceLimits & GetInstanceLimits() const
Definition Limits.h:63
Limits & WithAdditionalLimits(const Aws::Vector< AdditionalLimit > &value)
Definition Limits.h:80
Limits & AddAdditionalLimits(AdditionalLimit &&value)
Definition Limits.h:83
Limits & WithInstanceLimits(InstanceLimits &&value)
Definition Limits.h:68
Limits & AddStorageTypes(StorageType &&value)
Definition Limits.h:58
const Aws::Vector< StorageType > & GetStorageTypes() const
Definition Limits.h:51
Limits & WithAdditionalLimits(Aws::Vector< AdditionalLimit > &&value)
Definition Limits.h:81
Limits & WithStorageTypes(const Aws::Vector< StorageType > &value)
Definition Limits.h:55
void SetStorageTypes(Aws::Vector< StorageType > &&value)
Definition Limits.h:54
const Aws::Vector< AdditionalLimit > & GetAdditionalLimits() const
Definition Limits.h:76
Limits & AddAdditionalLimits(const AdditionalLimit &value)
Definition Limits.h:82
void SetInstanceLimits(const InstanceLimits &value)
Definition Limits.h:65
Limits & AddStorageTypes(const StorageType &value)
Definition Limits.h:57
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue