AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PortForwardingConfig.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/robomaker/model/PortMapping.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace RoboMaker
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ROBOMAKER_API PortForwardingConfig();
38 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<PortMapping>& GetPortMappings() const{ return m_portMappings; }
46 inline bool PortMappingsHasBeenSet() const { return m_portMappingsHasBeenSet; }
47 inline void SetPortMappings(const Aws::Vector<PortMapping>& value) { m_portMappingsHasBeenSet = true; m_portMappings = value; }
48 inline void SetPortMappings(Aws::Vector<PortMapping>&& value) { m_portMappingsHasBeenSet = true; m_portMappings = std::move(value); }
50 inline PortForwardingConfig& WithPortMappings(Aws::Vector<PortMapping>&& value) { SetPortMappings(std::move(value)); return *this;}
51 inline PortForwardingConfig& AddPortMappings(const PortMapping& value) { m_portMappingsHasBeenSet = true; m_portMappings.push_back(value); return *this; }
52 inline PortForwardingConfig& AddPortMappings(PortMapping&& value) { m_portMappingsHasBeenSet = true; m_portMappings.push_back(std::move(value)); return *this; }
54 private:
55
56 Aws::Vector<PortMapping> m_portMappings;
57 bool m_portMappingsHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace RoboMaker
62} // namespace Aws
void SetPortMappings(Aws::Vector< PortMapping > &&value)
PortForwardingConfig & AddPortMappings(PortMapping &&value)
const Aws::Vector< PortMapping > & GetPortMappings() const
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
PortForwardingConfig & WithPortMappings(Aws::Vector< PortMapping > &&value)
PortForwardingConfig & AddPortMappings(const PortMapping &value)
AWS_ROBOMAKER_API PortForwardingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ROBOMAKER_API PortForwardingConfig(Aws::Utils::Json::JsonView jsonValue)
PortForwardingConfig & WithPortMappings(const Aws::Vector< PortMapping > &value)
void SetPortMappings(const Aws::Vector< PortMapping > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue