/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about two target groups and how traffic is routed during an
* Amazon ECS deployment. An optional test traffic route can be specified.
* See Also:
AWS
* API Reference
One pair of target groups. One is associated with the original task set. The * second is associated with the task set that serves traffic after the deployment * is complete.
*/ inline const Aws::VectorOne pair of target groups. One is associated with the original task set. The * second is associated with the task set that serves traffic after the deployment * is complete.
*/ inline bool TargetGroupsHasBeenSet() const { return m_targetGroupsHasBeenSet; } /** *One pair of target groups. One is associated with the original task set. The * second is associated with the task set that serves traffic after the deployment * is complete.
*/ inline void SetTargetGroups(const Aws::VectorOne pair of target groups. One is associated with the original task set. The * second is associated with the task set that serves traffic after the deployment * is complete.
*/ inline void SetTargetGroups(Aws::VectorOne pair of target groups. One is associated with the original task set. The * second is associated with the task set that serves traffic after the deployment * is complete.
*/ inline TargetGroupPairInfo& WithTargetGroups(const Aws::VectorOne pair of target groups. One is associated with the original task set. The * second is associated with the task set that serves traffic after the deployment * is complete.
*/ inline TargetGroupPairInfo& WithTargetGroups(Aws::VectorOne pair of target groups. One is associated with the original task set. The * second is associated with the task set that serves traffic after the deployment * is complete.
*/ inline TargetGroupPairInfo& AddTargetGroups(const TargetGroupInfo& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(value); return *this; } /** *One pair of target groups. One is associated with the original task set. The * second is associated with the task set that serves traffic after the deployment * is complete.
*/ inline TargetGroupPairInfo& AddTargetGroups(TargetGroupInfo&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.push_back(std::move(value)); return *this; } /** *The path used by a load balancer to route production traffic when an Amazon * ECS deployment is complete.
*/ inline const TrafficRoute& GetProdTrafficRoute() const{ return m_prodTrafficRoute; } /** *The path used by a load balancer to route production traffic when an Amazon * ECS deployment is complete.
*/ inline bool ProdTrafficRouteHasBeenSet() const { return m_prodTrafficRouteHasBeenSet; } /** *The path used by a load balancer to route production traffic when an Amazon * ECS deployment is complete.
*/ inline void SetProdTrafficRoute(const TrafficRoute& value) { m_prodTrafficRouteHasBeenSet = true; m_prodTrafficRoute = value; } /** *The path used by a load balancer to route production traffic when an Amazon * ECS deployment is complete.
*/ inline void SetProdTrafficRoute(TrafficRoute&& value) { m_prodTrafficRouteHasBeenSet = true; m_prodTrafficRoute = std::move(value); } /** *The path used by a load balancer to route production traffic when an Amazon * ECS deployment is complete.
*/ inline TargetGroupPairInfo& WithProdTrafficRoute(const TrafficRoute& value) { SetProdTrafficRoute(value); return *this;} /** *The path used by a load balancer to route production traffic when an Amazon * ECS deployment is complete.
*/ inline TargetGroupPairInfo& WithProdTrafficRoute(TrafficRoute&& value) { SetProdTrafficRoute(std::move(value)); return *this;} /** *An optional path used by a load balancer to route test traffic after an * Amazon ECS deployment. Validation can occur while test traffic is served during * a deployment.
*/ inline const TrafficRoute& GetTestTrafficRoute() const{ return m_testTrafficRoute; } /** *An optional path used by a load balancer to route test traffic after an * Amazon ECS deployment. Validation can occur while test traffic is served during * a deployment.
*/ inline bool TestTrafficRouteHasBeenSet() const { return m_testTrafficRouteHasBeenSet; } /** *An optional path used by a load balancer to route test traffic after an * Amazon ECS deployment. Validation can occur while test traffic is served during * a deployment.
*/ inline void SetTestTrafficRoute(const TrafficRoute& value) { m_testTrafficRouteHasBeenSet = true; m_testTrafficRoute = value; } /** *An optional path used by a load balancer to route test traffic after an * Amazon ECS deployment. Validation can occur while test traffic is served during * a deployment.
*/ inline void SetTestTrafficRoute(TrafficRoute&& value) { m_testTrafficRouteHasBeenSet = true; m_testTrafficRoute = std::move(value); } /** *An optional path used by a load balancer to route test traffic after an * Amazon ECS deployment. Validation can occur while test traffic is served during * a deployment.
*/ inline TargetGroupPairInfo& WithTestTrafficRoute(const TrafficRoute& value) { SetTestTrafficRoute(value); return *this;} /** *An optional path used by a load balancer to route test traffic after an * Amazon ECS deployment. Validation can occur while test traffic is served during * a deployment.
*/ inline TargetGroupPairInfo& WithTestTrafficRoute(TrafficRoute&& value) { SetTestTrafficRoute(std::move(value)); return *this;} private: Aws::Vector