AWS SDK for C++  1.9.19
AWS SDK for C++
RemotePortDetails.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 
32  {
33  public:
38 
39 
43  inline int GetPort() const{ return m_port; }
44 
48  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
49 
53  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
54 
58  inline RemotePortDetails& WithPort(int value) { SetPort(value); return *this;}
59 
60 
64  inline const Aws::String& GetPortName() const{ return m_portName; }
65 
69  inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; }
70 
74  inline void SetPortName(const Aws::String& value) { m_portNameHasBeenSet = true; m_portName = value; }
75 
79  inline void SetPortName(Aws::String&& value) { m_portNameHasBeenSet = true; m_portName = std::move(value); }
80 
84  inline void SetPortName(const char* value) { m_portNameHasBeenSet = true; m_portName.assign(value); }
85 
89  inline RemotePortDetails& WithPortName(const Aws::String& value) { SetPortName(value); return *this;}
90 
94  inline RemotePortDetails& WithPortName(Aws::String&& value) { SetPortName(std::move(value)); return *this;}
95 
99  inline RemotePortDetails& WithPortName(const char* value) { SetPortName(value); return *this;}
100 
101  private:
102 
103  int m_port;
104  bool m_portHasBeenSet;
105 
106  Aws::String m_portName;
107  bool m_portNameHasBeenSet;
108  };
109 
110 } // namespace Model
111 } // namespace GuardDuty
112 } // namespace Aws
Aws::GuardDuty::Model::RemotePortDetails::RemotePortDetails
RemotePortDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::RemotePortDetails::WithPortName
RemotePortDetails & WithPortName(const Aws::String &value)
Definition: RemotePortDetails.h:89
Aws::GuardDuty::Model::RemotePortDetails::WithPortName
RemotePortDetails & WithPortName(const char *value)
Definition: RemotePortDetails.h:99
Aws::GuardDuty::Model::RemotePortDetails::GetPort
int GetPort() const
Definition: RemotePortDetails.h:43
Aws::GuardDuty::Model::RemotePortDetails::SetPort
void SetPort(int value)
Definition: RemotePortDetails.h:53
Aws::GuardDuty::Model::RemotePortDetails::SetPortName
void SetPortName(const char *value)
Definition: RemotePortDetails.h:84
Aws::GuardDuty::Model::RemotePortDetails::WithPort
RemotePortDetails & WithPort(int value)
Definition: RemotePortDetails.h:58
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::RemotePortDetails
Definition: RemotePortDetails.h:32
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::RemotePortDetails::SetPortName
void SetPortName(Aws::String &&value)
Definition: RemotePortDetails.h:79
Aws::GuardDuty::Model::RemotePortDetails::RemotePortDetails
RemotePortDetails()
Aws::GuardDuty::Model::RemotePortDetails::SetPortName
void SetPortName(const Aws::String &value)
Definition: RemotePortDetails.h:74
Aws::GuardDuty::Model::RemotePortDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::RemotePortDetails::PortNameHasBeenSet
bool PortNameHasBeenSet() const
Definition: RemotePortDetails.h:69
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::RemotePortDetails::GetPortName
const Aws::String & GetPortName() const
Definition: RemotePortDetails.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::RemotePortDetails::operator=
RemotePortDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::RemotePortDetails::PortHasBeenSet
bool PortHasBeenSet() const
Definition: RemotePortDetails.h:48
Aws::GuardDuty::Model::RemotePortDetails::WithPortName
RemotePortDetails & WithPortName(Aws::String &&value)
Definition: RemotePortDetails.h:94