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

Information about a listener. The listener contains the path used to route * traffic that is received from the load balancer to a target group. *

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of one listener. The listener identifies the * route between a target group and a load balancer. This is an array of strings * with a maximum size of one.

*/ inline const Aws::Vector& GetListenerArns() const{ return m_listenerArns; } /** *

The Amazon Resource Name (ARN) of one listener. The listener identifies the * route between a target group and a load balancer. This is an array of strings * with a maximum size of one.

*/ inline bool ListenerArnsHasBeenSet() const { return m_listenerArnsHasBeenSet; } /** *

The Amazon Resource Name (ARN) of one listener. The listener identifies the * route between a target group and a load balancer. This is an array of strings * with a maximum size of one.

*/ inline void SetListenerArns(const Aws::Vector& value) { m_listenerArnsHasBeenSet = true; m_listenerArns = value; } /** *

The Amazon Resource Name (ARN) of one listener. The listener identifies the * route between a target group and a load balancer. This is an array of strings * with a maximum size of one.

*/ inline void SetListenerArns(Aws::Vector&& value) { m_listenerArnsHasBeenSet = true; m_listenerArns = std::move(value); } /** *

The Amazon Resource Name (ARN) of one listener. The listener identifies the * route between a target group and a load balancer. This is an array of strings * with a maximum size of one.

*/ inline TrafficRoute& WithListenerArns(const Aws::Vector& value) { SetListenerArns(value); return *this;} /** *

The Amazon Resource Name (ARN) of one listener. The listener identifies the * route between a target group and a load balancer. This is an array of strings * with a maximum size of one.

*/ inline TrafficRoute& WithListenerArns(Aws::Vector&& value) { SetListenerArns(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of one listener. The listener identifies the * route between a target group and a load balancer. This is an array of strings * with a maximum size of one.

*/ inline TrafficRoute& AddListenerArns(const Aws::String& value) { m_listenerArnsHasBeenSet = true; m_listenerArns.push_back(value); return *this; } /** *

The Amazon Resource Name (ARN) of one listener. The listener identifies the * route between a target group and a load balancer. This is an array of strings * with a maximum size of one.

*/ inline TrafficRoute& AddListenerArns(Aws::String&& value) { m_listenerArnsHasBeenSet = true; m_listenerArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of one listener. The listener identifies the * route between a target group and a load balancer. This is an array of strings * with a maximum size of one.

*/ inline TrafficRoute& AddListenerArns(const char* value) { m_listenerArnsHasBeenSet = true; m_listenerArns.push_back(value); return *this; } private: Aws::Vector m_listenerArns; bool m_listenerArnsHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws