@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateName() == null) ? 0 : getCertificateName().hashCode()); hashCode = prime * hashCode + ((getInlineDocument() == null) ? 0 : getInlineDocument().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CodeSigningCertificateChain == false) return false; CodeSigningCertificateChain other = (CodeSigningCertificateChain) obj; if (other.getCertificateName() == null ^ this.getCertificateName() == null) return false; if (other.getCertificateName() != null && other.getCertificateName().equals(this.getCertificateName()) == false) return false; if (other.getInlineDocument() == null ^ this.getInlineDocument() == null) return false; if (other.getInlineDocument() != null && other.getInlineDocument().equals(this.getInlineDocument()) == 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 (getCertificateName() != null) sb.append("CertificateName: ").append(getCertificateName()).append(","); if (getInlineDocument() != null) sb.append("InlineDocument: ").append(getInlineDocument()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(CodeSigningCertificateChain codeSigningCertificateChain, ProtocolMarshaller protocolMarshaller) { if (codeSigningCertificateChain == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(codeSigningCertificateChain.getCertificateName(), CERTIFICATENAME_BINDING); protocolMarshaller.marshall(codeSigningCertificateChain.getInlineDocument(), INLINEDOCUMENT_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 + ((getCertificateName() == null) ? 0 : getCertificateName().hashCode()); hashCode = prime * hashCode + ((getInlineDocument() == null) ? 0 : getInlineDocument().hashCode()); return hashCode; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCertificateName() != null) sb.append("certificateName: " + getCertificateName() + ","); if (getInlineDocument() != null) sb.append("inlineDocument: " + getInlineDocument()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CodeSigningCertificateChain == false) return false; CodeSigningCertificateChain other = (CodeSigningCertificateChain) obj; if (other.getCertificateName() == null ^ this.getCertificateName() == null) return false; if (other.getCertificateName() != null && other.getCertificateName().equals(this.getCertificateName()) == false) return false; if (other.getInlineDocument() == null ^ this.getInlineDocument() == null) return false; if (other.getInlineDocument() != null && other.getInlineDocument().equals(this.getInlineDocument()) == false) return false; return true; } }
public void marshall(CodeSigningCertificateChain codeSigningCertificateChain, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (codeSigningCertificateChain.getCertificateName() != null) { String certificateName = codeSigningCertificateChain.getCertificateName(); jsonWriter.name("certificateName"); jsonWriter.value(certificateName); } if (codeSigningCertificateChain.getInlineDocument() != null) { String inlineDocument = codeSigningCertificateChain.getInlineDocument(); jsonWriter.name("inlineDocument"); jsonWriter.value(inlineDocument); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateName() == null) ? 0 : getCertificateName().hashCode()); hashCode = prime * hashCode + ((getInlineDocument() == null) ? 0 : getInlineDocument().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateName() == null) ? 0 : getCertificateName().hashCode()); hashCode = prime * hashCode + ((getInlineDocument() == null) ? 0 : getInlineDocument().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CodeSigningCertificateChain == false) return false; CodeSigningCertificateChain other = (CodeSigningCertificateChain) obj; if (other.getCertificateName() == null ^ this.getCertificateName() == null) return false; if (other.getCertificateName() != null && other.getCertificateName().equals(this.getCertificateName()) == false) return false; if (other.getInlineDocument() == null ^ this.getInlineDocument() == null) return false; if (other.getInlineDocument() != null && other.getInlineDocument().equals(this.getInlineDocument()) == false) return false; return true; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCertificateName() != null) sb.append("certificateName: " + getCertificateName() + ","); if (getInlineDocument() != null) sb.append("inlineDocument: " + getInlineDocument()); sb.append("}"); return sb.toString(); }
/** * 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 (getCertificateName() != null) sb.append("CertificateName: ").append(getCertificateName()).append(","); if (getInlineDocument() != null) sb.append("InlineDocument: ").append(getInlineDocument()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CodeSigningCertificateChain == false) return false; CodeSigningCertificateChain other = (CodeSigningCertificateChain) obj; if (other.getCertificateName() == null ^ this.getCertificateName() == null) return false; if (other.getCertificateName() != null && other.getCertificateName().equals(this.getCertificateName()) == false) return false; if (other.getInlineDocument() == null ^ this.getInlineDocument() == null) return false; if (other.getInlineDocument() != null && other.getInlineDocument().equals(this.getInlineDocument()) == false) return false; return true; } }
/** * Marshall the given parameter object. */ public void marshall(CodeSigningCertificateChain codeSigningCertificateChain, ProtocolMarshaller protocolMarshaller) { if (codeSigningCertificateChain == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(codeSigningCertificateChain.getCertificateName(), CERTIFICATENAME_BINDING); protocolMarshaller.marshall(codeSigningCertificateChain.getInlineDocument(), INLINEDOCUMENT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public void marshall(CodeSigningCertificateChain codeSigningCertificateChain, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (codeSigningCertificateChain.getCertificateName() != null) { String certificateName = codeSigningCertificateChain.getCertificateName(); jsonWriter.name("certificateName"); jsonWriter.value(certificateName); } if (codeSigningCertificateChain.getInlineDocument() != null) { String inlineDocument = codeSigningCertificateChain.getInlineDocument(); jsonWriter.name("inlineDocument"); jsonWriter.value(inlineDocument); } jsonWriter.endObject(); }