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

An object that represents the specification of a virtual * router.

See Also:

AWS * API Reference

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

The listeners that the virtual router is expected to receive inbound traffic * from. You can specify one listener.

*/ inline const Aws::Vector& GetListeners() const{ return m_listeners; } /** *

The listeners that the virtual router is expected to receive inbound traffic * from. You can specify one listener.

*/ inline bool ListenersHasBeenSet() const { return m_listenersHasBeenSet; } /** *

The listeners that the virtual router is expected to receive inbound traffic * from. You can specify one listener.

*/ inline void SetListeners(const Aws::Vector& value) { m_listenersHasBeenSet = true; m_listeners = value; } /** *

The listeners that the virtual router is expected to receive inbound traffic * from. You can specify one listener.

*/ inline void SetListeners(Aws::Vector&& value) { m_listenersHasBeenSet = true; m_listeners = std::move(value); } /** *

The listeners that the virtual router is expected to receive inbound traffic * from. You can specify one listener.

*/ inline VirtualRouterSpec& WithListeners(const Aws::Vector& value) { SetListeners(value); return *this;} /** *

The listeners that the virtual router is expected to receive inbound traffic * from. You can specify one listener.

*/ inline VirtualRouterSpec& WithListeners(Aws::Vector&& value) { SetListeners(std::move(value)); return *this;} /** *

The listeners that the virtual router is expected to receive inbound traffic * from. You can specify one listener.

*/ inline VirtualRouterSpec& AddListeners(const VirtualRouterListener& value) { m_listenersHasBeenSet = true; m_listeners.push_back(value); return *this; } /** *

The listeners that the virtual router is expected to receive inbound traffic * from. You can specify one listener.

*/ inline VirtualRouterSpec& AddListeners(VirtualRouterListener&& value) { m_listenersHasBeenSet = true; m_listeners.push_back(std::move(value)); return *this; } private: Aws::Vector m_listeners; bool m_listenersHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws