@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResiliencyPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Defines a resiliency policy.
| Constructor and Description |
|---|
ResiliencyPolicy() |
| Modifier and Type | Method and Description |
|---|---|
ResiliencyPolicy |
addPolicyEntry(String key,
FailurePolicy value)
Add a single Policy entry
|
ResiliencyPolicy |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
ResiliencyPolicy |
clearPolicyEntries()
Removes all the entries added into Policy.
|
ResiliencyPolicy |
clearTagsEntries()
Removes all the entries added into Tags.
|
ResiliencyPolicy |
clone() |
boolean |
equals(Object obj) |
Date |
getCreationTime()
The timestamp for when the resiliency policy was created.
|
String |
getDataLocationConstraint()
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
|
String |
getEstimatedCostTier()
Specifies the estimated cost tier of the resiliency policy.
|
Map<String,FailurePolicy> |
getPolicy()
The resiliency policy.
|
String |
getPolicyArn()
The Amazon Resource Name (ARN) of the resiliency policy.
|
String |
getPolicyDescription()
The description for the policy.
|
String |
getPolicyName()
The name of the policy
|
Map<String,String> |
getTags()
The tags assigned to the resource.
|
String |
getTier()
The tier for this resiliency policy, ranging from the highest severity (
MissionCritical) to lowest (
NonCritical). |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCreationTime(Date creationTime)
The timestamp for when the resiliency policy was created.
|
void |
setDataLocationConstraint(String dataLocationConstraint)
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
|
void |
setEstimatedCostTier(String estimatedCostTier)
Specifies the estimated cost tier of the resiliency policy.
|
void |
setPolicy(Map<String,FailurePolicy> policy)
The resiliency policy.
|
void |
setPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the resiliency policy.
|
void |
setPolicyDescription(String policyDescription)
The description for the policy.
|
void |
setPolicyName(String policyName)
The name of the policy
|
void |
setTags(Map<String,String> tags)
The tags assigned to the resource.
|
void |
setTier(String tier)
The tier for this resiliency policy, ranging from the highest severity (
MissionCritical) to lowest (
NonCritical). |
String |
toString()
Returns a string representation of this object.
|
ResiliencyPolicy |
withCreationTime(Date creationTime)
The timestamp for when the resiliency policy was created.
|
ResiliencyPolicy |
withDataLocationConstraint(DataLocationConstraint dataLocationConstraint)
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
|
ResiliencyPolicy |
withDataLocationConstraint(String dataLocationConstraint)
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
|
ResiliencyPolicy |
withEstimatedCostTier(EstimatedCostTier estimatedCostTier)
Specifies the estimated cost tier of the resiliency policy.
|
ResiliencyPolicy |
withEstimatedCostTier(String estimatedCostTier)
Specifies the estimated cost tier of the resiliency policy.
|
ResiliencyPolicy |
withPolicy(Map<String,FailurePolicy> policy)
The resiliency policy.
|
ResiliencyPolicy |
withPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the resiliency policy.
|
ResiliencyPolicy |
withPolicyDescription(String policyDescription)
The description for the policy.
|
ResiliencyPolicy |
withPolicyName(String policyName)
The name of the policy
|
ResiliencyPolicy |
withTags(Map<String,String> tags)
The tags assigned to the resource.
|
ResiliencyPolicy |
withTier(ResiliencyPolicyTier tier)
The tier for this resiliency policy, ranging from the highest severity (
MissionCritical) to lowest (
NonCritical). |
ResiliencyPolicy |
withTier(String tier)
The tier for this resiliency policy, ranging from the highest severity (
MissionCritical) to lowest (
NonCritical). |
public void setCreationTime(Date creationTime)
The timestamp for when the resiliency policy was created.
creationTime - The timestamp for when the resiliency policy was created.public Date getCreationTime()
The timestamp for when the resiliency policy was created.
public ResiliencyPolicy withCreationTime(Date creationTime)
The timestamp for when the resiliency policy was created.
creationTime - The timestamp for when the resiliency policy was created.public void setDataLocationConstraint(String dataLocationConstraint)
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
dataLocationConstraint - Specifies a high-level geographical location constraint for where your resilience policy data can be
stored.DataLocationConstraintpublic String getDataLocationConstraint()
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
DataLocationConstraintpublic ResiliencyPolicy withDataLocationConstraint(String dataLocationConstraint)
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
dataLocationConstraint - Specifies a high-level geographical location constraint for where your resilience policy data can be
stored.DataLocationConstraintpublic ResiliencyPolicy withDataLocationConstraint(DataLocationConstraint dataLocationConstraint)
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
dataLocationConstraint - Specifies a high-level geographical location constraint for where your resilience policy data can be
stored.DataLocationConstraintpublic void setEstimatedCostTier(String estimatedCostTier)
Specifies the estimated cost tier of the resiliency policy.
estimatedCostTier - Specifies the estimated cost tier of the resiliency policy.EstimatedCostTierpublic String getEstimatedCostTier()
Specifies the estimated cost tier of the resiliency policy.
EstimatedCostTierpublic ResiliencyPolicy withEstimatedCostTier(String estimatedCostTier)
Specifies the estimated cost tier of the resiliency policy.
estimatedCostTier - Specifies the estimated cost tier of the resiliency policy.EstimatedCostTierpublic ResiliencyPolicy withEstimatedCostTier(EstimatedCostTier estimatedCostTier)
Specifies the estimated cost tier of the resiliency policy.
estimatedCostTier - Specifies the estimated cost tier of the resiliency policy.EstimatedCostTierpublic Map<String,FailurePolicy> getPolicy()
The resiliency policy.
public void setPolicy(Map<String,FailurePolicy> policy)
The resiliency policy.
policy - The resiliency policy.public ResiliencyPolicy withPolicy(Map<String,FailurePolicy> policy)
The resiliency policy.
policy - The resiliency policy.public ResiliencyPolicy addPolicyEntry(String key, FailurePolicy value)
public ResiliencyPolicy clearPolicyEntries()
public void setPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition
:resiliencehub:region:account:resiliency-policy/policy-id. For more
information about ARNs, see
Amazon Resource Names (ARNs) in the AWS General Reference guide.
policyArn - The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:
partition:resiliencehub:region:account:resiliency-policy/
policy-id. For more information about ARNs, see Amazon Resource Names
(ARNs) in the AWS General Reference guide.public String getPolicyArn()
The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition
:resiliencehub:region:account:resiliency-policy/policy-id. For more
information about ARNs, see
Amazon Resource Names (ARNs) in the AWS General Reference guide.
partition:resiliencehub:region:account:resiliency-policy/
policy-id. For more information about ARNs, see Amazon Resource Names
(ARNs) in the AWS General Reference guide.public ResiliencyPolicy withPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition
:resiliencehub:region:account:resiliency-policy/policy-id. For more
information about ARNs, see
Amazon Resource Names (ARNs) in the AWS General Reference guide.
policyArn - The Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:
partition:resiliencehub:region:account:resiliency-policy/
policy-id. For more information about ARNs, see Amazon Resource Names
(ARNs) in the AWS General Reference guide.public void setPolicyDescription(String policyDescription)
The description for the policy.
policyDescription - The description for the policy.public String getPolicyDescription()
The description for the policy.
public ResiliencyPolicy withPolicyDescription(String policyDescription)
The description for the policy.
policyDescription - The description for the policy.public void setPolicyName(String policyName)
The name of the policy
policyName - The name of the policypublic String getPolicyName()
The name of the policy
public ResiliencyPolicy withPolicyName(String policyName)
The name of the policy
policyName - The name of the policypublic Map<String,String> getTags()
The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
public void setTags(Map<String,String> tags)
The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
tags - The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource.
Each tag consists of a key/value pair.public ResiliencyPolicy withTags(Map<String,String> tags)
The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
tags - The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource.
Each tag consists of a key/value pair.public ResiliencyPolicy addTagsEntry(String key, String value)
public ResiliencyPolicy clearTagsEntries()
public void setTier(String tier)
The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to lowest (
NonCritical).
tier - The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to
lowest (NonCritical).ResiliencyPolicyTierpublic String getTier()
The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to lowest (
NonCritical).
MissionCritical) to
lowest (NonCritical).ResiliencyPolicyTierpublic ResiliencyPolicy withTier(String tier)
The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to lowest (
NonCritical).
tier - The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to
lowest (NonCritical).ResiliencyPolicyTierpublic ResiliencyPolicy withTier(ResiliencyPolicyTier tier)
The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to lowest (
NonCritical).
tier - The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to
lowest (NonCritical).ResiliencyPolicyTierpublic String toString()
toString in class ObjectObject.toString()public ResiliencyPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.