@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NewAssertionRule extends Object implements Serializable, Cloneable, StructuredPojo
A new assertion rule for a control panel.
Constructor and Description |
---|
NewAssertionRule() |
Modifier and Type | Method and Description |
---|---|
NewAssertionRule |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAssertedControls()
The routing controls that are part of transactions that are evaluated to determine if a request to change a
routing control state is allowed.
|
String |
getControlPanelArn()
The Amazon Resource Name (ARN) for the control panel.
|
String |
getName()
The name of the assertion rule.
|
RuleConfig |
getRuleConfig()
The criteria that you set for specific assertion controls (routing controls) that designate how many control
states must be ON as the result of a transaction.
|
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 |
setAssertedControls(Collection<String> assertedControls)
The routing controls that are part of transactions that are evaluated to determine if a request to change a
routing control state is allowed.
|
void |
setControlPanelArn(String controlPanelArn)
The Amazon Resource Name (ARN) for the control panel.
|
void |
setName(String name)
The name of the assertion rule.
|
void |
setRuleConfig(RuleConfig ruleConfig)
The criteria that you set for specific assertion controls (routing controls) that designate how many control
states must be ON as the result of a transaction.
|
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.
|
NewAssertionRule |
withAssertedControls(Collection<String> assertedControls)
The routing controls that are part of transactions that are evaluated to determine if a request to change a
routing control state is allowed.
|
NewAssertionRule |
withAssertedControls(String... assertedControls)
The routing controls that are part of transactions that are evaluated to determine if a request to change a
routing control state is allowed.
|
NewAssertionRule |
withControlPanelArn(String controlPanelArn)
The Amazon Resource Name (ARN) for the control panel.
|
NewAssertionRule |
withName(String name)
The name of the assertion rule.
|
NewAssertionRule |
withRuleConfig(RuleConfig ruleConfig)
The criteria that you set for specific assertion controls (routing controls) that designate how many control
states must be ON as the result of a transaction.
|
NewAssertionRule |
withWaitPeriodMs(Integer waitPeriodMs)
An evaluation period, in milliseconds (ms), during which any request against the target routing controls will
fail.
|
public List<String> getAssertedControls()
The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.
public void setAssertedControls(Collection<String> assertedControls)
The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.
assertedControls
- The routing controls that are part of transactions that are evaluated to determine if a request to change
a routing control state is allowed. For example, you might include three routing controls, one for each of
three Amazon Web Services Regions.public NewAssertionRule withAssertedControls(String... assertedControls)
The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.
NOTE: This method appends the values to the existing list (if any). Use
setAssertedControls(java.util.Collection)
or withAssertedControls(java.util.Collection)
if you
want to override the existing values.
assertedControls
- The routing controls that are part of transactions that are evaluated to determine if a request to change
a routing control state is allowed. For example, you might include three routing controls, one for each of
three Amazon Web Services Regions.public NewAssertionRule withAssertedControls(Collection<String> assertedControls)
The routing controls that are part of transactions that are evaluated to determine if a request to change a routing control state is allowed. For example, you might include three routing controls, one for each of three Amazon Web Services Regions.
assertedControls
- The routing controls that are part of transactions that are evaluated to determine if a request to change
a routing control state is allowed. For example, you might include three routing controls, one for each of
three Amazon Web Services Regions.public void setControlPanelArn(String controlPanelArn)
The Amazon Resource Name (ARN) for the control panel.
controlPanelArn
- The Amazon Resource Name (ARN) for the control panel.public String getControlPanelArn()
The Amazon Resource Name (ARN) for the control panel.
public NewAssertionRule withControlPanelArn(String controlPanelArn)
The Amazon Resource Name (ARN) for the control panel.
controlPanelArn
- The Amazon Resource Name (ARN) for the control panel.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 NewAssertionRule 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 setRuleConfig(RuleConfig ruleConfig)
The criteria that you set for specific assertion controls (routing controls) that designate how many control states must be ON as the result of a transaction. For example, if you have three assertion controls, you might specify ATLEAST 2 for your rule configuration. This means that at least two assertion controls must be ON, so that at least two Amazon Web Services Regions have traffic flowing to them.
ruleConfig
- The criteria that you set for specific assertion controls (routing controls) that designate how many
control states must be ON as the result of a transaction. For example, if you have three assertion
controls, you might specify ATLEAST 2 for your rule configuration. This means that at least two assertion
controls must be ON, so that at least two Amazon Web Services Regions have traffic flowing to them.public RuleConfig getRuleConfig()
The criteria that you set for specific assertion controls (routing controls) that designate how many control states must be ON as the result of a transaction. For example, if you have three assertion controls, you might specify ATLEAST 2 for your rule configuration. This means that at least two assertion controls must be ON, so that at least two Amazon Web Services Regions have traffic flowing to them.
public NewAssertionRule withRuleConfig(RuleConfig ruleConfig)
The criteria that you set for specific assertion controls (routing controls) that designate how many control states must be ON as the result of a transaction. For example, if you have three assertion controls, you might specify ATLEAST 2 for your rule configuration. This means that at least two assertion controls must be ON, so that at least two Amazon Web Services Regions have traffic flowing to them.
ruleConfig
- The criteria that you set for specific assertion controls (routing controls) that designate how many
control states must be ON as the result of a transaction. For example, if you have three assertion
controls, you might specify ATLEAST 2 for your rule configuration. This means that at least two assertion
controls must be ON, so that at least two Amazon Web Services Regions have traffic flowing to them.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 NewAssertionRule 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 NewAssertionRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.