AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RemotePortDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
28 public:
29 AWS_GUARDDUTY_API RemotePortDetails() = default;
30 AWS_GUARDDUTY_API RemotePortDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline int GetPort() const { return m_port; }
39 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
40 inline void SetPort(int value) {
41 m_portHasBeenSet = true;
42 m_port = value;
43 }
44 inline RemotePortDetails& WithPort(int value) {
45 SetPort(value);
46 return *this;
47 }
49
51
54 inline const Aws::String& GetPortName() const { return m_portName; }
55 inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; }
56 template <typename PortNameT = Aws::String>
57 void SetPortName(PortNameT&& value) {
58 m_portNameHasBeenSet = true;
59 m_portName = std::forward<PortNameT>(value);
60 }
61 template <typename PortNameT = Aws::String>
62 RemotePortDetails& WithPortName(PortNameT&& value) {
63 SetPortName(std::forward<PortNameT>(value));
64 return *this;
65 }
67 private:
68 int m_port{0};
69
70 Aws::String m_portName;
71 bool m_portHasBeenSet = false;
72 bool m_portNameHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace GuardDuty
77} // namespace Aws
RemotePortDetails & WithPortName(PortNameT &&value)
AWS_GUARDDUTY_API RemotePortDetails(Aws::Utils::Json::JsonView jsonValue)
RemotePortDetails & WithPort(int value)
const Aws::String & GetPortName() const
AWS_GUARDDUTY_API RemotePortDetails()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API RemotePortDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue