com.amazonaws.services.backup.model.RestoreTestingSelectionForGet Maven / Gradle / Ivy
Show all versions of aws-java-sdk-backup Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.backup.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* This contains metadata about a restore testing selection.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class RestoreTestingSelectionForGet implements Serializable, Cloneable, StructuredPojo {
/**
*
* The date and time that a restore testing selection was created, in Unix format and Coordinated Universal Time
* (UTC). The value of CreationTime
is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 201812:11:30.087 AM.
*
*/
private java.util.Date creationTime;
/**
*
* This identifies the request and allows failed requests to be retried without the risk of running the operation
* twice. If the request includes a CreatorRequestId
that matches an existing backup plan, that plan is
* returned. This parameter is optional.
*
*
* If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
*
*/
private String creatorRequestId;
/**
*
* 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
.
*
*/
private String iamRoleArn;
/**
*
* You can include specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you
* can include a wildcard: ProtectedResourceArns: ["*"]
, but not both.
*
*/
private java.util.List protectedResourceArns;
/**
*
* In a resource testing selection, this parameter filters by specific conditions such as StringEquals
* or StringNotEquals
.
*
*/
private ProtectedResourceConditions protectedResourceConditions;
/**
*
* The type of Amazon Web Services resource included in a resource testing selection; for example, an Amazon EBS
* volume or an Amazon RDS database.
*
*/
private String protectedResourceType;
/**
*
* 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.
*
*/
private java.util.Map restoreMetadataOverrides;
/**
*
* The RestoreTestingPlanName is a unique string that is the name of the restore testing plan.
*
*/
private String restoreTestingPlanName;
/**
*
* This is the unique name of the restore testing selection that belongs to the related restore testing plan.
*
*/
private String restoreTestingSelectionName;
/**
*
* 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.
*
*/
private Integer validationWindowHours;
/**
*
* The date and time that a restore testing selection was created, in Unix format and Coordinated Universal Time
* (UTC). The value of CreationTime
is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 201812:11:30.087 AM.
*
*
* @param creationTime
* The date and time that a restore testing selection was created, in Unix format and Coordinated Universal
* Time (UTC). The value of CreationTime
is accurate to milliseconds. For example, the value
* 1516925490.087 represents Friday, January 26, 201812:11:30.087 AM.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* The date and time that a restore testing selection was created, in Unix format and Coordinated Universal Time
* (UTC). The value of CreationTime
is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 201812:11:30.087 AM.
*
*
* @return The date and time that a restore testing selection was created, in Unix format and Coordinated Universal
* Time (UTC). The value of CreationTime
is accurate to milliseconds. For example, the value
* 1516925490.087 represents Friday, January 26, 201812:11:30.087 AM.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* The date and time that a restore testing selection was created, in Unix format and Coordinated Universal Time
* (UTC). The value of CreationTime
is accurate to milliseconds. For example, the value 1516925490.087
* represents Friday, January 26, 201812:11:30.087 AM.
*
*
* @param creationTime
* The date and time that a restore testing selection was created, in Unix format and Coordinated Universal
* Time (UTC). The value of CreationTime
is accurate to milliseconds. For example, the value
* 1516925490.087 represents Friday, January 26, 201812:11:30.087 AM.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* This identifies the request and allows failed requests to be retried without the risk of running the operation
* twice. If the request includes a CreatorRequestId
that matches an existing backup plan, that plan is
* returned. This parameter is optional.
*
*
* If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
*
*
* @param creatorRequestId
* This identifies the request and allows failed requests to be retried without the risk of running the
* operation twice. If the request includes a CreatorRequestId
that matches an existing backup
* plan, that plan is returned. This parameter is optional.
*
* If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
*/
public void setCreatorRequestId(String creatorRequestId) {
this.creatorRequestId = creatorRequestId;
}
/**
*
* This identifies the request and allows failed requests to be retried without the risk of running the operation
* twice. If the request includes a CreatorRequestId
that matches an existing backup plan, that plan is
* returned. This parameter is optional.
*
*
* If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
*
*
* @return This identifies the request and allows failed requests to be retried without the risk of running the
* operation twice. If the request includes a CreatorRequestId
that matches an existing backup
* plan, that plan is returned. This parameter is optional.
*
* If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
*/
public String getCreatorRequestId() {
return this.creatorRequestId;
}
/**
*
* This identifies the request and allows failed requests to be retried without the risk of running the operation
* twice. If the request includes a CreatorRequestId
that matches an existing backup plan, that plan is
* returned. This parameter is optional.
*
*
* If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
*
*
* @param creatorRequestId
* This identifies the request and allows failed requests to be retried without the risk of running the
* operation twice. If the request includes a CreatorRequestId
that matches an existing backup
* plan, that plan is returned. This parameter is optional.
*
* If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet withCreatorRequestId(String creatorRequestId) {
setCreatorRequestId(creatorRequestId);
return this;
}
/**
*
* 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
.
*
*
* @param 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 void setIamRoleArn(String iamRoleArn) {
this.iamRoleArn = 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
.
*
*
* @return 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() {
return this.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
.
*
*
* @param 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
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet withIamRoleArn(String iamRoleArn) {
setIamRoleArn(iamRoleArn);
return this;
}
/**
*
* You can include specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you
* can include a wildcard: ProtectedResourceArns: ["*"]
, but not both.
*
*
* @return You can include specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
* or you can include a wildcard: ProtectedResourceArns: ["*"]
, but not both.
*/
public java.util.List getProtectedResourceArns() {
return protectedResourceArns;
}
/**
*
* You can include specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you
* can include a wildcard: ProtectedResourceArns: ["*"]
, but not both.
*
*
* @param protectedResourceArns
* You can include specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
* or you can include a wildcard: ProtectedResourceArns: ["*"]
, but not both.
*/
public void setProtectedResourceArns(java.util.Collection protectedResourceArns) {
if (protectedResourceArns == null) {
this.protectedResourceArns = null;
return;
}
this.protectedResourceArns = new java.util.ArrayList(protectedResourceArns);
}
/**
*
* You can include specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you
* can include a wildcard: ProtectedResourceArns: ["*"]
, but not both.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setProtectedResourceArns(java.util.Collection)} or
* {@link #withProtectedResourceArns(java.util.Collection)} if you want to override the existing values.
*
*
* @param protectedResourceArns
* You can include specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
* or you can include a wildcard: ProtectedResourceArns: ["*"]
, but not both.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet withProtectedResourceArns(String... protectedResourceArns) {
if (this.protectedResourceArns == null) {
setProtectedResourceArns(new java.util.ArrayList(protectedResourceArns.length));
}
for (String ele : protectedResourceArns) {
this.protectedResourceArns.add(ele);
}
return this;
}
/**
*
* You can include specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you
* can include a wildcard: ProtectedResourceArns: ["*"]
, but not both.
*
*
* @param protectedResourceArns
* You can include specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
* or you can include a wildcard: ProtectedResourceArns: ["*"]
, but not both.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet withProtectedResourceArns(java.util.Collection protectedResourceArns) {
setProtectedResourceArns(protectedResourceArns);
return this;
}
/**
*
* In a resource testing selection, this parameter filters by specific conditions such as StringEquals
* or StringNotEquals
.
*
*
* @param protectedResourceConditions
* In a resource testing selection, this parameter filters by specific conditions such as
* StringEquals
or StringNotEquals
.
*/
public void setProtectedResourceConditions(ProtectedResourceConditions protectedResourceConditions) {
this.protectedResourceConditions = protectedResourceConditions;
}
/**
*
* In a resource testing selection, this parameter filters by specific conditions such as StringEquals
* or StringNotEquals
.
*
*
* @return In a resource testing selection, this parameter filters by specific conditions such as
* StringEquals
or StringNotEquals
.
*/
public ProtectedResourceConditions getProtectedResourceConditions() {
return this.protectedResourceConditions;
}
/**
*
* In a resource testing selection, this parameter filters by specific conditions such as StringEquals
* or StringNotEquals
.
*
*
* @param protectedResourceConditions
* In a resource testing selection, this parameter filters by specific conditions such as
* StringEquals
or StringNotEquals
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet withProtectedResourceConditions(ProtectedResourceConditions protectedResourceConditions) {
setProtectedResourceConditions(protectedResourceConditions);
return this;
}
/**
*
* The type of Amazon Web Services resource included in a resource testing selection; for example, an Amazon EBS
* volume or an Amazon RDS database.
*
*
* @param protectedResourceType
* The type of Amazon Web Services resource included in a resource testing selection; for example, an Amazon
* EBS volume or an Amazon RDS database.
*/
public void setProtectedResourceType(String protectedResourceType) {
this.protectedResourceType = protectedResourceType;
}
/**
*
* The type of Amazon Web Services resource included in a resource testing selection; for example, an Amazon EBS
* volume or an Amazon RDS database.
*
*
* @return The type of Amazon Web Services resource included in a resource testing selection; for example, an Amazon
* EBS volume or an Amazon RDS database.
*/
public String getProtectedResourceType() {
return this.protectedResourceType;
}
/**
*
* The type of Amazon Web Services resource included in a resource testing selection; for example, an Amazon EBS
* volume or an Amazon RDS database.
*
*
* @param protectedResourceType
* The type of Amazon Web Services resource included in a resource testing selection; for example, an Amazon
* EBS volume or an Amazon RDS database.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet withProtectedResourceType(String protectedResourceType) {
setProtectedResourceType(protectedResourceType);
return this;
}
/**
*
* 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.
*
*
* @return 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 java.util.Map getRestoreMetadataOverrides() {
return 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.
*
*
* @param 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 void setRestoreMetadataOverrides(java.util.Map restoreMetadataOverrides) {
this.restoreMetadataOverrides = 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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet withRestoreMetadataOverrides(java.util.Map restoreMetadataOverrides) {
setRestoreMetadataOverrides(restoreMetadataOverrides);
return this;
}
/**
* Add a single RestoreMetadataOverrides entry
*
* @see RestoreTestingSelectionForGet#withRestoreMetadataOverrides
* @returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet addRestoreMetadataOverridesEntry(String key, String value) {
if (null == this.restoreMetadataOverrides) {
this.restoreMetadataOverrides = new java.util.HashMap();
}
if (this.restoreMetadataOverrides.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.restoreMetadataOverrides.put(key, value);
return this;
}
/**
* Removes all the entries added into RestoreMetadataOverrides.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet clearRestoreMetadataOverridesEntries() {
this.restoreMetadataOverrides = null;
return this;
}
/**
*
* The RestoreTestingPlanName is a unique string that is the name of the restore testing plan.
*
*
* @param restoreTestingPlanName
* The RestoreTestingPlanName is a unique string that is the name of the restore testing plan.
*/
public void setRestoreTestingPlanName(String restoreTestingPlanName) {
this.restoreTestingPlanName = restoreTestingPlanName;
}
/**
*
* The RestoreTestingPlanName is a unique string that is the name of the restore testing plan.
*
*
* @return The RestoreTestingPlanName is a unique string that is the name of the restore testing plan.
*/
public String getRestoreTestingPlanName() {
return this.restoreTestingPlanName;
}
/**
*
* The RestoreTestingPlanName is a unique string that is the name of the restore testing plan.
*
*
* @param restoreTestingPlanName
* The RestoreTestingPlanName is a unique string that is the name of the restore testing plan.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet withRestoreTestingPlanName(String restoreTestingPlanName) {
setRestoreTestingPlanName(restoreTestingPlanName);
return this;
}
/**
*
* This is the unique name of the restore testing selection that belongs to the related restore testing plan.
*
*
* @param restoreTestingSelectionName
* This is the unique name of the restore testing selection that belongs to the related restore testing plan.
*/
public void setRestoreTestingSelectionName(String restoreTestingSelectionName) {
this.restoreTestingSelectionName = restoreTestingSelectionName;
}
/**
*
* This is the unique name of the restore testing selection that belongs to the related restore testing plan.
*
*
* @return This is the unique name of the restore testing selection that belongs to the related restore testing
* plan.
*/
public String getRestoreTestingSelectionName() {
return this.restoreTestingSelectionName;
}
/**
*
* This is the unique name of the restore testing selection that belongs to the related restore testing plan.
*
*
* @param restoreTestingSelectionName
* This is the unique name of the restore testing selection that belongs to the related restore testing plan.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet withRestoreTestingSelectionName(String restoreTestingSelectionName) {
setRestoreTestingSelectionName(restoreTestingSelectionName);
return this;
}
/**
*
* 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.
*
*
* @param 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 void setValidationWindowHours(Integer validationWindowHours) {
this.validationWindowHours = 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.
*
*
* @return 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() {
return this.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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RestoreTestingSelectionForGet withValidationWindowHours(Integer validationWindowHours) {
setValidationWindowHours(validationWindowHours);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getCreatorRequestId() != null)
sb.append("CreatorRequestId: ").append(getCreatorRequestId()).append(",");
if (getIamRoleArn() != null)
sb.append("IamRoleArn: ").append(getIamRoleArn()).append(",");
if (getProtectedResourceArns() != null)
sb.append("ProtectedResourceArns: ").append(getProtectedResourceArns()).append(",");
if (getProtectedResourceConditions() != null)
sb.append("ProtectedResourceConditions: ").append(getProtectedResourceConditions()).append(",");
if (getProtectedResourceType() != null)
sb.append("ProtectedResourceType: ").append(getProtectedResourceType()).append(",");
if (getRestoreMetadataOverrides() != null)
sb.append("RestoreMetadataOverrides: ").append("***Sensitive Data Redacted***").append(",");
if (getRestoreTestingPlanName() != null)
sb.append("RestoreTestingPlanName: ").append(getRestoreTestingPlanName()).append(",");
if (getRestoreTestingSelectionName() != null)
sb.append("RestoreTestingSelectionName: ").append(getRestoreTestingSelectionName()).append(",");
if (getValidationWindowHours() != null)
sb.append("ValidationWindowHours: ").append(getValidationWindowHours());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof RestoreTestingSelectionForGet == false)
return false;
RestoreTestingSelectionForGet other = (RestoreTestingSelectionForGet) obj;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getCreatorRequestId() == null ^ this.getCreatorRequestId() == null)
return false;
if (other.getCreatorRequestId() != null && other.getCreatorRequestId().equals(this.getCreatorRequestId()) == false)
return false;
if (other.getIamRoleArn() == null ^ this.getIamRoleArn() == null)
return false;
if (other.getIamRoleArn() != null && other.getIamRoleArn().equals(this.getIamRoleArn()) == false)
return false;
if (other.getProtectedResourceArns() == null ^ this.getProtectedResourceArns() == null)
return false;
if (other.getProtectedResourceArns() != null && other.getProtectedResourceArns().equals(this.getProtectedResourceArns()) == false)
return false;
if (other.getProtectedResourceConditions() == null ^ this.getProtectedResourceConditions() == null)
return false;
if (other.getProtectedResourceConditions() != null && other.getProtectedResourceConditions().equals(this.getProtectedResourceConditions()) == false)
return false;
if (other.getProtectedResourceType() == null ^ this.getProtectedResourceType() == null)
return false;
if (other.getProtectedResourceType() != null && other.getProtectedResourceType().equals(this.getProtectedResourceType()) == false)
return false;
if (other.getRestoreMetadataOverrides() == null ^ this.getRestoreMetadataOverrides() == null)
return false;
if (other.getRestoreMetadataOverrides() != null && other.getRestoreMetadataOverrides().equals(this.getRestoreMetadataOverrides()) == false)
return false;
if (other.getRestoreTestingPlanName() == null ^ this.getRestoreTestingPlanName() == null)
return false;
if (other.getRestoreTestingPlanName() != null && other.getRestoreTestingPlanName().equals(this.getRestoreTestingPlanName()) == false)
return false;
if (other.getRestoreTestingSelectionName() == null ^ this.getRestoreTestingSelectionName() == null)
return false;
if (other.getRestoreTestingSelectionName() != null && other.getRestoreTestingSelectionName().equals(this.getRestoreTestingSelectionName()) == false)
return false;
if (other.getValidationWindowHours() == null ^ this.getValidationWindowHours() == null)
return false;
if (other.getValidationWindowHours() != null && other.getValidationWindowHours().equals(this.getValidationWindowHours()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getCreatorRequestId() == null) ? 0 : getCreatorRequestId().hashCode());
hashCode = prime * hashCode + ((getIamRoleArn() == null) ? 0 : getIamRoleArn().hashCode());
hashCode = prime * hashCode + ((getProtectedResourceArns() == null) ? 0 : getProtectedResourceArns().hashCode());
hashCode = prime * hashCode + ((getProtectedResourceConditions() == null) ? 0 : getProtectedResourceConditions().hashCode());
hashCode = prime * hashCode + ((getProtectedResourceType() == null) ? 0 : getProtectedResourceType().hashCode());
hashCode = prime * hashCode + ((getRestoreMetadataOverrides() == null) ? 0 : getRestoreMetadataOverrides().hashCode());
hashCode = prime * hashCode + ((getRestoreTestingPlanName() == null) ? 0 : getRestoreTestingPlanName().hashCode());
hashCode = prime * hashCode + ((getRestoreTestingSelectionName() == null) ? 0 : getRestoreTestingSelectionName().hashCode());
hashCode = prime * hashCode + ((getValidationWindowHours() == null) ? 0 : getValidationWindowHours().hashCode());
return hashCode;
}
@Override
public RestoreTestingSelectionForGet clone() {
try {
return (RestoreTestingSelectionForGet) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.backup.model.transform.RestoreTestingSelectionForGetMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}