/** * 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 IoTSecureTunneling { namespace Model { /** *

The destination configuration.

See Also:

AWS * API Reference

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

The name of the IoT thing to which you want to connect.

*/ inline const Aws::String& GetThingName() const{ return m_thingName; } /** *

The name of the IoT thing to which you want to connect.

*/ inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; } /** *

The name of the IoT thing to which you want to connect.

*/ inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; } /** *

The name of the IoT thing to which you want to connect.

*/ inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); } /** *

The name of the IoT thing to which you want to connect.

*/ inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); } /** *

The name of the IoT thing to which you want to connect.

*/ inline DestinationConfig& WithThingName(const Aws::String& value) { SetThingName(value); return *this;} /** *

The name of the IoT thing to which you want to connect.

*/ inline DestinationConfig& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;} /** *

The name of the IoT thing to which you want to connect.

*/ inline DestinationConfig& WithThingName(const char* value) { SetThingName(value); return *this;} /** *

A list of service names that identify the target application. The IoT client * running on the destination device reads this value and uses it to look up a port * or an IP address and a port. The IoT client instantiates the local proxy, which * uses this information to connect to the destination application.

*/ inline const Aws::Vector& GetServices() const{ return m_services; } /** *

A list of service names that identify the target application. The IoT client * running on the destination device reads this value and uses it to look up a port * or an IP address and a port. The IoT client instantiates the local proxy, which * uses this information to connect to the destination application.

*/ inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; } /** *

A list of service names that identify the target application. The IoT client * running on the destination device reads this value and uses it to look up a port * or an IP address and a port. The IoT client instantiates the local proxy, which * uses this information to connect to the destination application.

*/ inline void SetServices(const Aws::Vector& value) { m_servicesHasBeenSet = true; m_services = value; } /** *

A list of service names that identify the target application. The IoT client * running on the destination device reads this value and uses it to look up a port * or an IP address and a port. The IoT client instantiates the local proxy, which * uses this information to connect to the destination application.

*/ inline void SetServices(Aws::Vector&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); } /** *

A list of service names that identify the target application. The IoT client * running on the destination device reads this value and uses it to look up a port * or an IP address and a port. The IoT client instantiates the local proxy, which * uses this information to connect to the destination application.

*/ inline DestinationConfig& WithServices(const Aws::Vector& value) { SetServices(value); return *this;} /** *

A list of service names that identify the target application. The IoT client * running on the destination device reads this value and uses it to look up a port * or an IP address and a port. The IoT client instantiates the local proxy, which * uses this information to connect to the destination application.

*/ inline DestinationConfig& WithServices(Aws::Vector&& value) { SetServices(std::move(value)); return *this;} /** *

A list of service names that identify the target application. The IoT client * running on the destination device reads this value and uses it to look up a port * or an IP address and a port. The IoT client instantiates the local proxy, which * uses this information to connect to the destination application.

*/ inline DestinationConfig& AddServices(const Aws::String& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; } /** *

A list of service names that identify the target application. The IoT client * running on the destination device reads this value and uses it to look up a port * or an IP address and a port. The IoT client instantiates the local proxy, which * uses this information to connect to the destination application.

*/ inline DestinationConfig& AddServices(Aws::String&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; } /** *

A list of service names that identify the target application. The IoT client * running on the destination device reads this value and uses it to look up a port * or an IP address and a port. The IoT client instantiates the local proxy, which * uses this information to connect to the destination application.

*/ inline DestinationConfig& AddServices(const char* value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; } private: Aws::String m_thingName; bool m_thingNameHasBeenSet = false; Aws::Vector m_services; bool m_servicesHasBeenSet = false; }; } // namespace Model } // namespace IoTSecureTunneling } // namespace Aws