@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CanarySettings extends Object implements Serializable, Cloneable, StructuredPojo
Configuration settings of a canary deployment.
Constructor and Description |
---|
CanarySettings() |
Modifier and Type | Method and Description |
---|---|
CanarySettings |
addStageVariableOverridesEntry(String key,
String value)
Add a single StageVariableOverrides entry
|
CanarySettings |
clearStageVariableOverridesEntries()
Removes all the entries added into StageVariableOverrides.
|
CanarySettings |
clone() |
boolean |
equals(Object obj) |
String |
getDeploymentId()
The ID of the canary deployment.
|
Double |
getPercentTraffic()
The percent (0-100) of traffic diverted to a canary deployment.
|
Map<String,String> |
getStageVariableOverrides()
Stage variables overridden for a canary release deployment, including new stage variables introduced in the
canary.
|
Boolean |
getUseStageCache()
A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
|
int |
hashCode() |
Boolean |
isUseStageCache()
A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDeploymentId(String deploymentId)
The ID of the canary deployment.
|
void |
setPercentTraffic(Double percentTraffic)
The percent (0-100) of traffic diverted to a canary deployment.
|
void |
setStageVariableOverrides(Map<String,String> stageVariableOverrides)
Stage variables overridden for a canary release deployment, including new stage variables introduced in the
canary.
|
void |
setUseStageCache(Boolean useStageCache)
A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
|
String |
toString()
Returns a string representation of this object.
|
CanarySettings |
withDeploymentId(String deploymentId)
The ID of the canary deployment.
|
CanarySettings |
withPercentTraffic(Double percentTraffic)
The percent (0-100) of traffic diverted to a canary deployment.
|
CanarySettings |
withStageVariableOverrides(Map<String,String> stageVariableOverrides)
Stage variables overridden for a canary release deployment, including new stage variables introduced in the
canary.
|
CanarySettings |
withUseStageCache(Boolean useStageCache)
A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
|
public void setPercentTraffic(Double percentTraffic)
The percent (0-100) of traffic diverted to a canary deployment.
percentTraffic
- The percent (0-100) of traffic diverted to a canary deployment.public Double getPercentTraffic()
The percent (0-100) of traffic diverted to a canary deployment.
public CanarySettings withPercentTraffic(Double percentTraffic)
The percent (0-100) of traffic diverted to a canary deployment.
percentTraffic
- The percent (0-100) of traffic diverted to a canary deployment.public void setDeploymentId(String deploymentId)
The ID of the canary deployment.
deploymentId
- The ID of the canary deployment.public String getDeploymentId()
The ID of the canary deployment.
public CanarySettings withDeploymentId(String deploymentId)
The ID of the canary deployment.
deploymentId
- The ID of the canary deployment.public Map<String,String> getStageVariableOverrides()
Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
public void setStageVariableOverrides(Map<String,String> stageVariableOverrides)
Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
stageVariableOverrides
- Stage variables overridden for a canary release deployment, including new stage variables introduced in
the canary. These stage variables are represented as a string-to-string map between stage variable names
and their values.public CanarySettings withStageVariableOverrides(Map<String,String> stageVariableOverrides)
Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.
stageVariableOverrides
- Stage variables overridden for a canary release deployment, including new stage variables introduced in
the canary. These stage variables are represented as a string-to-string map between stage variable names
and their values.public CanarySettings addStageVariableOverridesEntry(String key, String value)
public CanarySettings clearStageVariableOverridesEntries()
public void setUseStageCache(Boolean useStageCache)
A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
useStageCache
- A Boolean flag to indicate whether the canary deployment uses the stage cache or not.public Boolean getUseStageCache()
A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
public CanarySettings withUseStageCache(Boolean useStageCache)
A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
useStageCache
- A Boolean flag to indicate whether the canary deployment uses the stage cache or not.public Boolean isUseStageCache()
A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
public String toString()
toString
in class Object
Object.toString()
public CanarySettings clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.