@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GatingRuleUpdate extends Object implements Serializable, Cloneable, StructuredPojo
Update to a gating rule. You can update the name or the evaluation period (wait period). If you don't specify one of the items to update, the item is unchanged.
Constructor and Description |
---|
GatingRuleUpdate() |
Modifier and Type | Method and Description |
---|---|
GatingRuleUpdate |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name for the gating rule.
|
String |
getSafetyRuleArn()
The Amazon Resource Name (ARN) of the gating rule.
|
Integer |
getWaitPeriodMs()
An evaluation period, in milliseconds (ms), during which any request against the target routing controls will
fail.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name for the gating rule.
|
void |
setSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the gating rule.
|
void |
setWaitPeriodMs(Integer waitPeriodMs)
An evaluation period, in milliseconds (ms), during which any request against the target routing controls will
fail.
|
String |
toString()
Returns a string representation of this object.
|
GatingRuleUpdate |
withName(String name)
The name for the gating rule.
|
GatingRuleUpdate |
withSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the gating rule.
|
GatingRuleUpdate |
withWaitPeriodMs(Integer waitPeriodMs)
An evaluation period, in milliseconds (ms), during which any request against the target routing controls will
fail.
|
public void setName(String name)
The name for the gating rule. You can use any non-white space character in the name.
name
- The name for the gating rule. You can use any non-white space character in the name.public String getName()
The name for the gating rule. You can use any non-white space character in the name.
public GatingRuleUpdate withName(String name)
The name for the gating rule. You can use any non-white space character in the name.
name
- The name for the gating rule. You can use any non-white space character in the name.public void setSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the gating rule.
safetyRuleArn
- The Amazon Resource Name (ARN) of the gating rule.public String getSafetyRuleArn()
The Amazon Resource Name (ARN) of the gating rule.
public GatingRuleUpdate withSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the gating rule.
safetyRuleArn
- The Amazon Resource Name (ARN) of the gating rule.public void setWaitPeriodMs(Integer waitPeriodMs)
An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can choose a custom value.
waitPeriodMs
- An evaluation period, in milliseconds (ms), during which any request against the target routing controls
will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can
choose a custom value.public Integer getWaitPeriodMs()
An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can choose a custom value.
public GatingRuleUpdate withWaitPeriodMs(Integer waitPeriodMs)
An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can choose a custom value.
waitPeriodMs
- An evaluation period, in milliseconds (ms), during which any request against the target routing controls
will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can
choose a custom value.public String toString()
toString
in class Object
Object.toString()
public GatingRuleUpdate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.