@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; }
/** * <p> * The contents of the certificate's domain.crt file. * </p> * * @param certificate * The contents of the certificate's domain.crt file. * @return Returns a reference to this object so that method calls can be chained together. */ public SslConfiguration withCertificate(String certificate) { setCertificate(certificate); return this; }
/** * <p> * Optional. Can be used to specify an intermediate certificate authority key or client authentication. * </p> * * @param chain * Optional. Can be used to specify an intermediate certificate authority key or client authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public SslConfiguration withChain(String chain) { setChain(chain); return this; }
public SslConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception { SslConfiguration sslConfiguration = new SslConfiguration(); if (context.testExpression("Certificate", targetDepth)) { context.nextToken(); sslConfiguration.setCertificate(context.getUnmarshaller(String.class).unmarshall(context)); sslConfiguration.setPrivateKey(context.getUnmarshaller(String.class).unmarshall(context)); sslConfiguration.setChain(context.getUnmarshaller(String.class).unmarshall(context));
if (sslCertificate != null && sslChain != null && sslPrivateKey != null) { SslConfiguration sslConfiguration = new SslConfiguration() .withCertificate(sslCertificate).withChain(sslChain) .withPrivateKey(sslPrivateKey); updateAppRequest.setSslConfiguration(sslConfiguration);
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppId() == null) ? 0 : getAppId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDataSources() == null) ? 0 : getDataSources().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getAppSource() == null) ? 0 : getAppSource().hashCode()); hashCode = prime * hashCode + ((getDomains() == null) ? 0 : getDomains().hashCode()); hashCode = prime * hashCode + ((getEnableSsl() == null) ? 0 : getEnableSsl().hashCode()); hashCode = prime * hashCode + ((getSslConfiguration() == null) ? 0 : getSslConfiguration().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getEnvironment() == null) ? 0 : getEnvironment().hashCode()); return hashCode; }
if (other.getSslConfiguration() == null ^ this.getSslConfiguration() == null) return false; if (other.getSslConfiguration() != null && other.getSslConfiguration().equals(this.getSslConfiguration()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null)
/** * <p> * The private key; the contents of the certificate's domain.kex file. * </p> * * @param privateKey * The private key; the contents of the certificate's domain.kex file. * @return Returns a reference to this object so that method calls can be chained together. */ public SslConfiguration withPrivateKey(String privateKey) { setPrivateKey(privateKey); return this; }
public SslConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception { SslConfiguration sslConfiguration = new SslConfiguration(); if (context.testExpression("Certificate", targetDepth)) { context.nextToken(); sslConfiguration.setCertificate(context.getUnmarshaller(String.class).unmarshall(context)); sslConfiguration.setPrivateKey(context.getUnmarshaller(String.class).unmarshall(context)); sslConfiguration.setChain(context.getUnmarshaller(String.class).unmarshall(context));
if (sslCertificate != null && sslChain != null && sslPrivateKey != null) { SslConfiguration sslConfiguration = new SslConfiguration() .withCertificate(sslCertificate).withChain(sslChain) .withPrivateKey(sslPrivateKey); createAppRequest.setSslConfiguration(sslConfiguration);
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getShortname() == null) ? 0 : getShortname().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDataSources() == null) ? 0 : getDataSources().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getAppSource() == null) ? 0 : getAppSource().hashCode()); hashCode = prime * hashCode + ((getDomains() == null) ? 0 : getDomains().hashCode()); hashCode = prime * hashCode + ((getEnableSsl() == null) ? 0 : getEnableSsl().hashCode()); hashCode = prime * hashCode + ((getSslConfiguration() == null) ? 0 : getSslConfiguration().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getEnvironment() == null) ? 0 : getEnvironment().hashCode()); return hashCode; }
if (other.getSslConfiguration() == null ^ this.getSslConfiguration() == null) return false; if (other.getSslConfiguration() != null && other.getSslConfiguration().equals(this.getSslConfiguration()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null)
/** * <p> * The private key; the contents of the certificate's domain.kex file. * </p> * * @param privateKey * The private key; the contents of the certificate's domain.kex file. * @return Returns a reference to this object so that method calls can be chained together. */ public SslConfiguration withPrivateKey(String privateKey) { setPrivateKey(privateKey); return this; }
@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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppId() == null) ? 0 : getAppId().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getShortname() == null) ? 0 : getShortname().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDataSources() == null) ? 0 : getDataSources().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getAppSource() == null) ? 0 : getAppSource().hashCode()); hashCode = prime * hashCode + ((getDomains() == null) ? 0 : getDomains().hashCode()); hashCode = prime * hashCode + ((getEnableSsl() == null) ? 0 : getEnableSsl().hashCode()); hashCode = prime * hashCode + ((getSslConfiguration() == null) ? 0 : getSslConfiguration().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getEnvironment() == null) ? 0 : getEnvironment().hashCode()); return hashCode; }
if (other.getSslConfiguration() == null ^ this.getSslConfiguration() == null) return false; if (other.getSslConfiguration() != null && other.getSslConfiguration().equals(this.getSslConfiguration()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null)
/** * <p> * Optional. Can be used to specify an intermediate certificate authority key or client authentication. * </p> * * @param chain * Optional. Can be used to specify an intermediate certificate authority key or client authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public SslConfiguration withChain(String chain) { setChain(chain); return this; }
/** * <p> * The contents of the certificate's domain.crt file. * </p> * * @param certificate * The contents of the certificate's domain.crt file. * @return Returns a reference to this object so that method calls can be chained together. */ public SslConfiguration withCertificate(String certificate) { setCertificate(certificate); 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 (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 int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getShortname() == null) ? 0 : getShortname().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDataSources() == null) ? 0 : getDataSources().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getAppSource() == null) ? 0 : getAppSource().hashCode()); hashCode = prime * hashCode + ((getDomains() == null) ? 0 : getDomains().hashCode()); hashCode = prime * hashCode + ((getEnableSsl() == null) ? 0 : getEnableSsl().hashCode()); hashCode = prime * hashCode + ((getSslConfiguration() == null) ? 0 : getSslConfiguration().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getEnvironment() == null) ? 0 : getEnvironment().hashCode()); return hashCode; }