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/inspector2/Inspector2_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 Inspector2
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_INSPECTOR2_API PortRange();
34 AWS_INSPECTOR2_API PortRange(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR2_API PortRange& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
43 inline int GetBegin() const{ return m_begin; }
44 inline bool BeginHasBeenSet() const { return m_beginHasBeenSet; }
45 inline void SetBegin(int value) { m_beginHasBeenSet = true; m_begin = value; }
46 inline PortRange& WithBegin(int value) { SetBegin(value); return *this;}
48
50
53 inline int GetEnd() const{ return m_end; }
54 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
55 inline void SetEnd(int value) { m_endHasBeenSet = true; m_end = value; }
56 inline PortRange& WithEnd(int value) { SetEnd(value); return *this;}
58 private:
59
60 int m_begin;
61 bool m_beginHasBeenSet = false;
62
63 int m_end;
64 bool m_endHasBeenSet = false;
65 };
66
67} // namespace Model
68} // namespace Inspector2
69} // namespace Aws
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API PortRange(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API PortRange()
PortRange & WithBegin(int value)
Definition PortRange.h:46
PortRange & WithEnd(int value)
Definition PortRange.h:56
AWS_INSPECTOR2_API PortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue