@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetGroupPairInfo extends Object implements Serializable, Cloneable, StructuredPojo
Information about two target groups and how traffic routes during an Amazon ECS deployment. An optional test traffic route can be specified.
Constructor and Description |
---|
TargetGroupPairInfo() |
Modifier and Type | Method and Description |
---|---|
TargetGroupPairInfo |
clone() |
boolean |
equals(Object obj) |
TrafficRoute |
getProdTrafficRoute()
The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.
|
List<TargetGroupInfo> |
getTargetGroups()
One pair of target groups.
|
TrafficRoute |
getTestTrafficRoute()
An optional path used by a load balancer to route test traffic after an Amazon ECS deployment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setProdTrafficRoute(TrafficRoute prodTrafficRoute)
The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.
|
void |
setTargetGroups(Collection<TargetGroupInfo> targetGroups)
One pair of target groups.
|
void |
setTestTrafficRoute(TrafficRoute testTrafficRoute)
An optional path used by a load balancer to route test traffic after an Amazon ECS deployment.
|
String |
toString()
Returns a string representation of this object.
|
TargetGroupPairInfo |
withProdTrafficRoute(TrafficRoute prodTrafficRoute)
The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.
|
TargetGroupPairInfo |
withTargetGroups(Collection<TargetGroupInfo> targetGroups)
One pair of target groups.
|
TargetGroupPairInfo |
withTargetGroups(TargetGroupInfo... targetGroups)
One pair of target groups.
|
TargetGroupPairInfo |
withTestTrafficRoute(TrafficRoute testTrafficRoute)
An optional path used by a load balancer to route test traffic after an Amazon ECS deployment.
|
public List<TargetGroupInfo> getTargetGroups()
One pair of target groups. One is associated with the original task set. The second target is associated with the task set that serves traffic after the deployment completes.
public void setTargetGroups(Collection<TargetGroupInfo> targetGroups)
One pair of target groups. One is associated with the original task set. The second target is associated with the task set that serves traffic after the deployment completes.
targetGroups
- One pair of target groups. One is associated with the original task set. The second target is associated
with the task set that serves traffic after the deployment completes.public TargetGroupPairInfo withTargetGroups(TargetGroupInfo... targetGroups)
One pair of target groups. One is associated with the original task set. The second target is associated with the task set that serves traffic after the deployment completes.
NOTE: This method appends the values to the existing list (if any). Use
setTargetGroups(java.util.Collection)
or withTargetGroups(java.util.Collection)
if you want to
override the existing values.
targetGroups
- One pair of target groups. One is associated with the original task set. The second target is associated
with the task set that serves traffic after the deployment completes.public TargetGroupPairInfo withTargetGroups(Collection<TargetGroupInfo> targetGroups)
One pair of target groups. One is associated with the original task set. The second target is associated with the task set that serves traffic after the deployment completes.
targetGroups
- One pair of target groups. One is associated with the original task set. The second target is associated
with the task set that serves traffic after the deployment completes.public void setProdTrafficRoute(TrafficRoute prodTrafficRoute)
The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.
prodTrafficRoute
- The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.public TrafficRoute getProdTrafficRoute()
The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.
public TargetGroupPairInfo withProdTrafficRoute(TrafficRoute prodTrafficRoute)
The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.
prodTrafficRoute
- The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.public void setTestTrafficRoute(TrafficRoute testTrafficRoute)
An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation can happen while test traffic is served during a deployment.
testTrafficRoute
- An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation
can happen while test traffic is served during a deployment.public TrafficRoute getTestTrafficRoute()
An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation can happen while test traffic is served during a deployment.
public TargetGroupPairInfo withTestTrafficRoute(TrafficRoute testTrafficRoute)
An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation can happen while test traffic is served during a deployment.
testTrafficRoute
- An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation
can happen while test traffic is served during a deployment.public String toString()
toString
in class Object
Object.toString()
public TargetGroupPairInfo clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2018. All rights reserved.