@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RestoreTestingSelectionForCreate extends Object implements Serializable, Cloneable, StructuredPojo
This contains metadata about a specific restore testing selection.
ProtectedResourceType is required, such as Amazon EBS or Amazon EC2.
 This consists of RestoreTestingSelectionName, ProtectedResourceType, and one of the
 following:
 
 ProtectedResourceArns
 
 ProtectedResourceConditions
 
Each protected resource type can have one single value.
 A restore testing selection can include a wildcard value ("*") for ProtectedResourceArns along with
 ProtectedResourceConditions. Alternatively, you can include up to 30 specific protected resource ARNs in
 ProtectedResourceArns.
 
 ProtectedResourceConditions examples include as StringEquals and
 StringNotEquals.
 
| Constructor and Description | 
|---|
| RestoreTestingSelectionForCreate() | 
| Modifier and Type | Method and Description | 
|---|---|
| RestoreTestingSelectionForCreate | addRestoreMetadataOverridesEntry(String key,
                                String value)Add a single RestoreMetadataOverrides entry | 
| RestoreTestingSelectionForCreate | clearRestoreMetadataOverridesEntries()Removes all the entries added into RestoreMetadataOverrides. | 
| RestoreTestingSelectionForCreate | clone() | 
| boolean | equals(Object obj) | 
| String | getIamRoleArn()
 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. | 
| List<String> | getProtectedResourceArns()
 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. | 
| ProtectedResourceConditions | getProtectedResourceConditions()
 If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as
  ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }]. | 
| String | getProtectedResourceType()
 The type of Amazon Web Services resource included in a restore testing selection; for example, an Amazon EBS
 volume or an Amazon RDS database. | 
| Map<String,String> | getRestoreMetadataOverrides()
 You can override certain restore metadata keys by including the parameter  RestoreMetadataOverridesin the body ofRestoreTestingSelection. | 
| String | getRestoreTestingSelectionName()
 This is the unique name of the restore testing selection that belongs to the related restore testing plan. | 
| Integer | getValidationWindowHours()
 This is amount of hours (1 to 168) available to run a validation script on the data. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setIamRoleArn(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. | 
| void | setProtectedResourceArns(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. | 
| void | setProtectedResourceConditions(ProtectedResourceConditions protectedResourceConditions)
 If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as
  ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }]. | 
| void | setProtectedResourceType(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. | 
| void | setRestoreMetadataOverrides(Map<String,String> restoreMetadataOverrides)
 You can override certain restore metadata keys by including the parameter  RestoreMetadataOverridesin the body ofRestoreTestingSelection. | 
| void | setRestoreTestingSelectionName(String restoreTestingSelectionName)
 This is the unique name of the restore testing selection that belongs to the related restore testing plan. | 
| void | setValidationWindowHours(Integer validationWindowHours)
 This is amount of hours (1 to 168) available to run a validation script on the data. | 
| String | toString()Returns a string representation of this object. | 
| RestoreTestingSelectionForCreate | withIamRoleArn(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. | 
| RestoreTestingSelectionForCreate | withProtectedResourceArns(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. | 
| RestoreTestingSelectionForCreate | withProtectedResourceArns(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. | 
| RestoreTestingSelectionForCreate | withProtectedResourceConditions(ProtectedResourceConditions protectedResourceConditions)
 If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as
  ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }]. | 
| RestoreTestingSelectionForCreate | withProtectedResourceType(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. | 
| RestoreTestingSelectionForCreate | withRestoreMetadataOverrides(Map<String,String> restoreMetadataOverrides)
 You can override certain restore metadata keys by including the parameter  RestoreMetadataOverridesin the body ofRestoreTestingSelection. | 
| RestoreTestingSelectionForCreate | withRestoreTestingSelectionName(String restoreTestingSelectionName)
 This is the unique name of the restore testing selection that belongs to the related restore testing plan. | 
| RestoreTestingSelectionForCreate | withValidationWindowHours(Integer validationWindowHours)
 This is amount of hours (1 to 168) available to run a validation script on the data. | 
public void setIamRoleArn(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.
 
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.public String getIamRoleArn()
 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.
 
arn:aws:iam::123456789012:role/S3Access.public RestoreTestingSelectionForCreate withIamRoleArn(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.
 
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.public List<String> getProtectedResourceArns()
 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.
 
ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."] or by a wildcard:
         ProtectedResourceArns: ["*"], but not both.public void setProtectedResourceArns(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.
 
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.public RestoreTestingSelectionForCreate withProtectedResourceArns(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.
 
 NOTE: This method appends the values to the existing list (if any). Use
 setProtectedResourceArns(java.util.Collection) or
 withProtectedResourceArns(java.util.Collection) if you want to override the existing values.
 
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.public RestoreTestingSelectionForCreate withProtectedResourceArns(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.
 
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.public void setProtectedResourceConditions(ProtectedResourceConditions protectedResourceConditions)
 If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as
 ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }].
 
protectedResourceConditions - If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as
        ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }].public ProtectedResourceConditions getProtectedResourceConditions()
 If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as
 ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }].
 
ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }].public RestoreTestingSelectionForCreate withProtectedResourceConditions(ProtectedResourceConditions protectedResourceConditions)
 If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as
 ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }].
 
protectedResourceConditions - If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as
        ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }].public void setProtectedResourceType(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.
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
 
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
        
public String getProtectedResourceType()
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
 
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
         
public RestoreTestingSelectionForCreate withProtectedResourceType(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.
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
 
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
        
public Map<String,String> getRestoreMetadataOverrides()
 You can override certain restore metadata keys by including the parameter RestoreMetadataOverrides
 in the body of RestoreTestingSelection. Key values are not case sensitive.
 
See the complete list of restore testing inferred metadata.
RestoreMetadataOverrides in the body of RestoreTestingSelection. Key values are
         not case sensitive.
         See the complete list of restore testing inferred metadata.
public void setRestoreMetadataOverrides(Map<String,String> restoreMetadataOverrides)
 You can override certain restore metadata keys by including the parameter RestoreMetadataOverrides
 in the body of RestoreTestingSelection. Key values are not case sensitive.
 
See the complete list of restore testing inferred metadata.
restoreMetadataOverrides - You can override certain restore metadata keys by including the parameter
        RestoreMetadataOverrides in the body of RestoreTestingSelection. Key values are
        not case sensitive.
        See the complete list of restore testing inferred metadata.
public RestoreTestingSelectionForCreate withRestoreMetadataOverrides(Map<String,String> restoreMetadataOverrides)
 You can override certain restore metadata keys by including the parameter RestoreMetadataOverrides
 in the body of RestoreTestingSelection. Key values are not case sensitive.
 
See the complete list of restore testing inferred metadata.
restoreMetadataOverrides - You can override certain restore metadata keys by including the parameter
        RestoreMetadataOverrides in the body of RestoreTestingSelection. Key values are
        not case sensitive.
        See the complete list of restore testing inferred metadata.
public RestoreTestingSelectionForCreate addRestoreMetadataOverridesEntry(String key, String value)
public RestoreTestingSelectionForCreate clearRestoreMetadataOverridesEntries()
public void setRestoreTestingSelectionName(String restoreTestingSelectionName)
This is the unique name of the restore testing selection that belongs to the related restore testing plan.
restoreTestingSelectionName - This is the unique name of the restore testing selection that belongs to the related restore testing plan.public String getRestoreTestingSelectionName()
This is the unique name of the restore testing selection that belongs to the related restore testing plan.
public RestoreTestingSelectionForCreate withRestoreTestingSelectionName(String restoreTestingSelectionName)
This is the unique name of the restore testing selection that belongs to the related restore testing plan.
restoreTestingSelectionName - This is the unique name of the restore testing selection that belongs to the related restore testing plan.public void setValidationWindowHours(Integer 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.
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.public Integer getValidationWindowHours()
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.
public RestoreTestingSelectionForCreate withValidationWindowHours(Integer 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.
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.public String toString()
toString in class ObjectObject.toString()public RestoreTestingSelectionForCreate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.