AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
AdditionalLimit.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/es/ElasticsearchService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ElasticsearchService {
21namespace Model {
22
30 public:
31 AWS_ELASTICSEARCHSERVICE_API AdditionalLimit() = default;
32 AWS_ELASTICSEARCHSERVICE_API AdditionalLimit(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ELASTICSEARCHSERVICE_API AdditionalLimit& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
48 inline const Aws::String& GetLimitName() const { return m_limitName; }
49 inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
50 template <typename LimitNameT = Aws::String>
51 void SetLimitName(LimitNameT&& value) {
52 m_limitNameHasBeenSet = true;
53 m_limitName = std::forward<LimitNameT>(value);
54 }
55 template <typename LimitNameT = Aws::String>
56 AdditionalLimit& WithLimitName(LimitNameT&& value) {
57 SetLimitName(std::forward<LimitNameT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<Aws::String>& GetLimitValues() const { return m_limitValues; }
67 inline bool LimitValuesHasBeenSet() const { return m_limitValuesHasBeenSet; }
68 template <typename LimitValuesT = Aws::Vector<Aws::String>>
69 void SetLimitValues(LimitValuesT&& value) {
70 m_limitValuesHasBeenSet = true;
71 m_limitValues = std::forward<LimitValuesT>(value);
72 }
73 template <typename LimitValuesT = Aws::Vector<Aws::String>>
74 AdditionalLimit& WithLimitValues(LimitValuesT&& value) {
75 SetLimitValues(std::forward<LimitValuesT>(value));
76 return *this;
77 }
78 template <typename LimitValuesT = Aws::String>
79 AdditionalLimit& AddLimitValues(LimitValuesT&& value) {
80 m_limitValuesHasBeenSet = true;
81 m_limitValues.emplace_back(std::forward<LimitValuesT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_limitName;
87
88 Aws::Vector<Aws::String> m_limitValues;
89 bool m_limitNameHasBeenSet = false;
90 bool m_limitValuesHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace ElasticsearchService
95} // namespace Aws
AdditionalLimit & WithLimitName(LimitNameT &&value)
AWS_ELASTICSEARCHSERVICE_API AdditionalLimit & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API AdditionalLimit(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetLimitValues() const
AdditionalLimit & WithLimitValues(LimitValuesT &&value)
AWS_ELASTICSEARCHSERVICE_API AdditionalLimit()=default
AdditionalLimit & AddLimitValues(LimitValuesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue