/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace RoboMaker { namespace Model { /** *

Configuration information for port forwarding.

See Also:

AWS * API Reference

*/ class PortForwardingConfig { public: AWS_ROBOMAKER_API PortForwardingConfig(); AWS_ROBOMAKER_API PortForwardingConfig(Aws::Utils::Json::JsonView jsonValue); AWS_ROBOMAKER_API PortForwardingConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The port mappings for the configuration.

*/ inline const Aws::Vector& GetPortMappings() const{ return m_portMappings; } /** *

The port mappings for the configuration.

*/ inline bool PortMappingsHasBeenSet() const { return m_portMappingsHasBeenSet; } /** *

The port mappings for the configuration.

*/ inline void SetPortMappings(const Aws::Vector& value) { m_portMappingsHasBeenSet = true; m_portMappings = value; } /** *

The port mappings for the configuration.

*/ inline void SetPortMappings(Aws::Vector&& value) { m_portMappingsHasBeenSet = true; m_portMappings = std::move(value); } /** *

The port mappings for the configuration.

*/ inline PortForwardingConfig& WithPortMappings(const Aws::Vector& value) { SetPortMappings(value); return *this;} /** *

The port mappings for the configuration.

*/ inline PortForwardingConfig& WithPortMappings(Aws::Vector&& value) { SetPortMappings(std::move(value)); return *this;} /** *

The port mappings for the configuration.

*/ inline PortForwardingConfig& AddPortMappings(const PortMapping& value) { m_portMappingsHasBeenSet = true; m_portMappings.push_back(value); return *this; } /** *

The port mappings for the configuration.

*/ inline PortForwardingConfig& AddPortMappings(PortMapping&& value) { m_portMappingsHasBeenSet = true; m_portMappings.push_back(std::move(value)); return *this; } private: Aws::Vector m_portMappings; bool m_portMappingsHasBeenSet = false; }; } // namespace Model } // namespace RoboMaker } // namespace Aws