com.amazonaws.services.rds.model.BacktrackDBClusterRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-rds Show documentation
/*
* Copyright 2016-2021 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.rds.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class BacktrackDBClusterRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The DB cluster identifier of the DB cluster to be backtracked. This parameter is stored as a lowercase string.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
*
*/
private String dBClusterIdentifier;
/**
*
* The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. For more information
* about ISO 8601, see the ISO8601 Wikipedia page.
*
*
*
* If the specified time isn't a consistent time for the DB cluster, Aurora automatically chooses the nearest
* possible consistent time for the DB cluster.
*
*
*
* Constraints:
*
*
* -
*
* Must contain a valid ISO 8601 timestamp.
*
*
* -
*
* Can't contain a timestamp set in the future.
*
*
*
*
* Example: 2017-07-08T18:00Z
*
*/
private java.util.Date backtrackTo;
/**
*
* A value that indicates whether to force the DB cluster to backtrack when binary logging is enabled. Otherwise, an
* error occurs when binary logging is enabled.
*
*/
private Boolean force;
/**
*
* A value that indicates whether to backtrack the DB cluster to the earliest possible backtrack time when
* BacktrackTo is set to a timestamp earlier than the earliest backtrack time. When this parameter is
* disabled and BacktrackTo is set to a timestamp earlier than the earliest backtrack time, an error occurs.
*
*/
private Boolean useEarliestTimeOnPointInTimeUnavailable;
/**
*
* The DB cluster identifier of the DB cluster to be backtracked. This parameter is stored as a lowercase string.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
*
*
* @param dBClusterIdentifier
* The DB cluster identifier of the DB cluster to be backtracked. This parameter is stored as a lowercase
* string.
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
*/
public void setDBClusterIdentifier(String dBClusterIdentifier) {
this.dBClusterIdentifier = dBClusterIdentifier;
}
/**
*
* The DB cluster identifier of the DB cluster to be backtracked. This parameter is stored as a lowercase string.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
*
*
* @return The DB cluster identifier of the DB cluster to be backtracked. This parameter is stored as a lowercase
* string.
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
*/
public String getDBClusterIdentifier() {
return this.dBClusterIdentifier;
}
/**
*
* The DB cluster identifier of the DB cluster to be backtracked. This parameter is stored as a lowercase string.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
*
*
* @param dBClusterIdentifier
* The DB cluster identifier of the DB cluster to be backtracked. This parameter is stored as a lowercase
* string.
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 63 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Can't end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* Example: my-cluster1
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BacktrackDBClusterRequest withDBClusterIdentifier(String dBClusterIdentifier) {
setDBClusterIdentifier(dBClusterIdentifier);
return this;
}
/**
*
* The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. For more information
* about ISO 8601, see the ISO8601 Wikipedia page.
*
*
*
* If the specified time isn't a consistent time for the DB cluster, Aurora automatically chooses the nearest
* possible consistent time for the DB cluster.
*
*
*
* Constraints:
*
*
* -
*
* Must contain a valid ISO 8601 timestamp.
*
*
* -
*
* Can't contain a timestamp set in the future.
*
*
*
*
* Example: 2017-07-08T18:00Z
*
*
* @param backtrackTo
* The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. For more
* information about ISO 8601, see the ISO8601 Wikipedia
* page.
*
* If the specified time isn't a consistent time for the DB cluster, Aurora automatically chooses the nearest
* possible consistent time for the DB cluster.
*
*
*
* Constraints:
*
*
* -
*
* Must contain a valid ISO 8601 timestamp.
*
*
* -
*
* Can't contain a timestamp set in the future.
*
*
*
*
* Example: 2017-07-08T18:00Z
*/
public void setBacktrackTo(java.util.Date backtrackTo) {
this.backtrackTo = backtrackTo;
}
/**
*
* The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. For more information
* about ISO 8601, see the ISO8601 Wikipedia page.
*
*
*
* If the specified time isn't a consistent time for the DB cluster, Aurora automatically chooses the nearest
* possible consistent time for the DB cluster.
*
*
*
* Constraints:
*
*
* -
*
* Must contain a valid ISO 8601 timestamp.
*
*
* -
*
* Can't contain a timestamp set in the future.
*
*
*
*
* Example: 2017-07-08T18:00Z
*
*
* @return The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. For more
* information about ISO 8601, see the ISO8601 Wikipedia
* page.
*
* If the specified time isn't a consistent time for the DB cluster, Aurora automatically chooses the
* nearest possible consistent time for the DB cluster.
*
*
*
* Constraints:
*
*
* -
*
* Must contain a valid ISO 8601 timestamp.
*
*
* -
*
* Can't contain a timestamp set in the future.
*
*
*
*
* Example: 2017-07-08T18:00Z
*/
public java.util.Date getBacktrackTo() {
return this.backtrackTo;
}
/**
*
* The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. For more information
* about ISO 8601, see the ISO8601 Wikipedia page.
*
*
*
* If the specified time isn't a consistent time for the DB cluster, Aurora automatically chooses the nearest
* possible consistent time for the DB cluster.
*
*
*
* Constraints:
*
*
* -
*
* Must contain a valid ISO 8601 timestamp.
*
*
* -
*
* Can't contain a timestamp set in the future.
*
*
*
*
* Example: 2017-07-08T18:00Z
*
*
* @param backtrackTo
* The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. For more
* information about ISO 8601, see the ISO8601 Wikipedia
* page.
*
* If the specified time isn't a consistent time for the DB cluster, Aurora automatically chooses the nearest
* possible consistent time for the DB cluster.
*
*
*
* Constraints:
*
*
* -
*
* Must contain a valid ISO 8601 timestamp.
*
*
* -
*
* Can't contain a timestamp set in the future.
*
*
*
*
* Example: 2017-07-08T18:00Z
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BacktrackDBClusterRequest withBacktrackTo(java.util.Date backtrackTo) {
setBacktrackTo(backtrackTo);
return this;
}
/**
*
* A value that indicates whether to force the DB cluster to backtrack when binary logging is enabled. Otherwise, an
* error occurs when binary logging is enabled.
*
*
* @param force
* A value that indicates whether to force the DB cluster to backtrack when binary logging is enabled.
* Otherwise, an error occurs when binary logging is enabled.
*/
public void setForce(Boolean force) {
this.force = force;
}
/**
*
* A value that indicates whether to force the DB cluster to backtrack when binary logging is enabled. Otherwise, an
* error occurs when binary logging is enabled.
*
*
* @return A value that indicates whether to force the DB cluster to backtrack when binary logging is enabled.
* Otherwise, an error occurs when binary logging is enabled.
*/
public Boolean getForce() {
return this.force;
}
/**
*
* A value that indicates whether to force the DB cluster to backtrack when binary logging is enabled. Otherwise, an
* error occurs when binary logging is enabled.
*
*
* @param force
* A value that indicates whether to force the DB cluster to backtrack when binary logging is enabled.
* Otherwise, an error occurs when binary logging is enabled.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BacktrackDBClusterRequest withForce(Boolean force) {
setForce(force);
return this;
}
/**
*
* A value that indicates whether to force the DB cluster to backtrack when binary logging is enabled. Otherwise, an
* error occurs when binary logging is enabled.
*
*
* @return A value that indicates whether to force the DB cluster to backtrack when binary logging is enabled.
* Otherwise, an error occurs when binary logging is enabled.
*/
public Boolean isForce() {
return this.force;
}
/**
*
* A value that indicates whether to backtrack the DB cluster to the earliest possible backtrack time when
* BacktrackTo is set to a timestamp earlier than the earliest backtrack time. When this parameter is
* disabled and BacktrackTo is set to a timestamp earlier than the earliest backtrack time, an error occurs.
*
*
* @param useEarliestTimeOnPointInTimeUnavailable
* A value that indicates whether to backtrack the DB cluster to the earliest possible backtrack time when
* BacktrackTo is set to a timestamp earlier than the earliest backtrack time. When this parameter is
* disabled and BacktrackTo is set to a timestamp earlier than the earliest backtrack time, an error
* occurs.
*/
public void setUseEarliestTimeOnPointInTimeUnavailable(Boolean useEarliestTimeOnPointInTimeUnavailable) {
this.useEarliestTimeOnPointInTimeUnavailable = useEarliestTimeOnPointInTimeUnavailable;
}
/**
*
* A value that indicates whether to backtrack the DB cluster to the earliest possible backtrack time when
* BacktrackTo is set to a timestamp earlier than the earliest backtrack time. When this parameter is
* disabled and BacktrackTo is set to a timestamp earlier than the earliest backtrack time, an error occurs.
*
*
* @return A value that indicates whether to backtrack the DB cluster to the earliest possible backtrack time when
* BacktrackTo is set to a timestamp earlier than the earliest backtrack time. When this parameter is
* disabled and BacktrackTo is set to a timestamp earlier than the earliest backtrack time, an error
* occurs.
*/
public Boolean getUseEarliestTimeOnPointInTimeUnavailable() {
return this.useEarliestTimeOnPointInTimeUnavailable;
}
/**
*
* A value that indicates whether to backtrack the DB cluster to the earliest possible backtrack time when
* BacktrackTo is set to a timestamp earlier than the earliest backtrack time. When this parameter is
* disabled and BacktrackTo is set to a timestamp earlier than the earliest backtrack time, an error occurs.
*
*
* @param useEarliestTimeOnPointInTimeUnavailable
* A value that indicates whether to backtrack the DB cluster to the earliest possible backtrack time when
* BacktrackTo is set to a timestamp earlier than the earliest backtrack time. When this parameter is
* disabled and BacktrackTo is set to a timestamp earlier than the earliest backtrack time, an error
* occurs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BacktrackDBClusterRequest withUseEarliestTimeOnPointInTimeUnavailable(Boolean useEarliestTimeOnPointInTimeUnavailable) {
setUseEarliestTimeOnPointInTimeUnavailable(useEarliestTimeOnPointInTimeUnavailable);
return this;
}
/**
*
* A value that indicates whether to backtrack the DB cluster to the earliest possible backtrack time when
* BacktrackTo is set to a timestamp earlier than the earliest backtrack time. When this parameter is
* disabled and BacktrackTo is set to a timestamp earlier than the earliest backtrack time, an error occurs.
*
*
* @return A value that indicates whether to backtrack the DB cluster to the earliest possible backtrack time when
* BacktrackTo is set to a timestamp earlier than the earliest backtrack time. When this parameter is
* disabled and BacktrackTo is set to a timestamp earlier than the earliest backtrack time, an error
* occurs.
*/
public Boolean isUseEarliestTimeOnPointInTimeUnavailable() {
return this.useEarliestTimeOnPointInTimeUnavailable;
}
/**
* 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 (getDBClusterIdentifier() != null)
sb.append("DBClusterIdentifier: ").append(getDBClusterIdentifier()).append(",");
if (getBacktrackTo() != null)
sb.append("BacktrackTo: ").append(getBacktrackTo()).append(",");
if (getForce() != null)
sb.append("Force: ").append(getForce()).append(",");
if (getUseEarliestTimeOnPointInTimeUnavailable() != null)
sb.append("UseEarliestTimeOnPointInTimeUnavailable: ").append(getUseEarliestTimeOnPointInTimeUnavailable());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof BacktrackDBClusterRequest == false)
return false;
BacktrackDBClusterRequest other = (BacktrackDBClusterRequest) obj;
if (other.getDBClusterIdentifier() == null ^ this.getDBClusterIdentifier() == null)
return false;
if (other.getDBClusterIdentifier() != null && other.getDBClusterIdentifier().equals(this.getDBClusterIdentifier()) == false)
return false;
if (other.getBacktrackTo() == null ^ this.getBacktrackTo() == null)
return false;
if (other.getBacktrackTo() != null && other.getBacktrackTo().equals(this.getBacktrackTo()) == false)
return false;
if (other.getForce() == null ^ this.getForce() == null)
return false;
if (other.getForce() != null && other.getForce().equals(this.getForce()) == false)
return false;
if (other.getUseEarliestTimeOnPointInTimeUnavailable() == null ^ this.getUseEarliestTimeOnPointInTimeUnavailable() == null)
return false;
if (other.getUseEarliestTimeOnPointInTimeUnavailable() != null
&& other.getUseEarliestTimeOnPointInTimeUnavailable().equals(this.getUseEarliestTimeOnPointInTimeUnavailable()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDBClusterIdentifier() == null) ? 0 : getDBClusterIdentifier().hashCode());
hashCode = prime * hashCode + ((getBacktrackTo() == null) ? 0 : getBacktrackTo().hashCode());
hashCode = prime * hashCode + ((getForce() == null) ? 0 : getForce().hashCode());
hashCode = prime * hashCode + ((getUseEarliestTimeOnPointInTimeUnavailable() == null) ? 0 : getUseEarliestTimeOnPointInTimeUnavailable().hashCode());
return hashCode;
}
@Override
public BacktrackDBClusterRequest clone() {
return (BacktrackDBClusterRequest) super.clone();
}
}