@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); hashCode = prime * hashCode + ((getFIAuthKey() == null) ? 0 : getFIAuthKey().hashCode()); hashCode = prime * hashCode + ((getNameservers() == null) ? 0 : getNameservers().hashCode()); return hashCode; }
/** * <p> * The name of the domain that you want to change name servers for. * </p> * * @param domainName * The name of the domain that you want to change name servers for. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainNameserversRequest withDomainName(String domainName) { setDomainName(domainName); return this; }
/** * <p> * The authorization key for .fi domains * </p> * * @param fIAuthKey * The authorization key for .fi domains * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public UpdateDomainNameserversRequest withFIAuthKey(String fIAuthKey) { setFIAuthKey(fIAuthKey); return this; }
/** * <p> * A list of new name servers for the domain. * </p> * * @param nameservers * A list of new name servers for the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainNameserversRequest withNameservers(java.util.Collection<Nameserver> nameservers) { setNameservers(nameservers); return this; }
/** * <p> * A list of new name servers for the domain. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setNameservers(java.util.Collection)} or {@link #withNameservers(java.util.Collection)} if you want to * override the existing values. * </p> * * @param nameservers * A list of new name servers for the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainNameserversRequest withNameservers(Nameserver... nameservers) { if (this.nameservers == null) { setNameservers(new com.amazonaws.internal.SdkInternalList<Nameserver>(nameservers.length)); } for (Nameserver ele : nameservers) { this.nameservers.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateDomainNameserversRequest == false) return false; UpdateDomainNameserversRequest other = (UpdateDomainNameserversRequest) obj; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getFIAuthKey() == null ^ this.getFIAuthKey() == null) return false; if (other.getFIAuthKey() != null && other.getFIAuthKey().equals(this.getFIAuthKey()) == false) return false; if (other.getNameservers() == null ^ this.getNameservers() == null) return false; if (other.getNameservers() != null && other.getNameservers().equals(this.getNameservers()) == 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 (getDomainName() != null) sb.append("DomainName: ").append(getDomainName()).append(","); if (getFIAuthKey() != null) sb.append("FIAuthKey: ").append(getFIAuthKey()).append(","); if (getNameservers() != null) sb.append("Nameservers: ").append(getNameservers()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(UpdateDomainNameserversRequest updateDomainNameserversRequest, ProtocolMarshaller protocolMarshaller) { if (updateDomainNameserversRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(updateDomainNameserversRequest.getDomainName(), DOMAINNAME_BINDING); protocolMarshaller.marshall(updateDomainNameserversRequest.getFIAuthKey(), FIAUTHKEY_BINDING); protocolMarshaller.marshall(updateDomainNameserversRequest.getNameservers(), NAMESERVERS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }