@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificate() == null) ? 0 : getCertificate().hashCode()); hashCode = prime * hashCode + ((getPrivateKey() == null) ? 0 : getPrivateKey().hashCode()); hashCode = prime * hashCode + ((getChain() == null) ? 0 : getChain().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 (getCertificate() != null) sb.append("Certificate: ").append(getCertificate()).append(","); if (getPrivateKey() != null) sb.append("PrivateKey: ").append(getPrivateKey()).append(","); if (getChain() != null) sb.append("Chain: ").append(getChain()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SslConfiguration == false) return false; SslConfiguration other = (SslConfiguration) obj; if (other.getCertificate() == null ^ this.getCertificate() == null) return false; if (other.getCertificate() != null && other.getCertificate().equals(this.getCertificate()) == false) return false; if (other.getPrivateKey() == null ^ this.getPrivateKey() == null) return false; if (other.getPrivateKey() != null && other.getPrivateKey().equals(this.getPrivateKey()) == false) return false; if (other.getChain() == null ^ this.getChain() == null) return false; if (other.getChain() != null && other.getChain().equals(this.getChain()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(SslConfiguration sslConfiguration, ProtocolMarshaller protocolMarshaller) { if (sslConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(sslConfiguration.getCertificate(), CERTIFICATE_BINDING); protocolMarshaller.marshall(sslConfiguration.getPrivateKey(), PRIVATEKEY_BINDING); protocolMarshaller.marshall(sslConfiguration.getChain(), CHAIN_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 + ((getCertificate() == null) ? 0 : getCertificate().hashCode()); hashCode = prime * hashCode + ((getPrivateKey() == null) ? 0 : getPrivateKey().hashCode()); hashCode = prime * hashCode + ((getChain() == null) ? 0 : getChain().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 (getCertificate() != null) sb.append("Certificate: ").append(getCertificate()).append(","); if (getPrivateKey() != null) sb.append("PrivateKey: ").append(getPrivateKey()).append(","); if (getChain() != null) sb.append("Chain: ").append(getChain()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SslConfiguration == false) return false; SslConfiguration other = (SslConfiguration) obj; if (other.getCertificate() == null ^ this.getCertificate() == null) return false; if (other.getCertificate() != null && other.getCertificate().equals(this.getCertificate()) == false) return false; if (other.getPrivateKey() == null ^ this.getPrivateKey() == null) return false; if (other.getPrivateKey() != null && other.getPrivateKey().equals(this.getPrivateKey()) == false) return false; if (other.getChain() == null ^ this.getChain() == null) return false; if (other.getChain() != null && other.getChain().equals(this.getChain()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(SslConfiguration sslConfiguration, ProtocolMarshaller protocolMarshaller) { if (sslConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(sslConfiguration.getCertificate(), CERTIFICATE_BINDING); protocolMarshaller.marshall(sslConfiguration.getPrivateKey(), PRIVATEKEY_BINDING); protocolMarshaller.marshall(sslConfiguration.getChain(), CHAIN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }