AWS SDK for C++  1.9.155
AWS SDK for C++
NetworkBinding.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECS
23 {
24 namespace Model
25 {
26 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetBindIP() const{ return m_bindIP; }
49 
53  inline bool BindIPHasBeenSet() const { return m_bindIPHasBeenSet; }
54 
58  inline void SetBindIP(const Aws::String& value) { m_bindIPHasBeenSet = true; m_bindIP = value; }
59 
63  inline void SetBindIP(Aws::String&& value) { m_bindIPHasBeenSet = true; m_bindIP = std::move(value); }
64 
68  inline void SetBindIP(const char* value) { m_bindIPHasBeenSet = true; m_bindIP.assign(value); }
69 
73  inline NetworkBinding& WithBindIP(const Aws::String& value) { SetBindIP(value); return *this;}
74 
78  inline NetworkBinding& WithBindIP(Aws::String&& value) { SetBindIP(std::move(value)); return *this;}
79 
83  inline NetworkBinding& WithBindIP(const char* value) { SetBindIP(value); return *this;}
84 
85 
89  inline int GetContainerPort() const{ return m_containerPort; }
90 
94  inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
95 
99  inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
100 
104  inline NetworkBinding& WithContainerPort(int value) { SetContainerPort(value); return *this;}
105 
106 
110  inline int GetHostPort() const{ return m_hostPort; }
111 
115  inline bool HostPortHasBeenSet() const { return m_hostPortHasBeenSet; }
116 
120  inline void SetHostPort(int value) { m_hostPortHasBeenSet = true; m_hostPort = value; }
121 
125  inline NetworkBinding& WithHostPort(int value) { SetHostPort(value); return *this;}
126 
127 
131  inline const TransportProtocol& GetProtocol() const{ return m_protocol; }
132 
136  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
137 
141  inline void SetProtocol(const TransportProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
142 
146  inline void SetProtocol(TransportProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
147 
151  inline NetworkBinding& WithProtocol(const TransportProtocol& value) { SetProtocol(value); return *this;}
152 
156  inline NetworkBinding& WithProtocol(TransportProtocol&& value) { SetProtocol(std::move(value)); return *this;}
157 
158  private:
159 
160  Aws::String m_bindIP;
161  bool m_bindIPHasBeenSet;
162 
163  int m_containerPort;
164  bool m_containerPortHasBeenSet;
165 
166  int m_hostPort;
167  bool m_hostPortHasBeenSet;
168 
169  TransportProtocol m_protocol;
170  bool m_protocolHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace ECS
175 } // namespace Aws
Aws::ECS::Model::NetworkBinding::SetHostPort
void SetHostPort(int value)
Definition: NetworkBinding.h:120
Aws::ECS::Model::NetworkBinding::GetHostPort
int GetHostPort() const
Definition: NetworkBinding.h:110
Aws::ECS::Model::TransportProtocol
TransportProtocol
Definition: TransportProtocol.h:17
Aws::ECS::Model::NetworkBinding::NetworkBinding
NetworkBinding()
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::NetworkBinding::GetBindIP
const Aws::String & GetBindIP() const
Definition: NetworkBinding.h:48
Aws::ECS::Model::NetworkBinding::GetContainerPort
int GetContainerPort() const
Definition: NetworkBinding.h:89
Aws::ECS::Model::NetworkBinding::WithContainerPort
NetworkBinding & WithContainerPort(int value)
Definition: NetworkBinding.h:104
Aws::ECS::Model::NetworkBinding::SetBindIP
void SetBindIP(Aws::String &&value)
Definition: NetworkBinding.h:63
Aws::ECS::Model::NetworkBinding::NetworkBinding
NetworkBinding(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::NetworkBinding::SetProtocol
void SetProtocol(const TransportProtocol &value)
Definition: NetworkBinding.h:141
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::NetworkBinding::HostPortHasBeenSet
bool HostPortHasBeenSet() const
Definition: NetworkBinding.h:115
Aws::ECS::Model::NetworkBinding::SetBindIP
void SetBindIP(const Aws::String &value)
Definition: NetworkBinding.h:58
Aws::ECS::Model::NetworkBinding::WithBindIP
NetworkBinding & WithBindIP(const Aws::String &value)
Definition: NetworkBinding.h:73
Aws::ECS::Model::NetworkBinding::ContainerPortHasBeenSet
bool ContainerPortHasBeenSet() const
Definition: NetworkBinding.h:94
Aws::ECS::Model::NetworkBinding::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::NetworkBinding::WithBindIP
NetworkBinding & WithBindIP(Aws::String &&value)
Definition: NetworkBinding.h:78
Aws::ECS::Model::NetworkBinding::WithBindIP
NetworkBinding & WithBindIP(const char *value)
Definition: NetworkBinding.h:83
Aws::ECS::Model::NetworkBinding::BindIPHasBeenSet
bool BindIPHasBeenSet() const
Definition: NetworkBinding.h:53
Aws::ECS::Model::NetworkBinding::SetProtocol
void SetProtocol(TransportProtocol &&value)
Definition: NetworkBinding.h:146
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::NetworkBinding::SetContainerPort
void SetContainerPort(int value)
Definition: NetworkBinding.h:99
Aws::ECS::Model::NetworkBinding::WithProtocol
NetworkBinding & WithProtocol(TransportProtocol &&value)
Definition: NetworkBinding.h:156
Aws::ECS::Model::NetworkBinding::GetProtocol
const TransportProtocol & GetProtocol() const
Definition: NetworkBinding.h:131
Aws::ECS::Model::NetworkBinding::WithProtocol
NetworkBinding & WithProtocol(const TransportProtocol &value)
Definition: NetworkBinding.h:151
Aws::ECS::Model::NetworkBinding::SetBindIP
void SetBindIP(const char *value)
Definition: NetworkBinding.h:68
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::NetworkBinding::operator=
NetworkBinding & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TransportProtocol.h
Aws::ECS::Model::NetworkBinding
Definition: NetworkBinding.h:37
ECS_EXPORTS.h
Aws::ECS::Model::NetworkBinding::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: NetworkBinding.h:136
Aws::ECS::Model::NetworkBinding::WithHostPort
NetworkBinding & WithHostPort(int value)
Definition: NetworkBinding.h:125