AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
ResourceConstraints.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/model/AllowedValuesConstraint.h>
9#include <aws/eks/model/IntegerRangeConstraint.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
29 public:
30 AWS_EKS_API ResourceConstraints() = default;
34
36
39 inline const AllowedValuesConstraint& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = AllowedValuesConstraint>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = AllowedValuesConstraint>
47 ResourceConstraints& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const IntegerRangeConstraint& GetWeight() const { return m_weight; }
58 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
59 template <typename WeightT = IntegerRangeConstraint>
60 void SetWeight(WeightT&& value) {
61 m_weightHasBeenSet = true;
62 m_weight = std::forward<WeightT>(value);
63 }
64 template <typename WeightT = IntegerRangeConstraint>
65 ResourceConstraints& WithWeight(WeightT&& value) {
66 SetWeight(std::forward<WeightT>(value));
67 return *this;
68 }
70 private:
72
74 bool m_nameHasBeenSet = false;
75 bool m_weightHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace EKS
80} // namespace Aws
const IntegerRangeConstraint & GetWeight() const
AWS_EKS_API ResourceConstraints(Aws::Utils::Json::JsonView jsonValue)
const AllowedValuesConstraint & GetName() const
AWS_EKS_API ResourceConstraints & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceConstraints & WithName(NameT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceConstraints & WithWeight(WeightT &&value)
AWS_EKS_API ResourceConstraints()=default
Aws::Utils::Json::JsonValue JsonValue