AWS SDK for C++

AWS SDK for C++ Version 1.11.898

Loading...
Searching...
No Matches
IntegerParameterConfig.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/model/IntegerConstraints.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EKS {
20namespace Model {
21
29 public:
30 AWS_EKS_API IntegerParameterConfig() = default;
34
36
39 inline int GetDefaultValue() const { return m_defaultValue; }
40 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
41 inline void SetDefaultValue(int value) {
42 m_defaultValueHasBeenSet = true;
43 m_defaultValue = value;
44 }
46 SetDefaultValue(value);
47 return *this;
48 }
50
52
55 inline const IntegerConstraints& GetConstraints() const { return m_constraints; }
56 inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
57 template <typename ConstraintsT = IntegerConstraints>
58 void SetConstraints(ConstraintsT&& value) {
59 m_constraintsHasBeenSet = true;
60 m_constraints = std::forward<ConstraintsT>(value);
61 }
62 template <typename ConstraintsT = IntegerConstraints>
63 IntegerParameterConfig& WithConstraints(ConstraintsT&& value) {
64 SetConstraints(std::forward<ConstraintsT>(value));
65 return *this;
66 }
68 private:
69 int m_defaultValue{0};
70
71 IntegerConstraints m_constraints;
72 bool m_defaultValueHasBeenSet = false;
73 bool m_constraintsHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace EKS
78} // namespace Aws
AWS_EKS_API IntegerParameterConfig()=default
IntegerParameterConfig & WithDefaultValue(int value)
AWS_EKS_API IntegerParameterConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
IntegerParameterConfig & WithConstraints(ConstraintsT &&value)
AWS_EKS_API IntegerParameterConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const IntegerConstraints & GetConstraints() const
Aws::Utils::Json::JsonValue JsonValue