@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; }
/** * <p> * The ID of the AWSSignerJob which was created to sign the file. * </p> * * @param awsSignerJobId * The ID of the AWSSignerJob which was created to sign the file. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigning withAwsSignerJobId(String awsSignerJobId) { setAwsSignerJobId(awsSignerJobId); return this; }
/** * <p> * A custom method for code signing a file. * </p> * * @param customCodeSigning * A custom method for code signing a file. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigning withCustomCodeSigning(CustomCodeSigning customCodeSigning) { setCustomCodeSigning(customCodeSigning); return this; }
public CodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception { CodeSigning codeSigning = new CodeSigning(); if (context.testExpression("awsSignerJobId", targetDepth)) { context.nextToken(); codeSigning.setAwsSignerJobId(context.getUnmarshaller(String.class).unmarshall(context)); codeSigning.setStartSigningJobParameter(StartSigningJobParameterJsonUnmarshaller.getInstance().unmarshall(context)); codeSigning.setCustomCodeSigning(CustomCodeSigningJsonUnmarshaller.getInstance().unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFileName() == null) ? 0 : getFileName().hashCode()); hashCode = prime * hashCode + ((getFileVersion() == null) ? 0 : getFileVersion().hashCode()); hashCode = prime * hashCode + ((getFileLocation() == null) ? 0 : getFileLocation().hashCode()); hashCode = prime * hashCode + ((getCodeSigning() == null) ? 0 : getCodeSigning().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); return hashCode; }
if (other.getCodeSigning() == null ^ this.getCodeSigning() == null) return false; if (other.getCodeSigning() != null && other.getCodeSigning().equals(this.getCodeSigning()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null)
/** * <p> * Describes the code-signing job. * </p> * * @param startSigningJobParameter * Describes the code-signing job. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigning withStartSigningJobParameter(StartSigningJobParameter startSigningJobParameter) { setStartSigningJobParameter(startSigningJobParameter); return this; }
public CodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CodeSigning codeSigning = new CodeSigning(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("awsSignerJobId")) { codeSigning.setAwsSignerJobId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("startSigningJobParameter")) { codeSigning.setStartSigningJobParameter(StartSigningJobParameterJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("customCodeSigning")) { codeSigning.setCustomCodeSigning(CustomCodeSigningJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return codeSigning; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFileName() == null) ? 0 : getFileName().hashCode()); hashCode = prime * hashCode + ((getFileVersion() == null) ? 0 : getFileVersion().hashCode()); hashCode = prime * hashCode + ((getFileLocation() == null) ? 0 : getFileLocation().hashCode()); hashCode = prime * hashCode + ((getCodeSigning() == null) ? 0 : getCodeSigning().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); return hashCode; }
return false; if (other.getCodeSigning() != null && other.getCodeSigning().equals(this.getCodeSigning()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null)
/** * <p> * Describes the code-signing job. * </p> * * @param startSigningJobParameter * Describes the code-signing job. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigning withStartSigningJobParameter(StartSigningJobParameter startSigningJobParameter) { setStartSigningJobParameter(startSigningJobParameter); return this; }
@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; }
public CodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CodeSigning codeSigning = new CodeSigning(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("awsSignerJobId")) { codeSigning.setAwsSignerJobId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("startSigningJobParameter")) { codeSigning.setStartSigningJobParameter(StartSigningJobParameterJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("customCodeSigning")) { codeSigning.setCustomCodeSigning(CustomCodeSigningJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return codeSigning; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFileName() == null) ? 0 : getFileName().hashCode()); hashCode = prime * hashCode + ((getFileVersion() == null) ? 0 : getFileVersion().hashCode()); hashCode = prime * hashCode + ((getFileLocation() == null) ? 0 : getFileLocation().hashCode()); hashCode = prime * hashCode + ((getCodeSigning() == null) ? 0 : getCodeSigning().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); return hashCode; }
if (other.getCodeSigning() == null ^ this.getCodeSigning() == null) return false; if (other.getCodeSigning() != null && other.getCodeSigning().equals(this.getCodeSigning()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null)
/** * <p> * The ID of the AWSSignerJob which was created to sign the file. * </p> * * @param awsSignerJobId * The ID of the AWSSignerJob which was created to sign the file. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigning withAwsSignerJobId(String awsSignerJobId) { setAwsSignerJobId(awsSignerJobId); return this; }
/** * <p> * A custom method for code signing a file. * </p> * * @param customCodeSigning * A custom method for code signing a file. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigning withCustomCodeSigning(CustomCodeSigning customCodeSigning) { setCustomCodeSigning(customCodeSigning); 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 (getAwsSignerJobId() != null) sb.append("AwsSignerJobId: ").append(getAwsSignerJobId()).append(","); if (getStartSigningJobParameter() != null) sb.append("StartSigningJobParameter: ").append(getStartSigningJobParameter()).append(","); if (getCustomCodeSigning() != null) sb.append("CustomCodeSigning: ").append(getCustomCodeSigning()); sb.append("}"); return sb.toString(); }
public CodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception { CodeSigning codeSigning = new CodeSigning(); if (context.testExpression("awsSignerJobId", targetDepth)) { context.nextToken(); codeSigning.setAwsSignerJobId(context.getUnmarshaller(String.class).unmarshall(context)); codeSigning.setStartSigningJobParameter(StartSigningJobParameterJsonUnmarshaller.getInstance().unmarshall(context)); codeSigning.setCustomCodeSigning(CustomCodeSigningJsonUnmarshaller.getInstance().unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFileName() == null) ? 0 : getFileName().hashCode()); hashCode = prime * hashCode + ((getFileVersion() == null) ? 0 : getFileVersion().hashCode()); hashCode = prime * hashCode + ((getFileLocation() == null) ? 0 : getFileLocation().hashCode()); hashCode = prime * hashCode + ((getCodeSigning() == null) ? 0 : getCodeSigning().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); return hashCode; }