AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/opensearch/OpenSearchService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
30 public:
31 AWS_OPENSEARCHSERVICE_API AdditionalLimit() = default;
32 AWS_OPENSEARCHSERVICE_API AdditionalLimit(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API AdditionalLimit& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
45 inline const Aws::String& GetLimitName() const { return m_limitName; }
46 inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
47 template <typename LimitNameT = Aws::String>
48 void SetLimitName(LimitNameT&& value) {
49 m_limitNameHasBeenSet = true;
50 m_limitName = std::forward<LimitNameT>(value);
51 }
52 template <typename LimitNameT = Aws::String>
53 AdditionalLimit& WithLimitName(LimitNameT&& value) {
54 SetLimitName(std::forward<LimitNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Vector<Aws::String>& GetLimitValues() const { return m_limitValues; }
64 inline bool LimitValuesHasBeenSet() const { return m_limitValuesHasBeenSet; }
65 template <typename LimitValuesT = Aws::Vector<Aws::String>>
66 void SetLimitValues(LimitValuesT&& value) {
67 m_limitValuesHasBeenSet = true;
68 m_limitValues = std::forward<LimitValuesT>(value);
69 }
70 template <typename LimitValuesT = Aws::Vector<Aws::String>>
71 AdditionalLimit& WithLimitValues(LimitValuesT&& value) {
72 SetLimitValues(std::forward<LimitValuesT>(value));
73 return *this;
74 }
75 template <typename LimitValuesT = Aws::String>
76 AdditionalLimit& AddLimitValues(LimitValuesT&& value) {
77 m_limitValuesHasBeenSet = true;
78 m_limitValues.emplace_back(std::forward<LimitValuesT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_limitName;
84
85 Aws::Vector<Aws::String> m_limitValues;
86 bool m_limitNameHasBeenSet = false;
87 bool m_limitValuesHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace OpenSearchService
92} // namespace Aws
AWS_OPENSEARCHSERVICE_API AdditionalLimit()=default
AWS_OPENSEARCHSERVICE_API AdditionalLimit & operator=(Aws::Utils::Json::JsonView jsonValue)
AdditionalLimit & WithLimitValues(LimitValuesT &&value)
const Aws::Vector< Aws::String > & GetLimitValues() const
AWS_OPENSEARCHSERVICE_API AdditionalLimit(Aws::Utils::Json::JsonView jsonValue)
AdditionalLimit & AddLimitValues(LimitValuesT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AdditionalLimit & WithLimitName(LimitNameT &&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