AWS SDK for C++

AWS SDK for C++ Version 1.11.876

Loading...
Searching...
No Matches
ServiceNodePortRange.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace EKS {
17namespace Model {
18
26 public:
27 AWS_EKS_API ServiceNodePortRange() = default;
31
33
36 inline int GetMinPort() const { return m_minPort; }
37 inline bool MinPortHasBeenSet() const { return m_minPortHasBeenSet; }
38 inline void SetMinPort(int value) {
39 m_minPortHasBeenSet = true;
40 m_minPort = value;
41 }
42 inline ServiceNodePortRange& WithMinPort(int value) {
43 SetMinPort(value);
44 return *this;
45 }
47
49
52 inline int GetMaxPort() const { return m_maxPort; }
53 inline bool MaxPortHasBeenSet() const { return m_maxPortHasBeenSet; }
54 inline void SetMaxPort(int value) {
55 m_maxPortHasBeenSet = true;
56 m_maxPort = value;
57 }
58 inline ServiceNodePortRange& WithMaxPort(int value) {
59 SetMaxPort(value);
60 return *this;
61 }
63 private:
64 int m_minPort{0};
65
66 int m_maxPort{0};
67 bool m_minPortHasBeenSet = false;
68 bool m_maxPortHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace EKS
73} // namespace Aws
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EKS_API ServiceNodePortRange(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API ServiceNodePortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceNodePortRange & WithMaxPort(int value)
AWS_EKS_API ServiceNodePortRange()=default
ServiceNodePortRange & WithMinPort(int value)
Aws::Utils::Json::JsonValue JsonValue