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/securityhub/SecurityHub_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 SecurityHub
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_SECURITYHUB_API PortRange();
33 AWS_SECURITYHUB_API PortRange(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API PortRange& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
37
39
42 inline int GetBegin() const{ return m_begin; }
43 inline bool BeginHasBeenSet() const { return m_beginHasBeenSet; }
44 inline void SetBegin(int value) { m_beginHasBeenSet = true; m_begin = value; }
45 inline PortRange& WithBegin(int value) { SetBegin(value); return *this;}
47
49
52 inline int GetEnd() const{ return m_end; }
53 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
54 inline void SetEnd(int value) { m_endHasBeenSet = true; m_end = value; }
55 inline PortRange& WithEnd(int value) { SetEnd(value); return *this;}
57 private:
58
59 int m_begin;
60 bool m_beginHasBeenSet = false;
61
62 int m_end;
63 bool m_endHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace SecurityHub
68} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
PortRange & WithBegin(int value)
Definition PortRange.h:45
AWS_SECURITYHUB_API PortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
PortRange & WithEnd(int value)
Definition PortRange.h:55
AWS_SECURITYHUB_API PortRange(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API PortRange()
Aws::Utils::Json::JsonValue JsonValue