AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ActionLocalPortDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_SECURITYHUB_API ActionLocalPortDetails() = default;
37 AWS_SECURITYHUB_API ActionLocalPortDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetPort() const { return m_port; }
47 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
48 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
49 inline ActionLocalPortDetails& WithPort(int value) { SetPort(value); return *this;}
51
53
56 inline const Aws::String& GetPortName() const { return m_portName; }
57 inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; }
58 template<typename PortNameT = Aws::String>
59 void SetPortName(PortNameT&& value) { m_portNameHasBeenSet = true; m_portName = std::forward<PortNameT>(value); }
60 template<typename PortNameT = Aws::String>
61 ActionLocalPortDetails& WithPortName(PortNameT&& value) { SetPortName(std::forward<PortNameT>(value)); return *this;}
63 private:
64
65 int m_port{0};
66 bool m_portHasBeenSet = false;
67
68 Aws::String m_portName;
69 bool m_portNameHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace SecurityHub
74} // namespace Aws
AWS_SECURITYHUB_API ActionLocalPortDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionLocalPortDetails & WithPortName(PortNameT &&value)
AWS_SECURITYHUB_API ActionLocalPortDetails()=default
AWS_SECURITYHUB_API ActionLocalPortDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue