Interface RestoreTestingSelectionForCreate.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RestoreTestingSelectionForCreate.Builder,
,RestoreTestingSelectionForCreate> SdkBuilder<RestoreTestingSelectionForCreate.Builder,
,RestoreTestingSelectionForCreate> SdkPojo
- Enclosing class:
RestoreTestingSelectionForCreate
-
Method Summary
Modifier and TypeMethodDescriptioniamRoleArn
(String iamRoleArn) The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example:arn:aws:iam::123456789012:role/S3Access
.protectedResourceArns
(String... protectedResourceArns) Each protected resource can be filtered by its specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or by a wildcard:ProtectedResourceArns: ["*"]
, but not both.protectedResourceArns
(Collection<String> protectedResourceArns) Each protected resource can be filtered by its specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or by a wildcard:ProtectedResourceArns: ["*"]
, but not both.protectedResourceConditions
(Consumer<ProtectedResourceConditions.Builder> protectedResourceConditions) If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such asProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }]
.protectedResourceConditions
(ProtectedResourceConditions protectedResourceConditions) If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such asProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }]
.protectedResourceType
(String protectedResourceType) The type of Amazon Web Services resource included in a restore testing selection; for example, an Amazon EBS volume or an Amazon RDS database.restoreMetadataOverrides
(Map<String, String> restoreMetadataOverrides) You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
.restoreTestingSelectionName
(String restoreTestingSelectionName) This is the unique name of the restore testing selection that belongs to the related restore testing plan.validationWindowHours
(Integer validationWindowHours) This is amount of hours (1 to 168) available to run a validation script on the data.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
iamRoleArn
The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example:
arn:aws:iam::123456789012:role/S3Access
.- Parameters:
iamRoleArn
- The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example:arn:aws:iam::123456789012:role/S3Access
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectedResourceArns
RestoreTestingSelectionForCreate.Builder protectedResourceArns(Collection<String> protectedResourceArns) Each protected resource can be filtered by its specific ARNs, such as
ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or by a wildcard:ProtectedResourceArns: ["*"]
, but not both.- Parameters:
protectedResourceArns
- Each protected resource can be filtered by its specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or by a wildcard:ProtectedResourceArns: ["*"]
, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectedResourceArns
Each protected resource can be filtered by its specific ARNs, such as
ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or by a wildcard:ProtectedResourceArns: ["*"]
, but not both.- Parameters:
protectedResourceArns
- Each protected resource can be filtered by its specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or by a wildcard:ProtectedResourceArns: ["*"]
, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectedResourceConditions
RestoreTestingSelectionForCreate.Builder protectedResourceConditions(ProtectedResourceConditions protectedResourceConditions) If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as
ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }]
.- Parameters:
protectedResourceConditions
- If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such asProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }]
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectedResourceConditions
default RestoreTestingSelectionForCreate.Builder protectedResourceConditions(Consumer<ProtectedResourceConditions.Builder> protectedResourceConditions) If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as
This is a convenience method that creates an instance of theProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }]
.ProtectedResourceConditions.Builder
avoiding the need to create one manually viaProtectedResourceConditions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprotectedResourceConditions(ProtectedResourceConditions)
.- Parameters:
protectedResourceConditions
- a consumer that will call methods onProtectedResourceConditions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protectedResourceType
The type of Amazon Web Services resource included in a restore testing selection; for example, an Amazon EBS volume or an Amazon RDS database.
Supported resource types accepted include:
-
Aurora
for Amazon Aurora -
DocumentDB
for Amazon DocumentDB (with MongoDB compatibility) -
DynamoDB
for Amazon DynamoDB -
EBS
for Amazon Elastic Block Store -
EC2
for Amazon Elastic Compute Cloud -
EFS
for Amazon Elastic File System -
FSx
for Amazon FSx -
Neptune
for Amazon Neptune -
RDS
for Amazon Relational Database Service -
S3
for Amazon S3
- Parameters:
protectedResourceType
- The type of Amazon Web Services resource included in a restore testing selection; for example, an Amazon EBS volume or an Amazon RDS database.Supported resource types accepted include:
-
Aurora
for Amazon Aurora -
DocumentDB
for Amazon DocumentDB (with MongoDB compatibility) -
DynamoDB
for Amazon DynamoDB -
EBS
for Amazon Elastic Block Store -
EC2
for Amazon Elastic Compute Cloud -
EFS
for Amazon Elastic File System -
FSx
for Amazon FSx -
Neptune
for Amazon Neptune -
RDS
for Amazon Relational Database Service -
S3
for Amazon S3
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
restoreMetadataOverrides
RestoreTestingSelectionForCreate.Builder restoreMetadataOverrides(Map<String, String> restoreMetadataOverrides) You can override certain restore metadata keys by including the parameter
RestoreMetadataOverrides
in the body ofRestoreTestingSelection
. Key values are not case sensitive.See the complete list of restore testing inferred metadata.
- Parameters:
restoreMetadataOverrides
- You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
. Key values are not case sensitive.See the complete list of restore testing inferred metadata.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restoreTestingSelectionName
RestoreTestingSelectionForCreate.Builder restoreTestingSelectionName(String restoreTestingSelectionName) This is the unique name of the restore testing selection that belongs to the related restore testing plan.
- Parameters:
restoreTestingSelectionName
- This is the unique name of the restore testing selection that belongs to the related restore testing plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-