AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
PortRange.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SecurityHub {
17namespace Model {
18
24class PortRange {
25 public:
26 AWS_SECURITYHUB_API PortRange() = default;
27 AWS_SECURITYHUB_API PortRange(Aws::Utils::Json::JsonView jsonValue);
28 AWS_SECURITYHUB_API PortRange& operator=(Aws::Utils::Json::JsonView jsonValue);
29 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline int GetBegin() const { return m_begin; }
36 inline bool BeginHasBeenSet() const { return m_beginHasBeenSet; }
37 inline void SetBegin(int value) {
38 m_beginHasBeenSet = true;
39 m_begin = value;
40 }
41 inline PortRange& WithBegin(int value) {
42 SetBegin(value);
43 return *this;
44 }
46
48
51 inline int GetEnd() const { return m_end; }
52 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
53 inline void SetEnd(int value) {
54 m_endHasBeenSet = true;
55 m_end = value;
56 }
57 inline PortRange& WithEnd(int value) {
58 SetEnd(value);
59 return *this;
60 }
62 private:
63 int m_begin{0};
64
65 int m_end{0};
66 bool m_beginHasBeenSet = false;
67 bool m_endHasBeenSet = false;
68};
69
70} // namespace Model
71} // namespace SecurityHub
72} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
PortRange & WithBegin(int value)
Definition PortRange.h:41
AWS_SECURITYHUB_API PortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
PortRange & WithEnd(int value)
Definition PortRange.h:57
AWS_SECURITYHUB_API PortRange(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API PortRange()=default
Aws::Utils::Json::JsonValue JsonValue