AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
PortRangeParameterConfig.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/model/PortRangeConstraints.h>
9#include <aws/eks/model/ServiceNodePortRange.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 PortRangeParameterConfig() = default;
35
37
40 inline const ServiceNodePortRange& GetDefaultValue() const { return m_defaultValue; }
41 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
42 template <typename DefaultValueT = ServiceNodePortRange>
43 void SetDefaultValue(DefaultValueT&& value) {
44 m_defaultValueHasBeenSet = true;
45 m_defaultValue = std::forward<DefaultValueT>(value);
46 }
47 template <typename DefaultValueT = ServiceNodePortRange>
49 SetDefaultValue(std::forward<DefaultValueT>(value));
50 return *this;
51 }
53
55
58 inline const PortRangeConstraints& GetConstraints() const { return m_constraints; }
59 inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
60 template <typename ConstraintsT = PortRangeConstraints>
61 void SetConstraints(ConstraintsT&& value) {
62 m_constraintsHasBeenSet = true;
63 m_constraints = std::forward<ConstraintsT>(value);
64 }
65 template <typename ConstraintsT = PortRangeConstraints>
67 SetConstraints(std::forward<ConstraintsT>(value));
68 return *this;
69 }
71 private:
72 ServiceNodePortRange m_defaultValue;
73
74 PortRangeConstraints m_constraints;
75 bool m_defaultValueHasBeenSet = false;
76 bool m_constraintsHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EKS
81} // namespace Aws
AWS_EKS_API PortRangeParameterConfig()=default
PortRangeParameterConfig & WithDefaultValue(DefaultValueT &&value)
AWS_EKS_API PortRangeParameterConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const ServiceNodePortRange & GetDefaultValue() const
const PortRangeConstraints & GetConstraints() const
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
PortRangeParameterConfig & WithConstraints(ConstraintsT &&value)
AWS_EKS_API PortRangeParameterConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue