AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ActionRemotePortDetails.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
33 {
34 public:
35 AWS_SECURITYHUB_API ActionRemotePortDetails() = default;
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetPort() const { return m_port; }
46 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
47 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
48 inline ActionRemotePortDetails& WithPort(int value) { SetPort(value); return *this;}
50
52
55 inline const Aws::String& GetPortName() const { return m_portName; }
56 inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; }
57 template<typename PortNameT = Aws::String>
58 void SetPortName(PortNameT&& value) { m_portNameHasBeenSet = true; m_portName = std::forward<PortNameT>(value); }
59 template<typename PortNameT = Aws::String>
60 ActionRemotePortDetails& WithPortName(PortNameT&& value) { SetPortName(std::forward<PortNameT>(value)); return *this;}
62 private:
63
64 int m_port{0};
65 bool m_portHasBeenSet = false;
66
67 Aws::String m_portName;
68 bool m_portNameHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace SecurityHub
73} // namespace Aws
ActionRemotePortDetails & WithPortName(PortNameT &&value)
AWS_SECURITYHUB_API ActionRemotePortDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API ActionRemotePortDetails()=default
AWS_SECURITYHUB_API ActionRemotePortDetails(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