AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RemotePortDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_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 GuardDuty
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GUARDDUTY_API RemotePortDetails() = default;
35 AWS_GUARDDUTY_API RemotePortDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline int GetPort() const { return m_port; }
45 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
46 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
47 inline RemotePortDetails& WithPort(int value) { SetPort(value); return *this;}
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) { m_portNameHasBeenSet = true; m_portName = std::forward<PortNameT>(value); }
58 template<typename PortNameT = Aws::String>
59 RemotePortDetails& WithPortName(PortNameT&& value) { SetPortName(std::forward<PortNameT>(value)); return *this;}
61 private:
62
63 int m_port{0};
64 bool m_portHasBeenSet = false;
65
66 Aws::String m_portName;
67 bool m_portNameHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace GuardDuty
72} // 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