@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssertionRuleUpdate extends Object implements Serializable, Cloneable, StructuredPojo
An update to an assertion 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 |
---|
AssertionRuleUpdate() |
Modifier and Type | Method and Description |
---|---|
AssertionRuleUpdate |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the assertion rule.
|
String |
getSafetyRuleArn()
The Amazon Resource Name (ARN) of the assertion 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 of the assertion rule.
|
void |
setSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the assertion 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.
|
AssertionRuleUpdate |
withName(String name)
The name of the assertion rule.
|
AssertionRuleUpdate |
withSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the assertion rule.
|
AssertionRuleUpdate |
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 of the assertion rule. You can use any non-white space character in the name.
name
- The name of the assertion rule. You can use any non-white space character in the name.public String getName()
The name of the assertion rule. You can use any non-white space character in the name.
public AssertionRuleUpdate withName(String name)
The name of the assertion rule. You can use any non-white space character in the name.
name
- The name of the assertion rule. You can use any non-white space character in the name.public void setSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the assertion rule.
safetyRuleArn
- The Amazon Resource Name (ARN) of the assertion rule.public String getSafetyRuleArn()
The Amazon Resource Name (ARN) of the assertion rule.
public AssertionRuleUpdate withSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the assertion rule.
safetyRuleArn
- The Amazon Resource Name (ARN) of the assertion 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 AssertionRuleUpdate 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 AssertionRuleUpdate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.