AWS SDK for C++  1.9.107
AWS SDK for C++
LocalPortDetails.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GuardDuty
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline int GetPort() const{ return m_port; }
45 
49  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
50 
54  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
55 
59  inline LocalPortDetails& WithPort(int value) { SetPort(value); return *this;}
60 
61 
65  inline const Aws::String& GetPortName() const{ return m_portName; }
66 
70  inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; }
71 
75  inline void SetPortName(const Aws::String& value) { m_portNameHasBeenSet = true; m_portName = value; }
76 
80  inline void SetPortName(Aws::String&& value) { m_portNameHasBeenSet = true; m_portName = std::move(value); }
81 
85  inline void SetPortName(const char* value) { m_portNameHasBeenSet = true; m_portName.assign(value); }
86 
90  inline LocalPortDetails& WithPortName(const Aws::String& value) { SetPortName(value); return *this;}
91 
95  inline LocalPortDetails& WithPortName(Aws::String&& value) { SetPortName(std::move(value)); return *this;}
96 
100  inline LocalPortDetails& WithPortName(const char* value) { SetPortName(value); return *this;}
101 
102  private:
103 
104  int m_port;
105  bool m_portHasBeenSet;
106 
107  Aws::String m_portName;
108  bool m_portNameHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace GuardDuty
113 } // namespace Aws
Aws::GuardDuty::Model::LocalPortDetails::PortHasBeenSet
bool PortHasBeenSet() const
Definition: LocalPortDetails.h:49
Aws::GuardDuty::Model::LocalPortDetails::SetPortName
void SetPortName(Aws::String &&value)
Definition: LocalPortDetails.h:80
Aws::GuardDuty::Model::LocalPortDetails::WithPort
LocalPortDetails & WithPort(int value)
Definition: LocalPortDetails.h:59
Aws::GuardDuty::Model::LocalPortDetails::WithPortName
LocalPortDetails & WithPortName(const Aws::String &value)
Definition: LocalPortDetails.h:90
Aws::GuardDuty::Model::LocalPortDetails::SetPortName
void SetPortName(const Aws::String &value)
Definition: LocalPortDetails.h:75
Aws::GuardDuty::Model::LocalPortDetails
Definition: LocalPortDetails.h:33
Aws::GuardDuty::Model::LocalPortDetails::WithPortName
LocalPortDetails & WithPortName(const char *value)
Definition: LocalPortDetails.h:100
Aws::GuardDuty::Model::LocalPortDetails::operator=
LocalPortDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::LocalPortDetails::WithPortName
LocalPortDetails & WithPortName(Aws::String &&value)
Definition: LocalPortDetails.h:95
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::LocalPortDetails::LocalPortDetails
LocalPortDetails()
Aws::GuardDuty::Model::LocalPortDetails::PortNameHasBeenSet
bool PortNameHasBeenSet() const
Definition: LocalPortDetails.h:70
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::LocalPortDetails::LocalPortDetails
LocalPortDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::LocalPortDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::LocalPortDetails::SetPort
void SetPort(int value)
Definition: LocalPortDetails.h:54
Aws::GuardDuty::Model::LocalPortDetails::SetPortName
void SetPortName(const char *value)
Definition: LocalPortDetails.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::LocalPortDetails::GetPort
int GetPort() const
Definition: LocalPortDetails.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::LocalPortDetails::GetPortName
const Aws::String & GetPortName() const
Definition: LocalPortDetails.h:65