@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceDBClusterParameterGroupIdentifier() == null) ? 0 : getSourceDBClusterParameterGroupIdentifier().hashCode()); hashCode = prime * hashCode + ((getTargetDBClusterParameterGroupIdentifier() == null) ? 0 : getTargetDBClusterParameterGroupIdentifier().hashCode()); hashCode = prime * hashCode + ((getTargetDBClusterParameterGroupDescription() == null) ? 0 : getTargetDBClusterParameterGroupDescription().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
setSourceDBClusterParameterGroupIdentifier(sourceDBClusterParameterGroupIdentifier); return this;
/** * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CopyDBClusterParameterGroupRequest withTags(java.util.Collection<Tag> tags) { setTags(tags); return this; }
/** * <p> * A description for the copied DB cluster parameter group. * </p> * * @param targetDBClusterParameterGroupDescription * A description for the copied DB cluster parameter group. * @return Returns a reference to this object so that method calls can be chained together. */ public CopyDBClusterParameterGroupRequest withTargetDBClusterParameterGroupDescription(String targetDBClusterParameterGroupDescription) { setTargetDBClusterParameterGroupDescription(targetDBClusterParameterGroupDescription); return this; }
setTargetDBClusterParameterGroupIdentifier(targetDBClusterParameterGroupIdentifier); return this;
/** * <p> * A description for the copied DB cluster parameter group. * </p> * * @param targetDBClusterParameterGroupDescription * A description for the copied DB cluster parameter group. * @return Returns a reference to this object so that method calls can be chained together. */ public CopyDBClusterParameterGroupRequest withTargetDBClusterParameterGroupDescription(String targetDBClusterParameterGroupDescription) { setTargetDBClusterParameterGroupDescription(targetDBClusterParameterGroupDescription); return this; }
setTargetDBClusterParameterGroupIdentifier(targetDBClusterParameterGroupIdentifier); return this;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CopyDBClusterParameterGroupRequest == false) return false; CopyDBClusterParameterGroupRequest other = (CopyDBClusterParameterGroupRequest) obj; if (other.getSourceDBClusterParameterGroupIdentifier() == null ^ this.getSourceDBClusterParameterGroupIdentifier() == null) return false; if (other.getSourceDBClusterParameterGroupIdentifier() != null && other.getSourceDBClusterParameterGroupIdentifier().equals(this.getSourceDBClusterParameterGroupIdentifier()) == false) return false; if (other.getTargetDBClusterParameterGroupIdentifier() == null ^ this.getTargetDBClusterParameterGroupIdentifier() == null) return false; if (other.getTargetDBClusterParameterGroupIdentifier() != null && other.getTargetDBClusterParameterGroupIdentifier().equals(this.getTargetDBClusterParameterGroupIdentifier()) == false) return false; if (other.getTargetDBClusterParameterGroupDescription() == null ^ this.getTargetDBClusterParameterGroupDescription() == null) return false; if (other.getTargetDBClusterParameterGroupDescription() != null && other.getTargetDBClusterParameterGroupDescription().equals(this.getTargetDBClusterParameterGroupDescription()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; }
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. * </p> * * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CopyDBClusterParameterGroupRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; }
setSourceDBClusterParameterGroupIdentifier(sourceDBClusterParameterGroupIdentifier); 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 (getSourceDBClusterParameterGroupIdentifier() != null) sb.append("SourceDBClusterParameterGroupIdentifier: ").append(getSourceDBClusterParameterGroupIdentifier()).append(","); if (getTargetDBClusterParameterGroupIdentifier() != null) sb.append("TargetDBClusterParameterGroupIdentifier: ").append(getTargetDBClusterParameterGroupIdentifier()).append(","); if (getTargetDBClusterParameterGroupDescription() != null) sb.append("TargetDBClusterParameterGroupDescription: ").append(getTargetDBClusterParameterGroupDescription()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); }
/** * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CopyDBClusterParameterGroupRequest withTags(java.util.Collection<Tag> tags) { setTags(tags); return this; }
request.setHttpMethod(HttpMethodName.POST); if (copyDBClusterParameterGroupRequest.getSourceDBClusterParameterGroupIdentifier() != null) { request.addParameter("SourceDBClusterParameterGroupIdentifier", StringUtils.fromString(copyDBClusterParameterGroupRequest.getSourceDBClusterParameterGroupIdentifier())); if (copyDBClusterParameterGroupRequest.getTargetDBClusterParameterGroupIdentifier() != null) { request.addParameter("TargetDBClusterParameterGroupIdentifier", StringUtils.fromString(copyDBClusterParameterGroupRequest.getTargetDBClusterParameterGroupIdentifier())); if (copyDBClusterParameterGroupRequest.getTargetDBClusterParameterGroupDescription() != null) { request.addParameter("TargetDBClusterParameterGroupDescription", StringUtils.fromString(copyDBClusterParameterGroupRequest.getTargetDBClusterParameterGroupDescription())); if (!copyDBClusterParameterGroupRequest.getTags().isEmpty() || !((com.amazonaws.internal.SdkInternalList<Tag>) copyDBClusterParameterGroupRequest.getTags()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<Tag> tagsList = (com.amazonaws.internal.SdkInternalList<Tag>) copyDBClusterParameterGroupRequest.getTags(); int tagsListIndex = 1;
/** * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. * </p> * * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CopyDBClusterParameterGroupRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceDBClusterParameterGroupIdentifier() == null) ? 0 : getSourceDBClusterParameterGroupIdentifier().hashCode()); hashCode = prime * hashCode + ((getTargetDBClusterParameterGroupIdentifier() == null) ? 0 : getTargetDBClusterParameterGroupIdentifier().hashCode()); hashCode = prime * hashCode + ((getTargetDBClusterParameterGroupDescription() == null) ? 0 : getTargetDBClusterParameterGroupDescription().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CopyDBClusterParameterGroupRequest == false) return false; CopyDBClusterParameterGroupRequest other = (CopyDBClusterParameterGroupRequest) obj; if (other.getSourceDBClusterParameterGroupIdentifier() == null ^ this.getSourceDBClusterParameterGroupIdentifier() == null) return false; if (other.getSourceDBClusterParameterGroupIdentifier() != null && other.getSourceDBClusterParameterGroupIdentifier().equals(this.getSourceDBClusterParameterGroupIdentifier()) == false) return false; if (other.getTargetDBClusterParameterGroupIdentifier() == null ^ this.getTargetDBClusterParameterGroupIdentifier() == null) return false; if (other.getTargetDBClusterParameterGroupIdentifier() != null && other.getTargetDBClusterParameterGroupIdentifier().equals(this.getTargetDBClusterParameterGroupIdentifier()) == false) return false; if (other.getTargetDBClusterParameterGroupDescription() == null ^ this.getTargetDBClusterParameterGroupDescription() == null) return false; if (other.getTargetDBClusterParameterGroupDescription() != null && other.getTargetDBClusterParameterGroupDescription().equals(this.getTargetDBClusterParameterGroupDescription()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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 (getSourceDBClusterParameterGroupIdentifier() != null) sb.append("SourceDBClusterParameterGroupIdentifier: ").append(getSourceDBClusterParameterGroupIdentifier()).append(","); if (getTargetDBClusterParameterGroupIdentifier() != null) sb.append("TargetDBClusterParameterGroupIdentifier: ").append(getTargetDBClusterParameterGroupIdentifier()).append(","); if (getTargetDBClusterParameterGroupDescription() != null) sb.append("TargetDBClusterParameterGroupDescription: ").append(getTargetDBClusterParameterGroupDescription()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); }
request.setHttpMethod(HttpMethodName.POST); if (copyDBClusterParameterGroupRequest.getSourceDBClusterParameterGroupIdentifier() != null) { request.addParameter("SourceDBClusterParameterGroupIdentifier", StringUtils.fromString(copyDBClusterParameterGroupRequest.getSourceDBClusterParameterGroupIdentifier())); if (copyDBClusterParameterGroupRequest.getTargetDBClusterParameterGroupIdentifier() != null) { request.addParameter("TargetDBClusterParameterGroupIdentifier", StringUtils.fromString(copyDBClusterParameterGroupRequest.getTargetDBClusterParameterGroupIdentifier())); if (copyDBClusterParameterGroupRequest.getTargetDBClusterParameterGroupDescription() != null) { request.addParameter("TargetDBClusterParameterGroupDescription", StringUtils.fromString(copyDBClusterParameterGroupRequest.getTargetDBClusterParameterGroupDescription())); if (!copyDBClusterParameterGroupRequest.getTags().isEmpty() || !((com.amazonaws.internal.SdkInternalList<Tag>) copyDBClusterParameterGroupRequest.getTags()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<Tag> tagsList = (com.amazonaws.internal.SdkInternalList<Tag>) copyDBClusterParameterGroupRequest.getTags(); int tagsListIndex = 1;