Class CfnRestoreTestingSelectionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.backup.CfnRestoreTestingSelectionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRestoreTestingSelectionMixinProps>
- Enclosing interface:
CfnRestoreTestingSelectionMixinProps
@Stability(Stable)
public static final class CfnRestoreTestingSelectionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRestoreTestingSelectionMixinProps>
A builder for
CfnRestoreTestingSelectionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.iamRoleArn(String iamRoleArn) Sets the value ofCfnRestoreTestingSelectionMixinProps.getIamRoleArn()protectedResourceArns(List<String> protectedResourceArns) Sets the value ofCfnRestoreTestingSelectionMixinProps.getProtectedResourceArns()protectedResourceConditions(CfnRestoreTestingSelectionPropsMixin.ProtectedResourceConditionsProperty protectedResourceConditions) Sets the value ofCfnRestoreTestingSelectionMixinProps.getProtectedResourceConditions()protectedResourceConditions(IResolvable protectedResourceConditions) Sets the value ofCfnRestoreTestingSelectionMixinProps.getProtectedResourceConditions()protectedResourceType(String protectedResourceType) Sets the value ofCfnRestoreTestingSelectionMixinProps.getProtectedResourceType()restoreMetadataOverrides(Map<String, String> restoreMetadataOverrides) Sets the value ofCfnRestoreTestingSelectionMixinProps.getRestoreMetadataOverrides()restoreMetadataOverrides(IResolvable restoreMetadataOverrides) Sets the value ofCfnRestoreTestingSelectionMixinProps.getRestoreMetadataOverrides()restoreTestingPlanName(String restoreTestingPlanName) Sets the value ofCfnRestoreTestingSelectionMixinProps.getRestoreTestingPlanName()restoreTestingSelectionName(String restoreTestingSelectionName) Sets the value ofCfnRestoreTestingSelectionMixinProps.getRestoreTestingSelectionName()validationWindowHours(Number validationWindowHours) Sets the value ofCfnRestoreTestingSelectionMixinProps.getValidationWindowHours()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iamRoleArn
@Stability(Stable) public CfnRestoreTestingSelectionMixinProps.Builder iamRoleArn(String iamRoleArn) Sets the value ofCfnRestoreTestingSelectionMixinProps.getIamRoleArn()- Parameters:
iamRoleArn- The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource;. for example:arn:aws:iam::123456789012:role/S3Access.- Returns:
this
-
protectedResourceArns
@Stability(Stable) public CfnRestoreTestingSelectionMixinProps.Builder protectedResourceArns(List<String> protectedResourceArns) Sets the value ofCfnRestoreTestingSelectionMixinProps.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 CfnRestoreTestingSelectionMixinProps.Builder protectedResourceConditions(IResolvable protectedResourceConditions) Sets the value ofCfnRestoreTestingSelectionMixinProps.getProtectedResourceConditions()- Parameters:
protectedResourceConditions- In a resource testing selection, this parameter filters by specific conditions such asStringEqualsorStringNotEquals.- Returns:
this
-
protectedResourceConditions
@Stability(Stable) public CfnRestoreTestingSelectionMixinProps.Builder protectedResourceConditions(CfnRestoreTestingSelectionPropsMixin.ProtectedResourceConditionsProperty protectedResourceConditions) Sets the value ofCfnRestoreTestingSelectionMixinProps.getProtectedResourceConditions()- Parameters:
protectedResourceConditions- In a resource testing selection, this parameter filters by specific conditions such asStringEqualsorStringNotEquals.- Returns:
this
-
protectedResourceType
@Stability(Stable) public CfnRestoreTestingSelectionMixinProps.Builder protectedResourceType(String protectedResourceType) Sets the value ofCfnRestoreTestingSelectionMixinProps.getProtectedResourceType()- Parameters:
protectedResourceType- The type of AWS resource included in a resource testing selection;. for example, an Amazon EBS volume or an Amazon RDS database.- Returns:
this
-
restoreMetadataOverrides
@Stability(Stable) public CfnRestoreTestingSelectionMixinProps.Builder restoreMetadataOverrides(Map<String, String> restoreMetadataOverrides) Sets the value ofCfnRestoreTestingSelectionMixinProps.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 CfnRestoreTestingSelectionMixinProps.Builder restoreMetadataOverrides(IResolvable restoreMetadataOverrides) Sets the value ofCfnRestoreTestingSelectionMixinProps.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
-
restoreTestingPlanName
@Stability(Stable) public CfnRestoreTestingSelectionMixinProps.Builder restoreTestingPlanName(String restoreTestingPlanName) Sets the value ofCfnRestoreTestingSelectionMixinProps.getRestoreTestingPlanName()- Parameters:
restoreTestingPlanName- Unique string that is the name of the restore testing plan. The name cannot be changed after creation. The name must consist of only alphanumeric characters and underscores. Maximum length is 50.- Returns:
this
-
restoreTestingSelectionName
@Stability(Stable) public CfnRestoreTestingSelectionMixinProps.Builder restoreTestingSelectionName(String restoreTestingSelectionName) Sets the value ofCfnRestoreTestingSelectionMixinProps.getRestoreTestingSelectionName()- Parameters:
restoreTestingSelectionName- The unique name of the restore testing selection that belongs to the related restore testing plan. The name consists of only alphanumeric characters and underscores. Maximum length is 50.- Returns:
this
-
validationWindowHours
@Stability(Stable) public CfnRestoreTestingSelectionMixinProps.Builder validationWindowHours(Number validationWindowHours) Sets the value ofCfnRestoreTestingSelectionMixinProps.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<CfnRestoreTestingSelectionMixinProps>- Returns:
- a new instance of
CfnRestoreTestingSelectionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-