@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 + ((getSignature() == null) ? 0 : getSignature().hashCode()); hashCode = prime * hashCode + ((getCertificateChain() == null) ? 0 : getCertificateChain().hashCode()); hashCode = prime * hashCode + ((getHashAlgorithm() == null) ? 0 : getHashAlgorithm().hashCode()); hashCode = prime * hashCode + ((getSignatureAlgorithm() == null) ? 0 : getSignatureAlgorithm().hashCode()); return hashCode; }
/** * <p> * The name of the certificate. * </p> * * @param certificateName * The name of the certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigningCertificateChain withCertificateName(String certificateName) { setCertificateName(certificateName); return this; }
public CodeSigningCertificateChain unmarshall(JsonUnmarshallerContext context) throws Exception { CodeSigningCertificateChain codeSigningCertificateChain = new CodeSigningCertificateChain(); if (context.testExpression("certificateName", targetDepth)) { context.nextToken(); codeSigningCertificateChain.setCertificateName(context.getUnmarshaller(String.class).unmarshall(context)); codeSigningCertificateChain.setInlineDocument(context.getUnmarshaller(String.class).unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CustomCodeSigning == false) return false; CustomCodeSigning other = (CustomCodeSigning) obj; if (other.getSignature() == null ^ this.getSignature() == null) return false; if (other.getSignature() != null && other.getSignature().equals(this.getSignature()) == false) return false; if (other.getCertificateChain() == null ^ this.getCertificateChain() == null) return false; if (other.getCertificateChain() != null && other.getCertificateChain().equals(this.getCertificateChain()) == false) return false; if (other.getHashAlgorithm() == null ^ this.getHashAlgorithm() == null) return false; if (other.getHashAlgorithm() != null && other.getHashAlgorithm().equals(this.getHashAlgorithm()) == false) return false; if (other.getSignatureAlgorithm() == null ^ this.getSignatureAlgorithm() == null) return false; if (other.getSignatureAlgorithm() != null && other.getSignatureAlgorithm().equals(this.getSignatureAlgorithm()) == false) return false; return true; }
/** * <p> * A base64 encoded binary representation of the code signing certificate chain. * </p> * * @param inlineDocument * A base64 encoded binary representation of the code signing certificate chain. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigningCertificateChain withInlineDocument(String inlineDocument) { setInlineDocument(inlineDocument); return this; }
public CodeSigningCertificateChain unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CodeSigningCertificateChain codeSigningCertificateChain = new CodeSigningCertificateChain(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("certificateName")) { codeSigningCertificateChain.setCertificateName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("inlineDocument")) { codeSigningCertificateChain.setInlineDocument(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return codeSigningCertificateChain; }
return false; if (other.getCertificateChain() != null && other.getCertificateChain().equals(this.getCertificateChain()) == false) return false; if (other.getHashAlgorithm() == null ^ this.getHashAlgorithm() == null)
/** * <p> * A base64 encoded binary representation of the code signing certificate chain. * </p> * * @param inlineDocument * A base64 encoded binary representation of the code signing certificate chain. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigningCertificateChain withInlineDocument(String inlineDocument) { setInlineDocument(inlineDocument); return this; }
@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 CodeSigningCertificateChain unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CodeSigningCertificateChain codeSigningCertificateChain = new CodeSigningCertificateChain(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("certificateName")) { codeSigningCertificateChain.setCertificateName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("inlineDocument")) { codeSigningCertificateChain.setInlineDocument(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return codeSigningCertificateChain; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSignature() == null) ? 0 : getSignature().hashCode()); hashCode = prime * hashCode + ((getCertificateChain() == null) ? 0 : getCertificateChain().hashCode()); hashCode = prime * hashCode + ((getHashAlgorithm() == null) ? 0 : getHashAlgorithm().hashCode()); hashCode = prime * hashCode + ((getSignatureAlgorithm() == null) ? 0 : getSignatureAlgorithm().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CustomCodeSigning == false) return false; CustomCodeSigning other = (CustomCodeSigning) obj; if (other.getSignature() == null ^ this.getSignature() == null) return false; if (other.getSignature() != null && other.getSignature().equals(this.getSignature()) == false) return false; if (other.getCertificateChain() == null ^ this.getCertificateChain() == null) return false; if (other.getCertificateChain() != null && other.getCertificateChain().equals(this.getCertificateChain()) == false) return false; if (other.getHashAlgorithm() == null ^ this.getHashAlgorithm() == null) return false; if (other.getHashAlgorithm() != null && other.getHashAlgorithm().equals(this.getHashAlgorithm()) == false) return false; if (other.getSignatureAlgorithm() == null ^ this.getSignatureAlgorithm() == null) return false; if (other.getSignatureAlgorithm() != null && other.getSignatureAlgorithm().equals(this.getSignatureAlgorithm()) == false) return false; return true; }
/** * <p> * The name of the certificate. * </p> * * @param certificateName * The name of the certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigningCertificateChain withCertificateName(String certificateName) { setCertificateName(certificateName); 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 (getCertificateName() != null) sb.append("CertificateName: ").append(getCertificateName()).append(","); if (getInlineDocument() != null) sb.append("InlineDocument: ").append(getInlineDocument()); sb.append("}"); return sb.toString(); }
public CodeSigningCertificateChain unmarshall(JsonUnmarshallerContext context) throws Exception { CodeSigningCertificateChain codeSigningCertificateChain = new CodeSigningCertificateChain(); if (context.testExpression("certificateName", targetDepth)) { context.nextToken(); codeSigningCertificateChain.setCertificateName(context.getUnmarshaller(String.class).unmarshall(context)); codeSigningCertificateChain.setInlineDocument(context.getUnmarshaller(String.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSignature() == null) ? 0 : getSignature().hashCode()); hashCode = prime * hashCode + ((getCertificateChain() == null) ? 0 : getCertificateChain().hashCode()); hashCode = prime * hashCode + ((getHashAlgorithm() == null) ? 0 : getHashAlgorithm().hashCode()); hashCode = prime * hashCode + ((getSignatureAlgorithm() == null) ? 0 : getSignatureAlgorithm().hashCode()); return hashCode; }
return false; if (other.getCertificateChain() != null && other.getCertificateChain().equals(this.getCertificateChain()) == false) return false; if (other.getHashAlgorithm() == null ^ this.getHashAlgorithm() == null)
/** * 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 + ((getSignature() == null) ? 0 : getSignature().hashCode()); hashCode = prime * hashCode + ((getCertificateChain() == null) ? 0 : getCertificateChain().hashCode()); hashCode = prime * hashCode + ((getHashAlgorithm() == null) ? 0 : getHashAlgorithm().hashCode()); hashCode = prime * hashCode + ((getSignatureAlgorithm() == null) ? 0 : getSignatureAlgorithm().hashCode()); return hashCode; }