@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getUrl() == null) ? 0 : getUrl().hashCode()); hashCode = prime * hashCode + ((getUsername() == null) ? 0 : getUsername().hashCode()); hashCode = prime * hashCode + ((getPassword() == null) ? 0 : getPassword().hashCode()); hashCode = prime * hashCode + ((getSshKey() == null) ? 0 : getSshKey().hashCode()); hashCode = prime * hashCode + ((getRevision() == null) ? 0 : getRevision().hashCode()); return hashCode; }
/** * 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 (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getUrl() != null) sb.append("Url: ").append(getUrl()).append(","); if (getUsername() != null) sb.append("Username: ").append(getUsername()).append(","); if (getPassword() != null) sb.append("Password: ").append(getPassword()).append(","); if (getSshKey() != null) sb.append("SshKey: ").append(getSshKey()).append(","); if (getRevision() != null) sb.append("Revision: ").append(getRevision()); sb.append("}"); return sb.toString(); }
if (other.getPassword() != null && other.getPassword().equals(this.getPassword()) == false) return false; if (other.getSshKey() == null ^ this.getSshKey() == null) return false; if (other.getSshKey() != null && other.getSshKey().equals(this.getSshKey()) == false) return false; if (other.getRevision() == null ^ this.getRevision() == null)
/** * Marshall the given parameter object. */ public void marshall(Source source, ProtocolMarshaller protocolMarshaller) { if (source == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(source.getType(), TYPE_BINDING); protocolMarshaller.marshall(source.getUrl(), URL_BINDING); protocolMarshaller.marshall(source.getUsername(), USERNAME_BINDING); protocolMarshaller.marshall(source.getPassword(), PASSWORD_BINDING); protocolMarshaller.marshall(source.getSshKey(), SSHKEY_BINDING); protocolMarshaller.marshall(source.getRevision(), REVISION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getUrl() == null) ? 0 : getUrl().hashCode()); hashCode = prime * hashCode + ((getUsername() == null) ? 0 : getUsername().hashCode()); hashCode = prime * hashCode + ((getPassword() == null) ? 0 : getPassword().hashCode()); hashCode = prime * hashCode + ((getSshKey() == null) ? 0 : getSshKey().hashCode()); hashCode = prime * hashCode + ((getRevision() == null) ? 0 : getRevision().hashCode()); return hashCode; }
/** * 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 (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getUrl() != null) sb.append("Url: ").append(getUrl()).append(","); if (getUsername() != null) sb.append("Username: ").append(getUsername()).append(","); if (getPassword() != null) sb.append("Password: ").append(getPassword()).append(","); if (getSshKey() != null) sb.append("SshKey: ").append(getSshKey()).append(","); if (getRevision() != null) sb.append("Revision: ").append(getRevision()); sb.append("}"); return sb.toString(); }
if (other.getPassword() != null && other.getPassword().equals(this.getPassword()) == false) return false; if (other.getSshKey() == null ^ this.getSshKey() == null) return false; if (other.getSshKey() != null && other.getSshKey().equals(this.getSshKey()) == false) return false; if (other.getRevision() == null ^ this.getRevision() == null)
/** * Marshall the given parameter object. */ public void marshall(Source source, ProtocolMarshaller protocolMarshaller) { if (source == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(source.getType(), TYPE_BINDING); protocolMarshaller.marshall(source.getUrl(), URL_BINDING); protocolMarshaller.marshall(source.getUsername(), USERNAME_BINDING); protocolMarshaller.marshall(source.getPassword(), PASSWORD_BINDING); protocolMarshaller.marshall(source.getSshKey(), SSHKEY_BINDING); protocolMarshaller.marshall(source.getRevision(), REVISION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }