@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimeBasedCanary extends Object implements Serializable, Cloneable, StructuredPojo
A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in two increments. The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.
| Constructor and Description |
|---|
TimeBasedCanary() |
| Modifier and Type | Method and Description |
|---|---|
TimeBasedCanary |
clone() |
boolean |
equals(Object obj) |
Integer |
getCanaryInterval()
The number of minutes between the first and second traffic shifts of a
TimeBasedCanary deployment. |
Integer |
getCanaryPercentage()
The percentage of traffic to shift in the first increment of a
TimeBasedCanary deployment. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCanaryInterval(Integer canaryInterval)
The number of minutes between the first and second traffic shifts of a
TimeBasedCanary deployment. |
void |
setCanaryPercentage(Integer canaryPercentage)
The percentage of traffic to shift in the first increment of a
TimeBasedCanary deployment. |
String |
toString()
Returns a string representation of this object.
|
TimeBasedCanary |
withCanaryInterval(Integer canaryInterval)
The number of minutes between the first and second traffic shifts of a
TimeBasedCanary deployment. |
TimeBasedCanary |
withCanaryPercentage(Integer canaryPercentage)
The percentage of traffic to shift in the first increment of a
TimeBasedCanary deployment. |
public void setCanaryPercentage(Integer canaryPercentage)
The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.
canaryPercentage - The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.public Integer getCanaryPercentage()
The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.
TimeBasedCanary deployment.public TimeBasedCanary withCanaryPercentage(Integer canaryPercentage)
The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.
canaryPercentage - The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.public void setCanaryInterval(Integer canaryInterval)
The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.
canaryInterval - The number of minutes between the first and second traffic shifts of a TimeBasedCanary
deployment.public Integer getCanaryInterval()
The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.
TimeBasedCanary
deployment.public TimeBasedCanary withCanaryInterval(Integer canaryInterval)
The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.
canaryInterval - The number of minutes between the first and second traffic shifts of a TimeBasedCanary
deployment.public String toString()
toString in class ObjectObject.toString()public TimeBasedCanary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.