AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PortRange.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EMR
20{
21namespace Model
22{
23
32 {
33 public:
34 AWS_EMR_API PortRange();
35 AWS_EMR_API PortRange(Aws::Utils::Json::JsonView jsonValue);
38
39
41
44 inline int GetMinRange() const{ return m_minRange; }
45 inline bool MinRangeHasBeenSet() const { return m_minRangeHasBeenSet; }
46 inline void SetMinRange(int value) { m_minRangeHasBeenSet = true; m_minRange = value; }
47 inline PortRange& WithMinRange(int value) { SetMinRange(value); return *this;}
49
51
54 inline int GetMaxRange() const{ return m_maxRange; }
55 inline bool MaxRangeHasBeenSet() const { return m_maxRangeHasBeenSet; }
56 inline void SetMaxRange(int value) { m_maxRangeHasBeenSet = true; m_maxRange = value; }
57 inline PortRange& WithMaxRange(int value) { SetMaxRange(value); return *this;}
59 private:
60
61 int m_minRange;
62 bool m_minRangeHasBeenSet = false;
63
64 int m_maxRange;
65 bool m_maxRangeHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace EMR
70} // namespace Aws
void SetMinRange(int value)
Definition PortRange.h:46
void SetMaxRange(int value)
Definition PortRange.h:56
AWS_EMR_API PortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
bool MaxRangeHasBeenSet() const
Definition PortRange.h:55
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:57
bool MinRangeHasBeenSet() const
Definition PortRange.h:45
PortRange & WithMinRange(int value)
Definition PortRange.h:47
Aws::Utils::Json::JsonValue JsonValue