if (getDatabaseName() != null) sb.append("DatabaseName: ").append(getDatabaseName()).append(","); if (getDBClusterIdentifier() != null) sb.append("DBClusterIdentifier: ").append(getDBClusterIdentifier()).append(","); if (getDBClusterParameterGroup() != null) sb.append("DBClusterParameterGroup: ").append(getDBClusterParameterGroup()).append(",");
hashCode = prime * hashCode + ((getCharacterSetName() == null) ? 0 : getCharacterSetName().hashCode()); hashCode = prime * hashCode + ((getDatabaseName() == null) ? 0 : getDatabaseName().hashCode()); hashCode = prime * hashCode + ((getDBClusterIdentifier() == null) ? 0 : getDBClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getDBClusterParameterGroup() == null) ? 0 : getDBClusterParameterGroup().hashCode()); hashCode = prime * hashCode + ((getDBSubnetGroup() == null) ? 0 : getDBSubnetGroup().hashCode());
if (other.getDatabaseName() != null && other.getDatabaseName().equals(this.getDatabaseName()) == false) return false; if (other.getDBClusterIdentifier() == null ^ this.getDBClusterIdentifier() == null) return false; if (other.getDBClusterIdentifier() != null && other.getDBClusterIdentifier().equals(this.getDBClusterIdentifier()) == false) return false; if (other.getDBClusterParameterGroup() == null ^ this.getDBClusterParameterGroup() == null)
if (getDatabaseName() != null) sb.append("DatabaseName: ").append(getDatabaseName()).append(","); if (getDBClusterIdentifier() != null) sb.append("DBClusterIdentifier: ").append(getDBClusterIdentifier()).append(","); if (getDBClusterParameterGroup() != null) sb.append("DBClusterParameterGroup: ").append(getDBClusterParameterGroup()).append(",");
getLogger().info("Restored an RDS cluster to point in time: {}", dbCluster.getDBClusterIdentifier());
hashCode = prime * hashCode + ((getCharacterSetName() == null) ? 0 : getCharacterSetName().hashCode()); hashCode = prime * hashCode + ((getDatabaseName() == null) ? 0 : getDatabaseName().hashCode()); hashCode = prime * hashCode + ((getDBClusterIdentifier() == null) ? 0 : getDBClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getDBClusterParameterGroup() == null) ? 0 : getDBClusterParameterGroup().hashCode()); hashCode = prime * hashCode + ((getDBSubnetGroup() == null) ? 0 : getDBSubnetGroup().hashCode());
@TaskAction public void deleteDBInstance() { String dbClusterIdentifier = getDbClusterIdentifier(); if (dbClusterIdentifier == null) { throw new GradleException("dbClusterIdentifier is required"); } AmazonRDSPluginExtension ext = getProject().getExtensions().getByType(AmazonRDSPluginExtension.class); AmazonRDS rds = ext.getClient(); try { DeleteDBClusterRequest request = new DeleteDBClusterRequest() .withDBClusterIdentifier(dbClusterIdentifier) .withSkipFinalSnapshot(isSkipFinalSnapshot()) .withFinalDBSnapshotIdentifier(getFinalDBSnapshotIdentifier()); dbCluster = rds.deleteDBCluster(request); getLogger().info("Delete RDS cluster requested: {}", dbCluster.getDBClusterIdentifier()); } catch (DBInstanceNotFoundException e) { getLogger().warn(e.getMessage()); } } }
if (other.getDatabaseName() != null && other.getDatabaseName().equals(this.getDatabaseName()) == false) return false; if (other.getDBClusterIdentifier() == null ^ this.getDBClusterIdentifier() == null) return false; if (other.getDBClusterIdentifier() != null && other.getDBClusterIdentifier().equals(this.getDBClusterIdentifier()) == false) return false; if (other.getDBClusterParameterGroup() == null ^ this.getDBClusterParameterGroup() == null)