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/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearch/model/InstanceLimits.h>
10#include <aws/opensearch/model/StorageType.h>
11#include <aws/opensearch/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 OpenSearchService
25{
26namespace Model
27{
28
35 class Limits
36 {
37 public:
38 AWS_OPENSEARCHSERVICE_API Limits();
39 AWS_OPENSEARCHSERVICE_API Limits(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API Limits& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<StorageType>& GetStorageTypes() const{ return m_storageTypes; }
49 inline bool StorageTypesHasBeenSet() const { return m_storageTypesHasBeenSet; }
50 inline void SetStorageTypes(const Aws::Vector<StorageType>& value) { m_storageTypesHasBeenSet = true; m_storageTypes = value; }
51 inline void SetStorageTypes(Aws::Vector<StorageType>&& value) { m_storageTypesHasBeenSet = true; m_storageTypes = std::move(value); }
52 inline Limits& WithStorageTypes(const Aws::Vector<StorageType>& value) { SetStorageTypes(value); return *this;}
53 inline Limits& WithStorageTypes(Aws::Vector<StorageType>&& value) { SetStorageTypes(std::move(value)); return *this;}
54 inline Limits& AddStorageTypes(const StorageType& value) { m_storageTypesHasBeenSet = true; m_storageTypes.push_back(value); return *this; }
55 inline Limits& AddStorageTypes(StorageType&& value) { m_storageTypesHasBeenSet = true; m_storageTypes.push_back(std::move(value)); return *this; }
57
59
62 inline const InstanceLimits& GetInstanceLimits() const{ return m_instanceLimits; }
63 inline bool InstanceLimitsHasBeenSet() const { return m_instanceLimitsHasBeenSet; }
64 inline void SetInstanceLimits(const InstanceLimits& value) { m_instanceLimitsHasBeenSet = true; m_instanceLimits = value; }
65 inline void SetInstanceLimits(InstanceLimits&& value) { m_instanceLimitsHasBeenSet = true; m_instanceLimits = std::move(value); }
66 inline Limits& WithInstanceLimits(const InstanceLimits& value) { SetInstanceLimits(value); return *this;}
67 inline Limits& WithInstanceLimits(InstanceLimits&& value) { SetInstanceLimits(std::move(value)); return *this;}
69
71
75 inline const Aws::Vector<AdditionalLimit>& GetAdditionalLimits() const{ return m_additionalLimits; }
76 inline bool AdditionalLimitsHasBeenSet() const { return m_additionalLimitsHasBeenSet; }
77 inline void SetAdditionalLimits(const Aws::Vector<AdditionalLimit>& value) { m_additionalLimitsHasBeenSet = true; m_additionalLimits = value; }
78 inline void SetAdditionalLimits(Aws::Vector<AdditionalLimit>&& value) { m_additionalLimitsHasBeenSet = true; m_additionalLimits = std::move(value); }
79 inline Limits& WithAdditionalLimits(const Aws::Vector<AdditionalLimit>& value) { SetAdditionalLimits(value); return *this;}
80 inline Limits& WithAdditionalLimits(Aws::Vector<AdditionalLimit>&& value) { SetAdditionalLimits(std::move(value)); return *this;}
81 inline Limits& AddAdditionalLimits(const AdditionalLimit& value) { m_additionalLimitsHasBeenSet = true; m_additionalLimits.push_back(value); return *this; }
82 inline Limits& AddAdditionalLimits(AdditionalLimit&& value) { m_additionalLimitsHasBeenSet = true; m_additionalLimits.push_back(std::move(value)); return *this; }
84 private:
85
86 Aws::Vector<StorageType> m_storageTypes;
87 bool m_storageTypesHasBeenSet = false;
88
89 InstanceLimits m_instanceLimits;
90 bool m_instanceLimitsHasBeenSet = false;
91
92 Aws::Vector<AdditionalLimit> m_additionalLimits;
93 bool m_additionalLimitsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace OpenSearchService
98} // namespace Aws
AWS_OPENSEARCHSERVICE_API Limits()
Limits & WithInstanceLimits(InstanceLimits &&value)
Definition Limits.h:67
AWS_OPENSEARCHSERVICE_API Limits & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStorageTypes(const Aws::Vector< StorageType > &value)
Definition Limits.h:50
Limits & AddStorageTypes(const StorageType &value)
Definition Limits.h:54
Limits & WithAdditionalLimits(const Aws::Vector< AdditionalLimit > &value)
Definition Limits.h:79
Limits & WithStorageTypes(const Aws::Vector< StorageType > &value)
Definition Limits.h:52
void SetInstanceLimits(InstanceLimits &&value)
Definition Limits.h:65
const Aws::Vector< AdditionalLimit > & GetAdditionalLimits() const
Definition Limits.h:75
void SetAdditionalLimits(const Aws::Vector< AdditionalLimit > &value)
Definition Limits.h:77
AWS_OPENSEARCHSERVICE_API Limits(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceLimits(const InstanceLimits &value)
Definition Limits.h:64
Limits & WithAdditionalLimits(Aws::Vector< AdditionalLimit > &&value)
Definition Limits.h:80
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAdditionalLimits(Aws::Vector< AdditionalLimit > &&value)
Definition Limits.h:78
Limits & AddStorageTypes(StorageType &&value)
Definition Limits.h:55
Limits & WithStorageTypes(Aws::Vector< StorageType > &&value)
Definition Limits.h:53
Limits & WithInstanceLimits(const InstanceLimits &value)
Definition Limits.h:66
void SetStorageTypes(Aws::Vector< StorageType > &&value)
Definition Limits.h:51
const InstanceLimits & GetInstanceLimits() const
Definition Limits.h:62
Limits & AddAdditionalLimits(AdditionalLimit &&value)
Definition Limits.h:82
Limits & AddAdditionalLimits(const AdditionalLimit &value)
Definition Limits.h:81
const Aws::Vector< StorageType > & GetStorageTypes() const
Definition Limits.h:48
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue