@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GatingRule extends Object implements Serializable, Cloneable, StructuredPojo
A gating rule verifies that a set of gating controls evaluates as true, based on a rule configuration that you specify. If the gating rule evaluates to true, Amazon Route 53 Application Recovery Controller allows a set of routing control state changes to run and complete against the set of target controls.
Constructor and Description |
---|
GatingRule() |
Modifier and Type | Method and Description |
---|---|
GatingRule |
clone() |
boolean |
equals(Object obj) |
String |
getControlPanelArn()
The Amazon Resource Name (ARN) of the control panel.
|
List<String> |
getGatingControls()
The gating controls for the gating rule.
|
String |
getName()
The name for the gating rule.
|
RuleConfig |
getRuleConfig()
The criteria that you set for specific gating controls (routing controls) that designates how many controls must
be enabled to allow you to change (set or unset) the target controls.
|
String |
getSafetyRuleArn()
The Amazon Resource Name (ARN) of the gating rule.
|
String |
getStatus()
The deployment status of a gating rule.
|
List<String> |
getTargetControls()
Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified
GatingControls.
|
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 |
setControlPanelArn(String controlPanelArn)
The Amazon Resource Name (ARN) of the control panel.
|
void |
setGatingControls(Collection<String> gatingControls)
The gating controls for the gating rule.
|
void |
setName(String name)
The name for the gating rule.
|
void |
setRuleConfig(RuleConfig ruleConfig)
The criteria that you set for specific gating controls (routing controls) that designates how many controls must
be enabled to allow you to change (set or unset) the target controls.
|
void |
setSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the gating rule.
|
void |
setStatus(String status)
The deployment status of a gating rule.
|
void |
setTargetControls(Collection<String> targetControls)
Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified
GatingControls.
|
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.
|
GatingRule |
withControlPanelArn(String controlPanelArn)
The Amazon Resource Name (ARN) of the control panel.
|
GatingRule |
withGatingControls(Collection<String> gatingControls)
The gating controls for the gating rule.
|
GatingRule |
withGatingControls(String... gatingControls)
The gating controls for the gating rule.
|
GatingRule |
withName(String name)
The name for the gating rule.
|
GatingRule |
withRuleConfig(RuleConfig ruleConfig)
The criteria that you set for specific gating controls (routing controls) that designates how many controls must
be enabled to allow you to change (set or unset) the target controls.
|
GatingRule |
withSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the gating rule.
|
GatingRule |
withStatus(Status status)
The deployment status of a gating rule.
|
GatingRule |
withStatus(String status)
The deployment status of a gating rule.
|
GatingRule |
withTargetControls(Collection<String> targetControls)
Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified
GatingControls.
|
GatingRule |
withTargetControls(String... targetControls)
Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified
GatingControls.
|
GatingRule |
withWaitPeriodMs(Integer waitPeriodMs)
An evaluation period, in milliseconds (ms), during which any request against the target routing controls will
fail.
|
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 GatingRule withControlPanelArn(String controlPanelArn)
The Amazon Resource Name (ARN) of the control panel.
controlPanelArn
- The Amazon Resource Name (ARN) of the control panel.public List<String> getGatingControls()
The gating controls for the gating rule. That is, routing controls that are evaluated by the rule configuration that you specify.
public void setGatingControls(Collection<String> gatingControls)
The gating controls for the gating rule. That is, routing controls that are evaluated by the rule configuration that you specify.
gatingControls
- The gating controls for the gating rule. That is, routing controls that are evaluated by the rule
configuration that you specify.public GatingRule withGatingControls(String... gatingControls)
The gating controls for the gating rule. That is, routing controls that are evaluated by the rule configuration that you specify.
NOTE: This method appends the values to the existing list (if any). Use
setGatingControls(java.util.Collection)
or withGatingControls(java.util.Collection)
if you want
to override the existing values.
gatingControls
- The gating controls for the gating rule. That is, routing controls that are evaluated by the rule
configuration that you specify.public GatingRule withGatingControls(Collection<String> gatingControls)
The gating controls for the gating rule. That is, routing controls that are evaluated by the rule configuration that you specify.
gatingControls
- The gating controls for the gating rule. That is, routing controls that are evaluated by the rule
configuration that you specify.public void setName(String name)
The name for the gating rule.
name
- The name for the gating rule.public String getName()
The name for the gating rule.
public GatingRule withName(String name)
The name for the gating rule.
name
- The name for the gating rule.public void setRuleConfig(RuleConfig ruleConfig)
The criteria that you set for specific gating controls (routing controls) that designates how many controls must be enabled to allow you to change (set or unset) the target controls.
ruleConfig
- The criteria that you set for specific gating controls (routing controls) that designates how many
controls must be enabled to allow you to change (set or unset) the target controls.public RuleConfig getRuleConfig()
The criteria that you set for specific gating controls (routing controls) that designates how many controls must be enabled to allow you to change (set or unset) the target controls.
public GatingRule withRuleConfig(RuleConfig ruleConfig)
The criteria that you set for specific gating controls (routing controls) that designates how many controls must be enabled to allow you to change (set or unset) the target controls.
ruleConfig
- The criteria that you set for specific gating controls (routing controls) that designates how many
controls must be enabled to allow you to change (set or unset) the target controls.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 GatingRule withSafetyRuleArn(String safetyRuleArn)
The Amazon Resource Name (ARN) of the gating rule.
safetyRuleArn
- The Amazon Resource Name (ARN) of the gating rule.public void setStatus(String status)
The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.
status
- The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED,
PENDING_DELETION.Status
public String getStatus()
The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.
Status
public GatingRule withStatus(String status)
The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.
status
- The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED,
PENDING_DELETION.Status
public GatingRule withStatus(Status status)
The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.
status
- The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED,
PENDING_DELETION.Status
public List<String> getTargetControls()
Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified GatingControls. For example, say you have three gating controls, one for each of three Amazon Web Services Regions. Now you specify ATLEAST 2 as your RuleConfig. With these settings, you can only change (set or unset) the routing controls that you have specified as TargetControls if that rule evaluates to true.
In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.
In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.
public void setTargetControls(Collection<String> targetControls)
Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified GatingControls. For example, say you have three gating controls, one for each of three Amazon Web Services Regions. Now you specify ATLEAST 2 as your RuleConfig. With these settings, you can only change (set or unset) the routing controls that you have specified as TargetControls if that rule evaluates to true.
In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.
targetControls
- Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the
specified GatingControls. For example, say you have three gating controls, one for each of three Amazon
Web Services Regions. Now you specify ATLEAST 2 as your RuleConfig. With these settings, you can only
change (set or unset) the routing controls that you have specified as TargetControls if that rule
evaluates to true.
In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.
public GatingRule withTargetControls(String... targetControls)
Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified GatingControls. For example, say you have three gating controls, one for each of three Amazon Web Services Regions. Now you specify ATLEAST 2 as your RuleConfig. With these settings, you can only change (set or unset) the routing controls that you have specified as TargetControls if that rule evaluates to true.
In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.
NOTE: This method appends the values to the existing list (if any). Use
setTargetControls(java.util.Collection)
or withTargetControls(java.util.Collection)
if you want
to override the existing values.
targetControls
- Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the
specified GatingControls. For example, say you have three gating controls, one for each of three Amazon
Web Services Regions. Now you specify ATLEAST 2 as your RuleConfig. With these settings, you can only
change (set or unset) the routing controls that you have specified as TargetControls if that rule
evaluates to true.
In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.
public GatingRule withTargetControls(Collection<String> targetControls)
Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the specified GatingControls. For example, say you have three gating controls, one for each of three Amazon Web Services Regions. Now you specify ATLEAST 2 as your RuleConfig. With these settings, you can only change (set or unset) the routing controls that you have specified as TargetControls if that rule evaluates to true.
In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.
targetControls
- Routing controls that can only be set or unset if the specified RuleConfig evaluates to true for the
specified GatingControls. For example, say you have three gating controls, one for each of three Amazon
Web Services Regions. Now you specify ATLEAST 2 as your RuleConfig. With these settings, you can only
change (set or unset) the routing controls that you have specified as TargetControls if that rule
evaluates to true.
In other words, your ability to change the routing controls that you have specified as TargetControls is gated by the rule that you set for the routing controls in GatingControls.
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 GatingRule 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 GatingRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.