AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
PortRange.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace EMR {
17namespace Model {
18
26class PortRange {
27 public:
28 AWS_EMR_API PortRange() = default;
29 AWS_EMR_API PortRange(Aws::Utils::Json::JsonView jsonValue);
32
34
37 inline int GetMinRange() const { return m_minRange; }
38 inline bool MinRangeHasBeenSet() const { return m_minRangeHasBeenSet; }
39 inline void SetMinRange(int value) {
40 m_minRangeHasBeenSet = true;
41 m_minRange = value;
42 }
43 inline PortRange& WithMinRange(int value) {
44 SetMinRange(value);
45 return *this;
46 }
48
50
53 inline int GetMaxRange() const { return m_maxRange; }
54 inline bool MaxRangeHasBeenSet() const { return m_maxRangeHasBeenSet; }
55 inline void SetMaxRange(int value) {
56 m_maxRangeHasBeenSet = true;
57 m_maxRange = value;
58 }
59 inline PortRange& WithMaxRange(int value) {
60 SetMaxRange(value);
61 return *this;
62 }
64 private:
65 int m_minRange{0};
66
67 int m_maxRange{0};
68 bool m_minRangeHasBeenSet = false;
69 bool m_maxRangeHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace EMR
74} // namespace Aws
void SetMinRange(int value)
Definition PortRange.h:39
void SetMaxRange(int value)
Definition PortRange.h:55
AWS_EMR_API PortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
bool MaxRangeHasBeenSet() const
Definition PortRange.h:54
AWS_EMR_API PortRange()=default
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API PortRange(Aws::Utils::Json::JsonView jsonValue)
PortRange & WithMaxRange(int value)
Definition PortRange.h:59
bool MinRangeHasBeenSet() const
Definition PortRange.h:38
PortRange & WithMinRange(int value)
Definition PortRange.h:43
Aws::Utils::Json::JsonValue JsonValue