AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PortRangeFromTo.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 PortRangeFromTo();
33 AWS_SECURITYHUB_API PortRangeFromTo(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API PortRangeFromTo& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_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 PortRangeFromTo& 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 PortRangeFromTo& 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 SecurityHub
68} // 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)
PortRangeFromTo & WithTo(int value)
PortRangeFromTo & WithFrom(int value)
Aws::Utils::Json::JsonValue JsonValue