* A user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster. *
*/ private String dBClusterIdentifier; /** ** A value that specifies the capacity that the DB cluster scales to next. *
*/ private Integer pendingCapacity; /** ** The current capacity of the DB cluster. *
*/ private Integer currentCapacity; /** *
* The number of seconds before a call to ModifyCurrentDBClusterCapacity
times out.
*
* The timeout action of a call to ModifyCurrentDBClusterCapacity
, either
* ForceApplyCapacityChange
or RollbackCapacityChange
.
*
* A user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster. *
* * @param dBClusterIdentifier * A user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster. */ public void setDBClusterIdentifier(String dBClusterIdentifier) { this.dBClusterIdentifier = dBClusterIdentifier; } /** ** A user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster. *
* * @return A user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster. */ public String getDBClusterIdentifier() { return this.dBClusterIdentifier; } /** ** A user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster. *
* * @param dBClusterIdentifier * A user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyCurrentDBClusterCapacityResult withDBClusterIdentifier(String dBClusterIdentifier) { setDBClusterIdentifier(dBClusterIdentifier); return this; } /** ** A value that specifies the capacity that the DB cluster scales to next. *
* * @param pendingCapacity * A value that specifies the capacity that the DB cluster scales to next. */ public void setPendingCapacity(Integer pendingCapacity) { this.pendingCapacity = pendingCapacity; } /** ** A value that specifies the capacity that the DB cluster scales to next. *
* * @return A value that specifies the capacity that the DB cluster scales to next. */ public Integer getPendingCapacity() { return this.pendingCapacity; } /** ** A value that specifies the capacity that the DB cluster scales to next. *
* * @param pendingCapacity * A value that specifies the capacity that the DB cluster scales to next. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyCurrentDBClusterCapacityResult withPendingCapacity(Integer pendingCapacity) { setPendingCapacity(pendingCapacity); return this; } /** ** The current capacity of the DB cluster. *
* * @param currentCapacity * The current capacity of the DB cluster. */ public void setCurrentCapacity(Integer currentCapacity) { this.currentCapacity = currentCapacity; } /** ** The current capacity of the DB cluster. *
* * @return The current capacity of the DB cluster. */ public Integer getCurrentCapacity() { return this.currentCapacity; } /** ** The current capacity of the DB cluster. *
* * @param currentCapacity * The current capacity of the DB cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyCurrentDBClusterCapacityResult withCurrentCapacity(Integer currentCapacity) { setCurrentCapacity(currentCapacity); return this; } /** *
* The number of seconds before a call to ModifyCurrentDBClusterCapacity
times out.
*
ModifyCurrentDBClusterCapacity
times out.
*/
public void setSecondsBeforeTimeout(Integer secondsBeforeTimeout) {
this.secondsBeforeTimeout = secondsBeforeTimeout;
}
/**
*
* The number of seconds before a call to ModifyCurrentDBClusterCapacity
times out.
*
ModifyCurrentDBClusterCapacity
times out.
*/
public Integer getSecondsBeforeTimeout() {
return this.secondsBeforeTimeout;
}
/**
*
* The number of seconds before a call to ModifyCurrentDBClusterCapacity
times out.
*
ModifyCurrentDBClusterCapacity
times out.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyCurrentDBClusterCapacityResult withSecondsBeforeTimeout(Integer secondsBeforeTimeout) {
setSecondsBeforeTimeout(secondsBeforeTimeout);
return this;
}
/**
*
* The timeout action of a call to ModifyCurrentDBClusterCapacity
, either
* ForceApplyCapacityChange
or RollbackCapacityChange
.
*
ModifyCurrentDBClusterCapacity
, either
* ForceApplyCapacityChange
or RollbackCapacityChange
.
*/
public void setTimeoutAction(String timeoutAction) {
this.timeoutAction = timeoutAction;
}
/**
*
* The timeout action of a call to ModifyCurrentDBClusterCapacity
, either
* ForceApplyCapacityChange
or RollbackCapacityChange
.
*
ModifyCurrentDBClusterCapacity
, either
* ForceApplyCapacityChange
or RollbackCapacityChange
.
*/
public String getTimeoutAction() {
return this.timeoutAction;
}
/**
*
* The timeout action of a call to ModifyCurrentDBClusterCapacity
, either
* ForceApplyCapacityChange
or RollbackCapacityChange
.
*
ModifyCurrentDBClusterCapacity
, either
* ForceApplyCapacityChange
or RollbackCapacityChange
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyCurrentDBClusterCapacityResult withTimeoutAction(String timeoutAction) {
setTimeoutAction(timeoutAction);
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 (getDBClusterIdentifier() != null)
sb.append("DBClusterIdentifier: ").append(getDBClusterIdentifier()).append(",");
if (getPendingCapacity() != null)
sb.append("PendingCapacity: ").append(getPendingCapacity()).append(",");
if (getCurrentCapacity() != null)
sb.append("CurrentCapacity: ").append(getCurrentCapacity()).append(",");
if (getSecondsBeforeTimeout() != null)
sb.append("SecondsBeforeTimeout: ").append(getSecondsBeforeTimeout()).append(",");
if (getTimeoutAction() != null)
sb.append("TimeoutAction: ").append(getTimeoutAction());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ModifyCurrentDBClusterCapacityResult == false)
return false;
ModifyCurrentDBClusterCapacityResult other = (ModifyCurrentDBClusterCapacityResult) obj;
if (other.getDBClusterIdentifier() == null ^ this.getDBClusterIdentifier() == null)
return false;
if (other.getDBClusterIdentifier() != null && other.getDBClusterIdentifier().equals(this.getDBClusterIdentifier()) == false)
return false;
if (other.getPendingCapacity() == null ^ this.getPendingCapacity() == null)
return false;
if (other.getPendingCapacity() != null && other.getPendingCapacity().equals(this.getPendingCapacity()) == false)
return false;
if (other.getCurrentCapacity() == null ^ this.getCurrentCapacity() == null)
return false;
if (other.getCurrentCapacity() != null && other.getCurrentCapacity().equals(this.getCurrentCapacity()) == false)
return false;
if (other.getSecondsBeforeTimeout() == null ^ this.getSecondsBeforeTimeout() == null)
return false;
if (other.getSecondsBeforeTimeout() != null && other.getSecondsBeforeTimeout().equals(this.getSecondsBeforeTimeout()) == false)
return false;
if (other.getTimeoutAction() == null ^ this.getTimeoutAction() == null)
return false;
if (other.getTimeoutAction() != null && other.getTimeoutAction().equals(this.getTimeoutAction()) == 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 + ((getPendingCapacity() == null) ? 0 : getPendingCapacity().hashCode());
hashCode = prime * hashCode + ((getCurrentCapacity() == null) ? 0 : getCurrentCapacity().hashCode());
hashCode = prime * hashCode + ((getSecondsBeforeTimeout() == null) ? 0 : getSecondsBeforeTimeout().hashCode());
hashCode = prime * hashCode + ((getTimeoutAction() == null) ? 0 : getTimeoutAction().hashCode());
return hashCode;
}
@Override
public ModifyCurrentDBClusterCapacityResult clone() {
try {
return (ModifyCurrentDBClusterCapacityResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}