@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDbUser() == null) ? 0 : getDbUser().hashCode()); hashCode = prime * hashCode + ((getDbName() == null) ? 0 : getDbName().hashCode()); hashCode = prime * hashCode + ((getClusterIdentifier() == null) ? 0 : getClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getDurationSeconds() == null) ? 0 : getDurationSeconds().hashCode()); hashCode = prime * hashCode + ((getAutoCreate() == null) ? 0 : getAutoCreate().hashCode()); hashCode = prime * hashCode + ((getDbGroups() == null) ? 0 : getDbGroups().hashCode()); return hashCode; }
/** * <p> * Create a database user with the name specified for the user named in <code>DbUser</code> if one does not exist. * </p> * * @param autoCreate * Create a database user with the name specified for the user named in <code>DbUser</code> if one does not * exist. * @return Returns a reference to this object so that method calls can be chained together. */ public GetClusterCredentialsRequest withAutoCreate(Boolean autoCreate) { setAutoCreate(autoCreate); return this; }
/** * <p> * The unique identifier of the cluster that contains the database for which your are requesting credentials. This * parameter is case sensitive. * </p> * * @param clusterIdentifier * The unique identifier of the cluster that contains the database for which your are requesting credentials. * This parameter is case sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public GetClusterCredentialsRequest withClusterIdentifier(String clusterIdentifier) { setClusterIdentifier(clusterIdentifier); return this; }
setDbGroups(dbGroups); return this;
setDbName(dbName); return this;
setDbGroups(new com.amazonaws.internal.SdkInternalList<String>(dbGroups.length));
setDbName(dbName); return this;
return false; GetClusterCredentialsRequest other = (GetClusterCredentialsRequest) obj; if (other.getDbUser() == null ^ this.getDbUser() == null) return false; if (other.getDbUser() != null && other.getDbUser().equals(this.getDbUser()) == false) return false; if (other.getDbName() == null ^ this.getDbName() == null) return false; if (other.getDbName() != null && other.getDbName().equals(this.getDbName()) == false) return false; if (other.getClusterIdentifier() == null ^ this.getClusterIdentifier() == null) return false; if (other.getClusterIdentifier() != null && other.getClusterIdentifier().equals(this.getClusterIdentifier()) == false) return false; if (other.getDurationSeconds() == null ^ this.getDurationSeconds() == null) return false; if (other.getDurationSeconds() != null && other.getDurationSeconds().equals(this.getDurationSeconds()) == false) return false; if (other.getAutoCreate() == null ^ this.getAutoCreate() == null) return false; if (other.getAutoCreate() != null && other.getAutoCreate().equals(this.getAutoCreate()) == false) return false; if (other.getDbGroups() == null ^ this.getDbGroups() == null) return false; if (other.getDbGroups() != null && other.getDbGroups().equals(this.getDbGroups()) == false) return false; return true;
setDbGroups(dbGroups); return this;
/** * <p> * Create a database user with the name specified for the user named in <code>DbUser</code> if one does not exist. * </p> * * @param autoCreate * Create a database user with the name specified for the user named in <code>DbUser</code> if one does not * exist. * @return Returns a reference to this object so that method calls can be chained together. */ public GetClusterCredentialsRequest withAutoCreate(Boolean autoCreate) { setAutoCreate(autoCreate); return this; }
/** * <p> * The unique identifier of the cluster that contains the database for which your are requesting credentials. This * parameter is case sensitive. * </p> * * @param clusterIdentifier * The unique identifier of the cluster that contains the database for which your are requesting credentials. * This parameter is case sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public GetClusterCredentialsRequest withClusterIdentifier(String clusterIdentifier) { setClusterIdentifier(clusterIdentifier); 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 (getDbUser() != null) sb.append("DbUser: ").append(getDbUser()).append(","); if (getDbName() != null) sb.append("DbName: ").append(getDbName()).append(","); if (getClusterIdentifier() != null) sb.append("ClusterIdentifier: ").append(getClusterIdentifier()).append(","); if (getDurationSeconds() != null) sb.append("DurationSeconds: ").append(getDurationSeconds()).append(","); if (getAutoCreate() != null) sb.append("AutoCreate: ").append(getAutoCreate()).append(","); if (getDbGroups() != null) sb.append("DbGroups: ").append(getDbGroups()); sb.append("}"); return sb.toString(); }
setDbGroups(new com.amazonaws.internal.SdkInternalList<String>(dbGroups.length));
request.setHttpMethod(HttpMethodName.POST); if (getClusterCredentialsRequest.getDbUser() != null) { request.addParameter("DbUser", StringUtils.fromString(getClusterCredentialsRequest.getDbUser())); if (getClusterCredentialsRequest.getDbName() != null) { request.addParameter("DbName", StringUtils.fromString(getClusterCredentialsRequest.getDbName())); if (getClusterCredentialsRequest.getClusterIdentifier() != null) { request.addParameter("ClusterIdentifier", StringUtils.fromString(getClusterCredentialsRequest.getClusterIdentifier())); if (getClusterCredentialsRequest.getDurationSeconds() != null) { request.addParameter("DurationSeconds", StringUtils.fromInteger(getClusterCredentialsRequest.getDurationSeconds())); if (getClusterCredentialsRequest.getAutoCreate() != null) { request.addParameter("AutoCreate", StringUtils.fromBoolean(getClusterCredentialsRequest.getAutoCreate())); if (!getClusterCredentialsRequest.getDbGroups().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) getClusterCredentialsRequest.getDbGroups()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> dbGroupsList = (com.amazonaws.internal.SdkInternalList<String>) getClusterCredentialsRequest .getDbGroups(); int dbGroupsListIndex = 1;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDbUser() == null) ? 0 : getDbUser().hashCode()); hashCode = prime * hashCode + ((getDbName() == null) ? 0 : getDbName().hashCode()); hashCode = prime * hashCode + ((getClusterIdentifier() == null) ? 0 : getClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getDurationSeconds() == null) ? 0 : getDurationSeconds().hashCode()); hashCode = prime * hashCode + ((getAutoCreate() == null) ? 0 : getAutoCreate().hashCode()); hashCode = prime * hashCode + ((getDbGroups() == null) ? 0 : getDbGroups().hashCode()); return hashCode; }
return false; GetClusterCredentialsRequest other = (GetClusterCredentialsRequest) obj; if (other.getDbUser() == null ^ this.getDbUser() == null) return false; if (other.getDbUser() != null && other.getDbUser().equals(this.getDbUser()) == false) return false; if (other.getDbName() == null ^ this.getDbName() == null) return false; if (other.getDbName() != null && other.getDbName().equals(this.getDbName()) == false) return false; if (other.getClusterIdentifier() == null ^ this.getClusterIdentifier() == null) return false; if (other.getClusterIdentifier() != null && other.getClusterIdentifier().equals(this.getClusterIdentifier()) == false) return false; if (other.getDurationSeconds() == null ^ this.getDurationSeconds() == null) return false; if (other.getDurationSeconds() != null && other.getDurationSeconds().equals(this.getDurationSeconds()) == false) return false; if (other.getAutoCreate() == null ^ this.getAutoCreate() == null) return false; if (other.getAutoCreate() != null && other.getAutoCreate().equals(this.getAutoCreate()) == false) return false; if (other.getDbGroups() == null ^ this.getDbGroups() == null) return false; if (other.getDbGroups() != null && other.getDbGroups().equals(this.getDbGroups()) == false) return false; return true;
/** * 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 (getDbUser() != null) sb.append("DbUser: ").append(getDbUser()).append(","); if (getDbName() != null) sb.append("DbName: ").append(getDbName()).append(","); if (getClusterIdentifier() != null) sb.append("ClusterIdentifier: ").append(getClusterIdentifier()).append(","); if (getDurationSeconds() != null) sb.append("DurationSeconds: ").append(getDurationSeconds()).append(","); if (getAutoCreate() != null) sb.append("AutoCreate: ").append(getAutoCreate()).append(","); if (getDbGroups() != null) sb.append("DbGroups: ").append(getDbGroups()); sb.append("}"); return sb.toString(); }
request.setHttpMethod(HttpMethodName.POST); if (getClusterCredentialsRequest.getDbUser() != null) { request.addParameter("DbUser", StringUtils.fromString(getClusterCredentialsRequest.getDbUser())); if (getClusterCredentialsRequest.getDbName() != null) { request.addParameter("DbName", StringUtils.fromString(getClusterCredentialsRequest.getDbName())); if (getClusterCredentialsRequest.getClusterIdentifier() != null) { request.addParameter("ClusterIdentifier", StringUtils.fromString(getClusterCredentialsRequest.getClusterIdentifier())); if (getClusterCredentialsRequest.getDurationSeconds() != null) { request.addParameter("DurationSeconds", StringUtils.fromInteger(getClusterCredentialsRequest.getDurationSeconds())); if (getClusterCredentialsRequest.getAutoCreate() != null) { request.addParameter("AutoCreate", StringUtils.fromBoolean(getClusterCredentialsRequest.getAutoCreate())); if (!getClusterCredentialsRequest.getDbGroups().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) getClusterCredentialsRequest.getDbGroups()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> dbGroupsList = (com.amazonaws.internal.SdkInternalList<String>) getClusterCredentialsRequest .getDbGroups(); int dbGroupsListIndex = 1;