AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AdditionalLimit.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPENSEARCHSERVICE_API AdditionalLimit() = default;
37 AWS_OPENSEARCHSERVICE_API AdditionalLimit(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API AdditionalLimit& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
51 inline const Aws::String& GetLimitName() const { return m_limitName; }
52 inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
53 template<typename LimitNameT = Aws::String>
54 void SetLimitName(LimitNameT&& value) { m_limitNameHasBeenSet = true; m_limitName = std::forward<LimitNameT>(value); }
55 template<typename LimitNameT = Aws::String>
56 AdditionalLimit& WithLimitName(LimitNameT&& value) { SetLimitName(std::forward<LimitNameT>(value)); return *this;}
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) { m_limitValuesHasBeenSet = true; m_limitValues = std::forward<LimitValuesT>(value); }
67 template<typename LimitValuesT = Aws::Vector<Aws::String>>
68 AdditionalLimit& WithLimitValues(LimitValuesT&& value) { SetLimitValues(std::forward<LimitValuesT>(value)); return *this;}
69 template<typename LimitValuesT = Aws::String>
70 AdditionalLimit& AddLimitValues(LimitValuesT&& value) { m_limitValuesHasBeenSet = true; m_limitValues.emplace_back(std::forward<LimitValuesT>(value)); return *this; }
72 private:
73
74 Aws::String m_limitName;
75 bool m_limitNameHasBeenSet = false;
76
77 Aws::Vector<Aws::String> m_limitValues;
78 bool m_limitValuesHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace OpenSearchService
83} // 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