AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
AllowedValuesConstraint.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/eks/EKS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EKS {
21namespace Model {
22
30 public:
31 AWS_EKS_API AllowedValuesConstraint() = default;
35
37
40 inline const Aws::Vector<Aws::String>& GetAllowedValues() const { return m_allowedValues; }
41 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
42 template <typename AllowedValuesT = Aws::Vector<Aws::String>>
43 void SetAllowedValues(AllowedValuesT&& value) {
44 m_allowedValuesHasBeenSet = true;
45 m_allowedValues = std::forward<AllowedValuesT>(value);
46 }
47 template <typename AllowedValuesT = Aws::Vector<Aws::String>>
48 AllowedValuesConstraint& WithAllowedValues(AllowedValuesT&& value) {
49 SetAllowedValues(std::forward<AllowedValuesT>(value));
50 return *this;
51 }
52 template <typename AllowedValuesT = Aws::String>
53 AllowedValuesConstraint& AddAllowedValues(AllowedValuesT&& value) {
54 m_allowedValuesHasBeenSet = true;
55 m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value));
56 return *this;
57 }
59 private:
60 Aws::Vector<Aws::String> m_allowedValues;
61 bool m_allowedValuesHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace EKS
66} // namespace Aws
AWS_EKS_API AllowedValuesConstraint(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EKS_API AllowedValuesConstraint()=default
AllowedValuesConstraint & AddAllowedValues(AllowedValuesT &&value)
const Aws::Vector< Aws::String > & GetAllowedValues() const
AWS_EKS_API AllowedValuesConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
AllowedValuesConstraint & WithAllowedValues(AllowedValuesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue