AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ActionRemotePortDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
29 public:
30 AWS_SECURITYHUB_API ActionRemotePortDetails() = default;
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetPort() const { return m_port; }
40 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
41 inline void SetPort(int value) {
42 m_portHasBeenSet = true;
43 m_port = value;
44 }
45 inline ActionRemotePortDetails& WithPort(int value) {
46 SetPort(value);
47 return *this;
48 }
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) {
59 m_portNameHasBeenSet = true;
60 m_portName = std::forward<PortNameT>(value);
61 }
62 template <typename PortNameT = Aws::String>
64 SetPortName(std::forward<PortNameT>(value));
65 return *this;
66 }
68 private:
69 int m_port{0};
70
71 Aws::String m_portName;
72 bool m_portHasBeenSet = false;
73 bool m_portNameHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace SecurityHub
78} // 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