AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
LocalPortDetails.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
29 public:
30 AWS_GUARDDUTY_API LocalPortDetails() = default;
31 AWS_GUARDDUTY_API LocalPortDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_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 LocalPortDetails& 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>
63 LocalPortDetails& WithPortName(PortNameT&& value) {
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 GuardDuty
78} // namespace Aws
AWS_GUARDDUTY_API LocalPortDetails()=default
AWS_GUARDDUTY_API LocalPortDetails(Aws::Utils::Json::JsonView jsonValue)
LocalPortDetails & WithPortName(PortNameT &&value)
LocalPortDetails & WithPort(int value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API LocalPortDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPortName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue