Class CfnRestoreTestingSelectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnRestoreTestingSelectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRestoreTestingSelectionProps>
- Enclosing interface:
CfnRestoreTestingSelectionProps
@Stability(Stable)
public static final class CfnRestoreTestingSelectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRestoreTestingSelectionProps>
A builder for
CfnRestoreTestingSelectionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.iamRoleArn(String iamRoleArn) Sets the value ofCfnRestoreTestingSelectionProps.getIamRoleArn()protectedResourceArns(List<String> protectedResourceArns) Sets the value ofCfnRestoreTestingSelectionProps.getProtectedResourceArns()protectedResourceConditions(IResolvable protectedResourceConditions) Sets the value ofCfnRestoreTestingSelectionProps.getProtectedResourceConditions()protectedResourceConditions(CfnRestoreTestingSelection.ProtectedResourceConditionsProperty protectedResourceConditions) Sets the value ofCfnRestoreTestingSelectionProps.getProtectedResourceConditions()protectedResourceType(String protectedResourceType) Sets the value ofCfnRestoreTestingSelectionProps.getProtectedResourceType()restoreMetadataOverrides(Map<String, String> restoreMetadataOverrides) Sets the value ofCfnRestoreTestingSelectionProps.getRestoreMetadataOverrides()restoreMetadataOverrides(IResolvable restoreMetadataOverrides) Sets the value ofCfnRestoreTestingSelectionProps.getRestoreMetadataOverrides()restoreTestingPlanName(String restoreTestingPlanName) Sets the value ofCfnRestoreTestingSelectionProps.getRestoreTestingPlanName()restoreTestingSelectionName(String restoreTestingSelectionName) Sets the value ofCfnRestoreTestingSelectionProps.getRestoreTestingSelectionName()validationWindowHours(Number validationWindowHours) Sets the value ofCfnRestoreTestingSelectionProps.getValidationWindowHours()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iamRoleArn
Sets the value ofCfnRestoreTestingSelectionProps.getIamRoleArn()- Parameters:
iamRoleArn- The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource;. This parameter is required. for example:arn:aws:iam::123456789012:role/S3Access.- Returns:
this
-
protectedResourceType
@Stability(Stable) public CfnRestoreTestingSelectionProps.Builder protectedResourceType(String protectedResourceType) Sets the value ofCfnRestoreTestingSelectionProps.getProtectedResourceType()- Parameters:
protectedResourceType- The type of AWS resource included in a resource testing selection;. This parameter is required. for example, an Amazon EBS volume or an Amazon RDS database.- Returns:
this
-
restoreTestingPlanName
@Stability(Stable) public CfnRestoreTestingSelectionProps.Builder restoreTestingPlanName(String restoreTestingPlanName) Sets the value ofCfnRestoreTestingSelectionProps.getRestoreTestingPlanName()- Parameters:
restoreTestingPlanName- The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This parameter is required.- Returns:
this
-
restoreTestingSelectionName
@Stability(Stable) public CfnRestoreTestingSelectionProps.Builder restoreTestingSelectionName(String restoreTestingSelectionName) Sets the value ofCfnRestoreTestingSelectionProps.getRestoreTestingSelectionName()- Parameters:
restoreTestingSelectionName- This is the unique name of the restore testing selection that belongs to the related restore testing plan. This parameter is required.- Returns:
this
-
protectedResourceArns
@Stability(Stable) public CfnRestoreTestingSelectionProps.Builder protectedResourceArns(List<String> protectedResourceArns) Sets the value ofCfnRestoreTestingSelectionProps.getProtectedResourceArns()- Parameters:
protectedResourceArns- You can include specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]or you can include a wildcard:ProtectedResourceArns: ["*"], but not both.- Returns:
this
-
protectedResourceConditions
@Stability(Stable) public CfnRestoreTestingSelectionProps.Builder protectedResourceConditions(IResolvable protectedResourceConditions) Sets the value ofCfnRestoreTestingSelectionProps.getProtectedResourceConditions()- Parameters:
protectedResourceConditions- In a resource testing selection, this parameter filters by specific conditions such asStringEqualsorStringNotEquals.- Returns:
this
-
protectedResourceConditions
@Stability(Stable) public CfnRestoreTestingSelectionProps.Builder protectedResourceConditions(CfnRestoreTestingSelection.ProtectedResourceConditionsProperty protectedResourceConditions) Sets the value ofCfnRestoreTestingSelectionProps.getProtectedResourceConditions()- Parameters:
protectedResourceConditions- In a resource testing selection, this parameter filters by specific conditions such asStringEqualsorStringNotEquals.- Returns:
this
-
restoreMetadataOverrides
@Stability(Stable) public CfnRestoreTestingSelectionProps.Builder restoreMetadataOverrides(IResolvable restoreMetadataOverrides) Sets the value ofCfnRestoreTestingSelectionProps.getRestoreMetadataOverrides()- Parameters:
restoreMetadataOverrides- You can override certain restore metadata keys by including the parameterRestoreMetadataOverridesin the body ofRestoreTestingSelection. Key values are not case sensitive.See the complete list of restore testing inferred metadata .
- Returns:
this
-
restoreMetadataOverrides
@Stability(Stable) public CfnRestoreTestingSelectionProps.Builder restoreMetadataOverrides(Map<String, String> restoreMetadataOverrides) Sets the value ofCfnRestoreTestingSelectionProps.getRestoreMetadataOverrides()- Parameters:
restoreMetadataOverrides- You can override certain restore metadata keys by including the parameterRestoreMetadataOverridesin the body ofRestoreTestingSelection. Key values are not case sensitive.See the complete list of restore testing inferred metadata .
- Returns:
this
-
validationWindowHours
@Stability(Stable) public CfnRestoreTestingSelectionProps.Builder validationWindowHours(Number validationWindowHours) Sets the value ofCfnRestoreTestingSelectionProps.getValidationWindowHours()- Parameters:
validationWindowHours- This is amount of hours (1 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRestoreTestingSelectionProps>- Returns:
- a new instance of
CfnRestoreTestingSelectionProps - Throws:
NullPointerException- if any required attribute was not provided
-