AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LocalPortDetails.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
33 {
34 public:
35 AWS_GUARDDUTY_API LocalPortDetails();
36 AWS_GUARDDUTY_API LocalPortDetails(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetPort() const{ return m_port; }
46 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
47 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
48 inline LocalPortDetails& WithPort(int value) { SetPort(value); return *this;}
50
52
55 inline const Aws::String& GetPortName() const{ return m_portName; }
56 inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; }
57 inline void SetPortName(const Aws::String& value) { m_portNameHasBeenSet = true; m_portName = value; }
58 inline void SetPortName(Aws::String&& value) { m_portNameHasBeenSet = true; m_portName = std::move(value); }
59 inline void SetPortName(const char* value) { m_portNameHasBeenSet = true; m_portName.assign(value); }
60 inline LocalPortDetails& WithPortName(const Aws::String& value) { SetPortName(value); return *this;}
61 inline LocalPortDetails& WithPortName(Aws::String&& value) { SetPortName(std::move(value)); return *this;}
62 inline LocalPortDetails& WithPortName(const char* value) { SetPortName(value); return *this;}
64 private:
65
66 int m_port;
67 bool m_portHasBeenSet = false;
68
69 Aws::String m_portName;
70 bool m_portNameHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace GuardDuty
75} // namespace Aws
void SetPortName(const Aws::String &value)
LocalPortDetails & WithPortName(const char *value)
AWS_GUARDDUTY_API LocalPortDetails(Aws::Utils::Json::JsonView jsonValue)
LocalPortDetails & WithPortName(Aws::String &&value)
LocalPortDetails & WithPort(int value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
LocalPortDetails & WithPortName(const Aws::String &value)
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