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/finspace/Finspace_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 finspace
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_FINSPACE_API PortRange();
33 AWS_FINSPACE_API PortRange(Aws::Utils::Json::JsonView jsonValue);
34 AWS_FINSPACE_API PortRange& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
37
39
42 inline int GetFrom() const{ return m_from; }
43 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
44 inline void SetFrom(int value) { m_fromHasBeenSet = true; m_from = value; }
45 inline PortRange& WithFrom(int value) { SetFrom(value); return *this;}
47
49
52 inline int GetTo() const{ return m_to; }
53 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
54 inline void SetTo(int value) { m_toHasBeenSet = true; m_to = value; }
55 inline PortRange& WithTo(int value) { SetTo(value); return *this;}
57 private:
58
59 int m_from;
60 bool m_fromHasBeenSet = false;
61
62 int m_to;
63 bool m_toHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace finspace
68} // namespace Aws
AWS_FINSPACE_API PortRange()
PortRange & WithFrom(int value)
Definition PortRange.h:45
AWS_FINSPACE_API PortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FINSPACE_API PortRange(Aws::Utils::Json::JsonView jsonValue)
PortRange & WithTo(int value)
Definition PortRange.h:55
Aws::Utils::Json::JsonValue JsonValue