AWS SDK for C++  1.9.19
AWS SDK for C++
PortForwardingConfig.h
Go to the documentation of this file.
1 
6 #pragma once
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 RoboMaker
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::Vector<PortMapping>& GetPortMappings() const{ return m_portMappings; }
45 
49  inline bool PortMappingsHasBeenSet() const { return m_portMappingsHasBeenSet; }
50 
54  inline void SetPortMappings(const Aws::Vector<PortMapping>& value) { m_portMappingsHasBeenSet = true; m_portMappings = value; }
55 
59  inline void SetPortMappings(Aws::Vector<PortMapping>&& value) { m_portMappingsHasBeenSet = true; m_portMappings = std::move(value); }
60 
64  inline PortForwardingConfig& WithPortMappings(const Aws::Vector<PortMapping>& value) { SetPortMappings(value); return *this;}
65 
69  inline PortForwardingConfig& WithPortMappings(Aws::Vector<PortMapping>&& value) { SetPortMappings(std::move(value)); return *this;}
70 
74  inline PortForwardingConfig& AddPortMappings(const PortMapping& value) { m_portMappingsHasBeenSet = true; m_portMappings.push_back(value); return *this; }
75 
79  inline PortForwardingConfig& AddPortMappings(PortMapping&& value) { m_portMappingsHasBeenSet = true; m_portMappings.push_back(std::move(value)); return *this; }
80 
81  private:
82 
83  Aws::Vector<PortMapping> m_portMappings;
84  bool m_portMappingsHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace RoboMaker
89 } // namespace Aws
PortMapping.h
Aws::RoboMaker::Model::PortForwardingConfig::WithPortMappings
PortForwardingConfig & WithPortMappings(const Aws::Vector< PortMapping > &value)
Definition: PortForwardingConfig.h:64
Aws::RoboMaker::Model::PortForwardingConfig::SetPortMappings
void SetPortMappings(const Aws::Vector< PortMapping > &value)
Definition: PortForwardingConfig.h:54
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RoboMaker::Model::PortForwardingConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWSVector.h
Aws::RoboMaker::Model::PortForwardingConfig::GetPortMappings
const Aws::Vector< PortMapping > & GetPortMappings() const
Definition: PortForwardingConfig.h:44
Aws::RoboMaker::Model::PortForwardingConfig::PortForwardingConfig
PortForwardingConfig()
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::PortForwardingConfig::PortForwardingConfig
PortForwardingConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::PortForwardingConfig::operator=
PortForwardingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::PortForwardingConfig
Definition: PortForwardingConfig.h:33
Aws::RoboMaker::Model::PortForwardingConfig::PortMappingsHasBeenSet
bool PortMappingsHasBeenSet() const
Definition: PortForwardingConfig.h:49
Aws::RoboMaker::Model::PortMapping
Definition: PortMapping.h:30
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RoboMaker::Model::PortForwardingConfig::WithPortMappings
PortForwardingConfig & WithPortMappings(Aws::Vector< PortMapping > &&value)
Definition: PortForwardingConfig.h:69
Aws::RoboMaker::Model::PortForwardingConfig::SetPortMappings
void SetPortMappings(Aws::Vector< PortMapping > &&value)
Definition: PortForwardingConfig.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::PortForwardingConfig::AddPortMappings
PortForwardingConfig & AddPortMappings(const PortMapping &value)
Definition: PortForwardingConfig.h:74
Aws::RoboMaker::Model::PortForwardingConfig::AddPortMappings
PortForwardingConfig & AddPortMappings(PortMapping &&value)
Definition: PortForwardingConfig.h:79