AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
KubeApiServerVersionConfig.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/model/DurationParameterConfig.h>
9#include <aws/eks/model/PortRangeParameterConfig.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 KubeApiServerVersionConfig() = default;
35
37
40 inline const DurationParameterConfig& GetEventTtl() const { return m_eventTtl; }
41 inline bool EventTtlHasBeenSet() const { return m_eventTtlHasBeenSet; }
42 template <typename EventTtlT = DurationParameterConfig>
43 void SetEventTtl(EventTtlT&& value) {
44 m_eventTtlHasBeenSet = true;
45 m_eventTtl = std::forward<EventTtlT>(value);
46 }
47 template <typename EventTtlT = DurationParameterConfig>
49 SetEventTtl(std::forward<EventTtlT>(value));
50 return *this;
51 }
53
55
59 inline const PortRangeParameterConfig& GetServiceNodePortRange() const { return m_serviceNodePortRange; }
60 inline bool ServiceNodePortRangeHasBeenSet() const { return m_serviceNodePortRangeHasBeenSet; }
61 template <typename ServiceNodePortRangeT = PortRangeParameterConfig>
62 void SetServiceNodePortRange(ServiceNodePortRangeT&& value) {
63 m_serviceNodePortRangeHasBeenSet = true;
64 m_serviceNodePortRange = std::forward<ServiceNodePortRangeT>(value);
65 }
66 template <typename ServiceNodePortRangeT = PortRangeParameterConfig>
67 KubeApiServerVersionConfig& WithServiceNodePortRange(ServiceNodePortRangeT&& value) {
68 SetServiceNodePortRange(std::forward<ServiceNodePortRangeT>(value));
69 return *this;
70 }
72 private:
73 DurationParameterConfig m_eventTtl;
74
75 PortRangeParameterConfig m_serviceNodePortRange;
76 bool m_eventTtlHasBeenSet = false;
77 bool m_serviceNodePortRangeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EKS
82} // namespace Aws
void SetServiceNodePortRange(ServiceNodePortRangeT &&value)
AWS_EKS_API KubeApiServerVersionConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const DurationParameterConfig & GetEventTtl() const
const PortRangeParameterConfig & GetServiceNodePortRange() const
KubeApiServerVersionConfig & WithEventTtl(EventTtlT &&value)
AWS_EKS_API KubeApiServerVersionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API KubeApiServerVersionConfig()=default
KubeApiServerVersionConfig & WithServiceNodePortRange(ServiceNodePortRangeT &&value)
Aws::Utils::Json::JsonValue JsonValue