AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PortRangeFromTo.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
25 public:
26 AWS_SECURITYHUB_API PortRangeFromTo() = default;
27 AWS_SECURITYHUB_API PortRangeFromTo(Aws::Utils::Json::JsonView jsonValue);
28 AWS_SECURITYHUB_API PortRangeFromTo& operator=(Aws::Utils::Json::JsonView jsonValue);
29 AWS_SECURITYHUB_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 PortRangeFromTo& 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 PortRangeFromTo& 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 SecurityHub
72} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API PortRangeFromTo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API PortRangeFromTo(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API PortRangeFromTo()=default
PortRangeFromTo & WithTo(int value)
PortRangeFromTo & WithFrom(int value)
Aws::Utils::Json::JsonValue JsonValue