/** * <p> * The port number on which the new DB cluster accepts connections. * </p> * <p> * Constraints: A value from <code>1150-65535</code>. * </p> * <p> * Default: The default port for the engine. * </p> * * @param port * The port number on which the new DB cluster accepts connections.</p> * <p> * Constraints: A value from <code>1150-65535</code>. * </p> * <p> * Default: The default port for the engine. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterToPointInTimeRequest withPort(Integer port) { setPort(port); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDBClusterIdentifier() == null) ? 0 : getDBClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getRestoreType() == null) ? 0 : getRestoreType().hashCode()); hashCode = prime * hashCode + ((getSourceDBClusterIdentifier() == null) ? 0 : getSourceDBClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getRestoreToTime() == null) ? 0 : getRestoreToTime().hashCode()); hashCode = prime * hashCode + ((getUseLatestRestorableTime() == null) ? 0 : getUseLatestRestorableTime().hashCode()); hashCode = prime * hashCode + ((getPort() == null) ? 0 : getPort().hashCode()); hashCode = prime * hashCode + ((getDBSubnetGroupName() == null) ? 0 : getDBSubnetGroupName().hashCode()); hashCode = prime * hashCode + ((getOptionGroupName() == null) ? 0 : getOptionGroupName().hashCode()); hashCode = prime * hashCode + ((getVpcSecurityGroupIds() == null) ? 0 : getVpcSecurityGroupIds().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getEnableIAMDatabaseAuthentication() == null) ? 0 : getEnableIAMDatabaseAuthentication().hashCode()); hashCode = prime * hashCode + ((getBacktrackWindow() == null) ? 0 : getBacktrackWindow().hashCode()); hashCode = prime * hashCode + ((getEnableCloudwatchLogsExports() == null) ? 0 : getEnableCloudwatchLogsExports().hashCode()); hashCode = prime * hashCode + ((getDBClusterParameterGroupName() == null) ? 0 : getDBClusterParameterGroupName().hashCode()); hashCode = prime * hashCode + ((getDeletionProtection() == null) ? 0 : getDeletionProtection().hashCode()); return hashCode; }
AmazonRDS rds = ext.getClient(); RestoreDBClusterToPointInTimeRequest request = new RestoreDBClusterToPointInTimeRequest() .withDBClusterIdentifier(dbClusterIdentifier) .withDBSubnetGroupName(getDbSubnetGroupName()) .withKmsKeyId(getKmsKeyId()) .withRestoreType(getRestoreType()) .withRestoreToTime(getRestoreToTime()) .withSourceDBClusterIdentifier(getSourceDBClusterIdentifier()) .withUseLatestRestorableTime(getUseLatestRestorableTime()) .withVpcSecurityGroupIds(getVpcSecurityGroupIds()) .withTags(getTags().entrySet().stream() .map(it -> new Tag() .withKey(it.getKey().toString()) .collect(Collectors.toList())); if (getPort() != 0) { request.setPort(getPort());
return false; RestoreDBClusterToPointInTimeRequest other = (RestoreDBClusterToPointInTimeRequest) obj; if (other.getDBClusterIdentifier() == null ^ this.getDBClusterIdentifier() == null) return false; if (other.getDBClusterIdentifier() != null && other.getDBClusterIdentifier().equals(this.getDBClusterIdentifier()) == false) return false; if (other.getRestoreType() == null ^ this.getRestoreType() == null) return false; if (other.getRestoreType() != null && other.getRestoreType().equals(this.getRestoreType()) == false) return false; if (other.getSourceDBClusterIdentifier() == null ^ this.getSourceDBClusterIdentifier() == null) return false; if (other.getSourceDBClusterIdentifier() != null && other.getSourceDBClusterIdentifier().equals(this.getSourceDBClusterIdentifier()) == false) return false; if (other.getRestoreToTime() == null ^ this.getRestoreToTime() == null) return false; if (other.getRestoreToTime() != null && other.getRestoreToTime().equals(this.getRestoreToTime()) == false) return false; if (other.getUseLatestRestorableTime() == null ^ this.getUseLatestRestorableTime() == null) return false; if (other.getUseLatestRestorableTime() != null && other.getUseLatestRestorableTime().equals(this.getUseLatestRestorableTime()) == false) return false; if (other.getPort() == null ^ this.getPort() == null) return false; if (other.getPort() != null && other.getPort().equals(this.getPort()) == false) return false; if (other.getDBSubnetGroupName() == null ^ this.getDBSubnetGroupName() == null) return false; if (other.getDBSubnetGroupName() != null && other.getDBSubnetGroupName().equals(this.getDBSubnetGroupName()) == false)
/** * <p> * The port number on which the new DB cluster accepts connections. * </p> * <p> * Constraints: A value from <code>1150-65535</code>. * </p> * <p> * Default: The default port for the engine. * </p> * * @param port * The port number on which the new DB cluster accepts connections.</p> * <p> * Constraints: A value from <code>1150-65535</code>. * </p> * <p> * Default: The default port for the engine. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreDBClusterToPointInTimeRequest withPort(Integer port) { setPort(port); return this; }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDBClusterIdentifier() != null) sb.append("DBClusterIdentifier: ").append(getDBClusterIdentifier()).append(","); if (getRestoreType() != null) sb.append("RestoreType: ").append(getRestoreType()).append(","); if (getSourceDBClusterIdentifier() != null) sb.append("SourceDBClusterIdentifier: ").append(getSourceDBClusterIdentifier()).append(","); if (getRestoreToTime() != null) sb.append("RestoreToTime: ").append(getRestoreToTime()).append(","); if (getUseLatestRestorableTime() != null) sb.append("UseLatestRestorableTime: ").append(getUseLatestRestorableTime()).append(","); if (getPort() != null) sb.append("Port: ").append(getPort()).append(","); if (getDBSubnetGroupName() != null) sb.append("DBSubnetGroupName: ").append(getDBSubnetGroupName()).append(","); if (getOptionGroupName() != null) sb.append("OptionGroupName: ").append(getOptionGroupName()).append(","); if (getVpcSecurityGroupIds() != null) sb.append("VpcSecurityGroupIds: ").append(getVpcSecurityGroupIds()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getKmsKeyId() != null) sb.append("KmsKeyId: ").append(getKmsKeyId()).append(","); if (getEnableIAMDatabaseAuthentication() != null) sb.append("EnableIAMDatabaseAuthentication: ").append(getEnableIAMDatabaseAuthentication()).append(","); if (getBacktrackWindow() != null) sb.append("BacktrackWindow: ").append(getBacktrackWindow()).append(","); if (getEnableCloudwatchLogsExports() != null)
if (restoreDBClusterToPointInTimeRequest.getDBClusterIdentifier() != null) { request.addParameter("DBClusterIdentifier", StringUtils.fromString(restoreDBClusterToPointInTimeRequest.getDBClusterIdentifier())); if (restoreDBClusterToPointInTimeRequest.getRestoreType() != null) { request.addParameter("RestoreType", StringUtils.fromString(restoreDBClusterToPointInTimeRequest.getRestoreType())); if (restoreDBClusterToPointInTimeRequest.getSourceDBClusterIdentifier() != null) { request.addParameter("SourceDBClusterIdentifier", StringUtils.fromString(restoreDBClusterToPointInTimeRequest.getSourceDBClusterIdentifier())); if (restoreDBClusterToPointInTimeRequest.getRestoreToTime() != null) { request.addParameter("RestoreToTime", StringUtils.fromDate(restoreDBClusterToPointInTimeRequest.getRestoreToTime())); if (restoreDBClusterToPointInTimeRequest.getUseLatestRestorableTime() != null) { request.addParameter("UseLatestRestorableTime", StringUtils.fromBoolean(restoreDBClusterToPointInTimeRequest.getUseLatestRestorableTime())); if (restoreDBClusterToPointInTimeRequest.getPort() != null) { request.addParameter("Port", StringUtils.fromInteger(restoreDBClusterToPointInTimeRequest.getPort())); if (restoreDBClusterToPointInTimeRequest.getDBSubnetGroupName() != null) { request.addParameter("DBSubnetGroupName", StringUtils.fromString(restoreDBClusterToPointInTimeRequest.getDBSubnetGroupName())); if (restoreDBClusterToPointInTimeRequest.getOptionGroupName() != null) { request.addParameter("OptionGroupName", StringUtils.fromString(restoreDBClusterToPointInTimeRequest.getOptionGroupName())); if (!restoreDBClusterToPointInTimeRequest.getVpcSecurityGroupIds().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) restoreDBClusterToPointInTimeRequest.getVpcSecurityGroupIds()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> vpcSecurityGroupIdsList = (com.amazonaws.internal.SdkInternalList<String>) restoreDBClusterToPointInTimeRequest .getVpcSecurityGroupIds(); int vpcSecurityGroupIdsListIndex = 1;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDBClusterIdentifier() == null) ? 0 : getDBClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getRestoreType() == null) ? 0 : getRestoreType().hashCode()); hashCode = prime * hashCode + ((getSourceDBClusterIdentifier() == null) ? 0 : getSourceDBClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getRestoreToTime() == null) ? 0 : getRestoreToTime().hashCode()); hashCode = prime * hashCode + ((getUseLatestRestorableTime() == null) ? 0 : getUseLatestRestorableTime().hashCode()); hashCode = prime * hashCode + ((getPort() == null) ? 0 : getPort().hashCode()); hashCode = prime * hashCode + ((getDBSubnetGroupName() == null) ? 0 : getDBSubnetGroupName().hashCode()); hashCode = prime * hashCode + ((getOptionGroupName() == null) ? 0 : getOptionGroupName().hashCode()); hashCode = prime * hashCode + ((getVpcSecurityGroupIds() == null) ? 0 : getVpcSecurityGroupIds().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getEnableIAMDatabaseAuthentication() == null) ? 0 : getEnableIAMDatabaseAuthentication().hashCode()); hashCode = prime * hashCode + ((getBacktrackWindow() == null) ? 0 : getBacktrackWindow().hashCode()); hashCode = prime * hashCode + ((getEnableCloudwatchLogsExports() == null) ? 0 : getEnableCloudwatchLogsExports().hashCode()); hashCode = prime * hashCode + ((getDBClusterParameterGroupName() == null) ? 0 : getDBClusterParameterGroupName().hashCode()); hashCode = prime * hashCode + ((getDeletionProtection() == null) ? 0 : getDeletionProtection().hashCode()); return hashCode; }
return false; RestoreDBClusterToPointInTimeRequest other = (RestoreDBClusterToPointInTimeRequest) obj; if (other.getDBClusterIdentifier() == null ^ this.getDBClusterIdentifier() == null) return false; if (other.getDBClusterIdentifier() != null && other.getDBClusterIdentifier().equals(this.getDBClusterIdentifier()) == false) return false; if (other.getRestoreType() == null ^ this.getRestoreType() == null) return false; if (other.getRestoreType() != null && other.getRestoreType().equals(this.getRestoreType()) == false) return false; if (other.getSourceDBClusterIdentifier() == null ^ this.getSourceDBClusterIdentifier() == null) return false; if (other.getSourceDBClusterIdentifier() != null && other.getSourceDBClusterIdentifier().equals(this.getSourceDBClusterIdentifier()) == false) return false; if (other.getRestoreToTime() == null ^ this.getRestoreToTime() == null) return false; if (other.getRestoreToTime() != null && other.getRestoreToTime().equals(this.getRestoreToTime()) == false) return false; if (other.getUseLatestRestorableTime() == null ^ this.getUseLatestRestorableTime() == null) return false; if (other.getUseLatestRestorableTime() != null && other.getUseLatestRestorableTime().equals(this.getUseLatestRestorableTime()) == false) return false; if (other.getPort() == null ^ this.getPort() == null) return false; if (other.getPort() != null && other.getPort().equals(this.getPort()) == false) return false; if (other.getDBSubnetGroupName() == null ^ this.getDBSubnetGroupName() == null) return false; if (other.getDBSubnetGroupName() != null && other.getDBSubnetGroupName().equals(this.getDBSubnetGroupName()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDBClusterIdentifier() != null) sb.append("DBClusterIdentifier: ").append(getDBClusterIdentifier()).append(","); if (getRestoreType() != null) sb.append("RestoreType: ").append(getRestoreType()).append(","); if (getSourceDBClusterIdentifier() != null) sb.append("SourceDBClusterIdentifier: ").append(getSourceDBClusterIdentifier()).append(","); if (getRestoreToTime() != null) sb.append("RestoreToTime: ").append(getRestoreToTime()).append(","); if (getUseLatestRestorableTime() != null) sb.append("UseLatestRestorableTime: ").append(getUseLatestRestorableTime()).append(","); if (getPort() != null) sb.append("Port: ").append(getPort()).append(","); if (getDBSubnetGroupName() != null) sb.append("DBSubnetGroupName: ").append(getDBSubnetGroupName()).append(","); if (getOptionGroupName() != null) sb.append("OptionGroupName: ").append(getOptionGroupName()).append(","); if (getVpcSecurityGroupIds() != null) sb.append("VpcSecurityGroupIds: ").append(getVpcSecurityGroupIds()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getKmsKeyId() != null) sb.append("KmsKeyId: ").append(getKmsKeyId()).append(","); if (getEnableIAMDatabaseAuthentication() != null) sb.append("EnableIAMDatabaseAuthentication: ").append(getEnableIAMDatabaseAuthentication()).append(","); if (getBacktrackWindow() != null) sb.append("BacktrackWindow: ").append(getBacktrackWindow()).append(","); if (getEnableCloudwatchLogsExports() != null)
if (restoreDBClusterToPointInTimeRequest.getDBClusterIdentifier() != null) { request.addParameter("DBClusterIdentifier", StringUtils.fromString(restoreDBClusterToPointInTimeRequest.getDBClusterIdentifier())); if (restoreDBClusterToPointInTimeRequest.getRestoreType() != null) { request.addParameter("RestoreType", StringUtils.fromString(restoreDBClusterToPointInTimeRequest.getRestoreType())); if (restoreDBClusterToPointInTimeRequest.getSourceDBClusterIdentifier() != null) { request.addParameter("SourceDBClusterIdentifier", StringUtils.fromString(restoreDBClusterToPointInTimeRequest.getSourceDBClusterIdentifier())); if (restoreDBClusterToPointInTimeRequest.getRestoreToTime() != null) { request.addParameter("RestoreToTime", StringUtils.fromDate(restoreDBClusterToPointInTimeRequest.getRestoreToTime())); if (restoreDBClusterToPointInTimeRequest.getUseLatestRestorableTime() != null) { request.addParameter("UseLatestRestorableTime", StringUtils.fromBoolean(restoreDBClusterToPointInTimeRequest.getUseLatestRestorableTime())); if (restoreDBClusterToPointInTimeRequest.getPort() != null) { request.addParameter("Port", StringUtils.fromInteger(restoreDBClusterToPointInTimeRequest.getPort())); if (restoreDBClusterToPointInTimeRequest.getDBSubnetGroupName() != null) { request.addParameter("DBSubnetGroupName", StringUtils.fromString(restoreDBClusterToPointInTimeRequest.getDBSubnetGroupName())); if (restoreDBClusterToPointInTimeRequest.getOptionGroupName() != null) { request.addParameter("OptionGroupName", StringUtils.fromString(restoreDBClusterToPointInTimeRequest.getOptionGroupName())); if (!restoreDBClusterToPointInTimeRequest.getVpcSecurityGroupIds().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) restoreDBClusterToPointInTimeRequest.getVpcSecurityGroupIds()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> vpcSecurityGroupIdsList = (com.amazonaws.internal.SdkInternalList<String>) restoreDBClusterToPointInTimeRequest .getVpcSecurityGroupIds(); int vpcSecurityGroupIdsListIndex = 1;