AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPortName(const Aws::String& value) { m_portNameHasBeenSet = true; m_portName = value; }
59 inline void SetPortName(Aws::String&& value) { m_portNameHasBeenSet = true; m_portName = std::move(value); }
60 inline void SetPortName(const char* value) { m_portNameHasBeenSet = true; m_portName.assign(value); }
61 inline ActionLocalPortDetails& WithPortName(const Aws::String& value) { SetPortName(value); return *this;}
62 inline ActionLocalPortDetails& WithPortName(Aws::String&& value) { SetPortName(std::move(value)); return *this;}
63 inline ActionLocalPortDetails& WithPortName(const char* value) { SetPortName(value); return *this;}
65 private:
66
67 int m_port;
68 bool m_portHasBeenSet = false;
69
70 Aws::String m_portName;
71 bool m_portNameHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SecurityHub
76} // namespace Aws
ActionLocalPortDetails & WithPortName(const char *value)
AWS_SECURITYHUB_API ActionLocalPortDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionLocalPortDetails & WithPortName(const Aws::String &value)
AWS_SECURITYHUB_API ActionLocalPortDetails(Aws::Utils::Json::JsonView jsonValue)
ActionLocalPortDetails & WithPortName(Aws::String &&value)
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