AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PortRange.h
1
6#pragma once
7#include <aws/finspace/Finspace_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace finspace {
17namespace Model {
18
24class PortRange {
25 public:
26 AWS_FINSPACE_API PortRange() = default;
27 AWS_FINSPACE_API PortRange(Aws::Utils::Json::JsonView jsonValue);
28 AWS_FINSPACE_API PortRange& operator=(Aws::Utils::Json::JsonView jsonValue);
29 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline int GetFrom() const { return m_from; }
36 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
37 inline void SetFrom(int value) {
38 m_fromHasBeenSet = true;
39 m_from = value;
40 }
41 inline PortRange& WithFrom(int value) {
42 SetFrom(value);
43 return *this;
44 }
46
48
51 inline int GetTo() const { return m_to; }
52 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
53 inline void SetTo(int value) {
54 m_toHasBeenSet = true;
55 m_to = value;
56 }
57 inline PortRange& WithTo(int value) {
58 SetTo(value);
59 return *this;
60 }
62 private:
63 int m_from{0};
64
65 int m_to{0};
66 bool m_fromHasBeenSet = false;
67 bool m_toHasBeenSet = false;
68};
69
70} // namespace Model
71} // namespace finspace
72} // namespace Aws
AWS_FINSPACE_API PortRange()=default
PortRange & WithFrom(int value)
Definition PortRange.h:41
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:57
Aws::Utils::Json::JsonValue JsonValue