@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TrafficConfig extends Object implements Serializable, Cloneable
The traffic configuration of your continuous deployment.
| Constructor and Description |
|---|
TrafficConfig() |
| Modifier and Type | Method and Description |
|---|---|
TrafficConfig |
clone() |
boolean |
equals(Object obj) |
ContinuousDeploymentSingleHeaderConfig |
getSingleHeaderConfig()
Determines which HTTP requests are sent to the staging distribution.
|
ContinuousDeploymentSingleWeightConfig |
getSingleWeightConfig()
Contains the percentage of traffic to send to the staging distribution.
|
String |
getType()
The type of traffic configuration.
|
int |
hashCode() |
void |
setSingleHeaderConfig(ContinuousDeploymentSingleHeaderConfig singleHeaderConfig)
Determines which HTTP requests are sent to the staging distribution.
|
void |
setSingleWeightConfig(ContinuousDeploymentSingleWeightConfig singleWeightConfig)
Contains the percentage of traffic to send to the staging distribution.
|
void |
setType(String type)
The type of traffic configuration.
|
String |
toString()
Returns a string representation of this object.
|
TrafficConfig |
withSingleHeaderConfig(ContinuousDeploymentSingleHeaderConfig singleHeaderConfig)
Determines which HTTP requests are sent to the staging distribution.
|
TrafficConfig |
withSingleWeightConfig(ContinuousDeploymentSingleWeightConfig singleWeightConfig)
Contains the percentage of traffic to send to the staging distribution.
|
TrafficConfig |
withType(ContinuousDeploymentPolicyType type)
The type of traffic configuration.
|
TrafficConfig |
withType(String type)
The type of traffic configuration.
|
public void setSingleWeightConfig(ContinuousDeploymentSingleWeightConfig singleWeightConfig)
Contains the percentage of traffic to send to the staging distribution.
singleWeightConfig - Contains the percentage of traffic to send to the staging distribution.public ContinuousDeploymentSingleWeightConfig getSingleWeightConfig()
Contains the percentage of traffic to send to the staging distribution.
public TrafficConfig withSingleWeightConfig(ContinuousDeploymentSingleWeightConfig singleWeightConfig)
Contains the percentage of traffic to send to the staging distribution.
singleWeightConfig - Contains the percentage of traffic to send to the staging distribution.public void setSingleHeaderConfig(ContinuousDeploymentSingleHeaderConfig singleHeaderConfig)
Determines which HTTP requests are sent to the staging distribution.
singleHeaderConfig - Determines which HTTP requests are sent to the staging distribution.public ContinuousDeploymentSingleHeaderConfig getSingleHeaderConfig()
Determines which HTTP requests are sent to the staging distribution.
public TrafficConfig withSingleHeaderConfig(ContinuousDeploymentSingleHeaderConfig singleHeaderConfig)
Determines which HTTP requests are sent to the staging distribution.
singleHeaderConfig - Determines which HTTP requests are sent to the staging distribution.public void setType(String type)
The type of traffic configuration.
type - The type of traffic configuration.ContinuousDeploymentPolicyTypepublic String getType()
The type of traffic configuration.
ContinuousDeploymentPolicyTypepublic TrafficConfig withType(String type)
The type of traffic configuration.
type - The type of traffic configuration.ContinuousDeploymentPolicyTypepublic TrafficConfig withType(ContinuousDeploymentPolicyType type)
The type of traffic configuration.
type - The type of traffic configuration.ContinuousDeploymentPolicyTypepublic String toString()
toString in class ObjectObject.toString()public TrafficConfig clone()