@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 certificate chain. * </p> * * @param certificateChain * The certificate chain. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomCodeSigning withCertificateChain(CodeSigningCertificateChain certificateChain) { setCertificateChain(certificateChain); return this; }
/** * <p> * The hash algorithm used to code sign the file. * </p> * * @param hashAlgorithm * The hash algorithm used to code sign the file. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomCodeSigning withHashAlgorithm(String hashAlgorithm) { setHashAlgorithm(hashAlgorithm); return this; }
public CustomCodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception { CustomCodeSigning customCodeSigning = new CustomCodeSigning(); if (context.testExpression("signature", targetDepth)) { context.nextToken(); customCodeSigning.setSignature(CodeSigningSignatureJsonUnmarshaller.getInstance().unmarshall(context)); customCodeSigning.setCertificateChain(CodeSigningCertificateChainJsonUnmarshaller.getInstance().unmarshall(context)); customCodeSigning.setHashAlgorithm(context.getUnmarshaller(String.class).unmarshall(context)); customCodeSigning.setSignatureAlgorithm(context.getUnmarshaller(String.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAwsSignerJobId() == null) ? 0 : getAwsSignerJobId().hashCode()); hashCode = prime * hashCode + ((getStartSigningJobParameter() == null) ? 0 : getStartSigningJobParameter().hashCode()); hashCode = prime * hashCode + ((getCustomCodeSigning() == null) ? 0 : getCustomCodeSigning().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CodeSigning == false) return false; CodeSigning other = (CodeSigning) obj; if (other.getAwsSignerJobId() == null ^ this.getAwsSignerJobId() == null) return false; if (other.getAwsSignerJobId() != null && other.getAwsSignerJobId().equals(this.getAwsSignerJobId()) == false) return false; if (other.getStartSigningJobParameter() == null ^ this.getStartSigningJobParameter() == null) return false; if (other.getStartSigningJobParameter() != null && other.getStartSigningJobParameter().equals(this.getStartSigningJobParameter()) == false) return false; if (other.getCustomCodeSigning() == null ^ this.getCustomCodeSigning() == null) return false; if (other.getCustomCodeSigning() != null && other.getCustomCodeSigning().equals(this.getCustomCodeSigning()) == false) return false; return true; }
/** * <p> * The signature for the file. * </p> * * @param signature * The signature for the file. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomCodeSigning withSignature(CodeSigningSignature signature) { setSignature(signature); return this; }
public CustomCodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CustomCodeSigning customCodeSigning = new CustomCodeSigning(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("signature")) { customCodeSigning.setSignature(CodeSigningSignatureJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("certificateChain")) { customCodeSigning.setCertificateChain(CodeSigningCertificateChainJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("hashAlgorithm")) { customCodeSigning.setHashAlgorithm(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("signatureAlgorithm")) { customCodeSigning.setSignatureAlgorithm(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return customCodeSigning; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAwsSignerJobId() == null) ? 0 : getAwsSignerJobId().hashCode()); hashCode = prime * hashCode + ((getStartSigningJobParameter() == null) ? 0 : getStartSigningJobParameter() .hashCode()); hashCode = prime * hashCode + ((getCustomCodeSigning() == null) ? 0 : getCustomCodeSigning().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CodeSigning == false) return false; CodeSigning other = (CodeSigning) obj; if (other.getAwsSignerJobId() == null ^ this.getAwsSignerJobId() == null) return false; if (other.getAwsSignerJobId() != null && other.getAwsSignerJobId().equals(this.getAwsSignerJobId()) == false) return false; if (other.getStartSigningJobParameter() == null ^ this.getStartSigningJobParameter() == null) return false; if (other.getStartSigningJobParameter() != null && other.getStartSigningJobParameter().equals(this.getStartSigningJobParameter()) == false) return false; if (other.getCustomCodeSigning() == null ^ this.getCustomCodeSigning() == null) return false; if (other.getCustomCodeSigning() != null && other.getCustomCodeSigning().equals(this.getCustomCodeSigning()) == false) return false; return true; } }
/** * <p> * The signature for the file. * </p> * * @param signature * The signature for the file. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomCodeSigning withSignature(CodeSigningSignature signature) { setSignature(signature); return this; }
@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; }
public CustomCodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CustomCodeSigning customCodeSigning = new CustomCodeSigning(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("signature")) { customCodeSigning.setSignature(CodeSigningSignatureJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("certificateChain")) { customCodeSigning.setCertificateChain(CodeSigningCertificateChainJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("hashAlgorithm")) { customCodeSigning.setHashAlgorithm(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("signatureAlgorithm")) { customCodeSigning.setSignatureAlgorithm(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return customCodeSigning; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAwsSignerJobId() == null) ? 0 : getAwsSignerJobId().hashCode()); hashCode = prime * hashCode + ((getStartSigningJobParameter() == null) ? 0 : getStartSigningJobParameter().hashCode()); hashCode = prime * hashCode + ((getCustomCodeSigning() == null) ? 0 : getCustomCodeSigning().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CodeSigning == false) return false; CodeSigning other = (CodeSigning) obj; if (other.getAwsSignerJobId() == null ^ this.getAwsSignerJobId() == null) return false; if (other.getAwsSignerJobId() != null && other.getAwsSignerJobId().equals(this.getAwsSignerJobId()) == false) return false; if (other.getStartSigningJobParameter() == null ^ this.getStartSigningJobParameter() == null) return false; if (other.getStartSigningJobParameter() != null && other.getStartSigningJobParameter().equals(this.getStartSigningJobParameter()) == false) return false; if (other.getCustomCodeSigning() == null ^ this.getCustomCodeSigning() == null) return false; if (other.getCustomCodeSigning() != null && other.getCustomCodeSigning().equals(this.getCustomCodeSigning()) == false) return false; return true; }
/** * <p> * The certificate chain. * </p> * * @param certificateChain * The certificate chain. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomCodeSigning withCertificateChain(CodeSigningCertificateChain certificateChain) { setCertificateChain(certificateChain); return this; }
/** * <p> * The hash algorithm used to code sign the file. * </p> * * @param hashAlgorithm * The hash algorithm used to code sign the file. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomCodeSigning withHashAlgorithm(String hashAlgorithm) { setHashAlgorithm(hashAlgorithm); 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 (getSignature() != null) sb.append("Signature: ").append(getSignature()).append(","); if (getCertificateChain() != null) sb.append("CertificateChain: ").append(getCertificateChain()).append(","); if (getHashAlgorithm() != null) sb.append("HashAlgorithm: ").append(getHashAlgorithm()).append(","); if (getSignatureAlgorithm() != null) sb.append("SignatureAlgorithm: ").append(getSignatureAlgorithm()); sb.append("}"); return sb.toString(); }
public CustomCodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception { CustomCodeSigning customCodeSigning = new CustomCodeSigning(); if (context.testExpression("signature", targetDepth)) { context.nextToken(); customCodeSigning.setSignature(CodeSigningSignatureJsonUnmarshaller.getInstance().unmarshall(context)); customCodeSigning.setCertificateChain(CodeSigningCertificateChainJsonUnmarshaller.getInstance().unmarshall(context)); customCodeSigning.setHashAlgorithm(context.getUnmarshaller(String.class).unmarshall(context)); customCodeSigning.setSignatureAlgorithm(context.getUnmarshaller(String.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAwsSignerJobId() == null) ? 0 : getAwsSignerJobId().hashCode()); hashCode = prime * hashCode + ((getStartSigningJobParameter() == null) ? 0 : getStartSigningJobParameter() .hashCode()); hashCode = prime * hashCode + ((getCustomCodeSigning() == null) ? 0 : getCustomCodeSigning().hashCode()); return hashCode; }