@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssertionRule extends Object implements Serializable, Cloneable, StructuredPojo
An assertion rule enforces that, when you change a routing control state, that the criteria that you set in the rule configuration is met. Otherwise, the change to the routing control is not accepted. For example, the criteria might be that at least one routing control state is On after the transaction so that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open scenario.
Constructor and Description |
---|
AssertionRule() |
Modifier and Type | Method and Description |
---|---|
AssertionRule |
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) of the control panel.
|
String |
getName()
Name of the assertion rule.
|
String |
getOwner()
The Amazon Web Services account ID of the assertion rule owner.
|
RuleConfig |
getRuleConfig()
The criteria that you set for specific assertion routing controls (AssertedControls) that designate how many
routing control states must be ON as the result of a transaction.
|
String |
getSafetyRuleArn()
The Amazon Resource Name (ARN) of the assertion rule.
|
String |
getStatus()
The deployment status of an 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 |
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) of the control panel.
|
void |
setName(String name)
Name of the assertion rule.
|
void |
setOwner(String owner)
The Amazon Web Services account ID of the assertion rule owner.
|
void |
setRuleConfig(RuleConfig ruleConfig)
The criteria that you set for specific assertion routing controls (AssertedControls) that designate how many
routing control states must be ON as the result of a transaction.
|
void |
setSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the assertion rule.
|
void |
setStatus(String status)
The deployment status of an 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.
|
AssertionRule |
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.
|
AssertionRule |
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.
|
AssertionRule |
withControlPanelArn(String controlPanelArn)
The Amazon Resource Name (ARN) of the control panel.
|
AssertionRule |
withName(String name)
Name of the assertion rule.
|
AssertionRule |
withOwner(String owner)
The Amazon Web Services account ID of the assertion rule owner.
|
AssertionRule |
withRuleConfig(RuleConfig ruleConfig)
The criteria that you set for specific assertion routing controls (AssertedControls) that designate how many
routing control states must be ON as the result of a transaction.
|
AssertionRule |
withSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the assertion rule.
|
AssertionRule |
withStatus(Status status)
The deployment status of an assertion rule.
|
AssertionRule |
withStatus(String status)
The deployment status of an assertion rule.
|
AssertionRule |
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 AssertionRule 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 AssertionRule 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) of the control panel.
controlPanelArn
- The Amazon Resource Name (ARN) of the control panel.public String getControlPanelArn()
The Amazon Resource Name (ARN) of the control panel.
public AssertionRule withControlPanelArn(String controlPanelArn)
The Amazon Resource Name (ARN) of the control panel.
controlPanelArn
- The Amazon Resource Name (ARN) of the control panel.public void setName(String name)
Name of the assertion rule. You can use any non-white space character in the name.
name
- Name of the assertion rule. You can use any non-white space character in the name.public String getName()
Name of the assertion rule. You can use any non-white space character in the name.
public AssertionRule withName(String name)
Name of the assertion rule. You can use any non-white space character in the name.
name
- 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 routing controls (AssertedControls) that designate how many routing control states must be ON as the result of a transaction. For example, if you have three assertion routing controls, you might specify ATLEAST 2 for your rule configuration. This means that at least two assertion routing control states 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 routing controls (AssertedControls) that designate how
many routing control states must be ON as the result of a transaction. For example, if you have three
assertion routing controls, you might specify ATLEAST 2 for your rule configuration. This means that at
least two assertion routing control states 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 routing controls (AssertedControls) that designate how many routing control states must be ON as the result of a transaction. For example, if you have three assertion routing controls, you might specify ATLEAST 2 for your rule configuration. This means that at least two assertion routing control states must be ON, so that at least two Amazon Web Services Regions have traffic flowing to them.
public AssertionRule withRuleConfig(RuleConfig ruleConfig)
The criteria that you set for specific assertion routing controls (AssertedControls) that designate how many routing control states must be ON as the result of a transaction. For example, if you have three assertion routing controls, you might specify ATLEAST 2 for your rule configuration. This means that at least two assertion routing control states 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 routing controls (AssertedControls) that designate how
many routing control states must be ON as the result of a transaction. For example, if you have three
assertion routing controls, you might specify ATLEAST 2 for your rule configuration. This means that at
least two assertion routing control states must be ON, so that at least two Amazon Web Services Regions
have traffic flowing to them.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 AssertionRule withSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the assertion rule.
safetyRuleArn
- The Amazon Resource Name (ARN) of the assertion rule.public void setStatus(String status)
The deployment status of an assertion rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.
status
- The deployment status of an assertion rule. Status can be one of the following: PENDING, DEPLOYED,
PENDING_DELETION.Status
public String getStatus()
The deployment status of an assertion rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.
Status
public AssertionRule withStatus(String status)
The deployment status of an assertion rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.
status
- The deployment status of an assertion rule. Status can be one of the following: PENDING, DEPLOYED,
PENDING_DELETION.Status
public AssertionRule withStatus(Status status)
The deployment status of an assertion rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.
status
- The deployment status of an assertion rule. Status can be one of the following: PENDING, DEPLOYED,
PENDING_DELETION.Status
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 AssertionRule 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 void setOwner(String owner)
The Amazon Web Services account ID of the assertion rule owner.
owner
- The Amazon Web Services account ID of the assertion rule owner.public String getOwner()
The Amazon Web Services account ID of the assertion rule owner.
public AssertionRule withOwner(String owner)
The Amazon Web Services account ID of the assertion rule owner.
owner
- The Amazon Web Services account ID of the assertion rule owner.public String toString()
toString
in class Object
Object.toString()
public AssertionRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.