AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ActionLocalPortDetails.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
30 public:
31 AWS_SECURITYHUB_API ActionLocalPortDetails() = default;
32 AWS_SECURITYHUB_API ActionLocalPortDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetPort() const { return m_port; }
41 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
42 inline void SetPort(int value) {
43 m_portHasBeenSet = true;
44 m_port = value;
45 }
46 inline ActionLocalPortDetails& WithPort(int value) {
47 SetPort(value);
48 return *this;
49 }
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) {
60 m_portNameHasBeenSet = true;
61 m_portName = std::forward<PortNameT>(value);
62 }
63 template <typename PortNameT = Aws::String>
65 SetPortName(std::forward<PortNameT>(value));
66 return *this;
67 }
69 private:
70 int m_port{0};
71
72 Aws::String m_portName;
73 bool m_portHasBeenSet = false;
74 bool m_portNameHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SecurityHub
79} // 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