/** * 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(); }
@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; }
/** * Marshall the given parameter object. */ public void marshall(CodeSigning codeSigning, ProtocolMarshaller protocolMarshaller) { if (codeSigning == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(codeSigning.getAwsSignerJobId(), AWSSIGNERJOBID_BINDING); protocolMarshaller.marshall(codeSigning.getStartSigningJobParameter(), STARTSIGNINGJOBPARAMETER_BINDING); protocolMarshaller.marshall(codeSigning.getCustomCodeSigning(), CUSTOMCODESIGNING_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@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; }
/** * 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 (getAwsSignerJobId() != null) sb.append("awsSignerJobId: " + getAwsSignerJobId() + ","); if (getStartSigningJobParameter() != null) sb.append("startSigningJobParameter: " + getStartSigningJobParameter() + ","); if (getCustomCodeSigning() != null) sb.append("customCodeSigning: " + getCustomCodeSigning()); sb.append("}"); return sb.toString(); }
@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; } }
public void marshall(CodeSigning codeSigning, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (codeSigning.getAwsSignerJobId() != null) { String awsSignerJobId = codeSigning.getAwsSignerJobId(); jsonWriter.name("awsSignerJobId"); jsonWriter.value(awsSignerJobId); } if (codeSigning.getStartSigningJobParameter() != null) { StartSigningJobParameter startSigningJobParameter = codeSigning .getStartSigningJobParameter(); jsonWriter.name("startSigningJobParameter"); StartSigningJobParameterJsonMarshaller.getInstance().marshall(startSigningJobParameter, jsonWriter); } if (codeSigning.getCustomCodeSigning() != null) { CustomCodeSigning customCodeSigning = codeSigning.getCustomCodeSigning(); jsonWriter.name("customCodeSigning"); CustomCodeSigningJsonMarshaller.getInstance().marshall(customCodeSigning, jsonWriter); } jsonWriter.endObject(); }
/** * 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(); }
/** * 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 (getAwsSignerJobId() != null) sb.append("awsSignerJobId: " + getAwsSignerJobId() + ","); if (getStartSigningJobParameter() != null) sb.append("startSigningJobParameter: " + getStartSigningJobParameter() + ","); if (getCustomCodeSigning() != null) sb.append("customCodeSigning: " + getCustomCodeSigning()); sb.append("}"); return sb.toString(); }
@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 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; }
/** * Marshall the given parameter object. */ public void marshall(CodeSigning codeSigning, ProtocolMarshaller protocolMarshaller) { if (codeSigning == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(codeSigning.getAwsSignerJobId(), AWSSIGNERJOBID_BINDING); protocolMarshaller.marshall(codeSigning.getStartSigningJobParameter(), STARTSIGNINGJOBPARAMETER_BINDING); protocolMarshaller.marshall(codeSigning.getCustomCodeSigning(), CUSTOMCODESIGNING_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@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; }
@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 void marshall(CodeSigning codeSigning, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (codeSigning.getAwsSignerJobId() != null) { String awsSignerJobId = codeSigning.getAwsSignerJobId(); jsonWriter.name("awsSignerJobId"); jsonWriter.value(awsSignerJobId); } if (codeSigning.getStartSigningJobParameter() != null) { StartSigningJobParameter startSigningJobParameter = codeSigning .getStartSigningJobParameter(); jsonWriter.name("startSigningJobParameter"); StartSigningJobParameterJsonMarshaller.getInstance().marshall(startSigningJobParameter, jsonWriter); } if (codeSigning.getCustomCodeSigning() != null) { CustomCodeSigning customCodeSigning = codeSigning.getCustomCodeSigning(); jsonWriter.name("customCodeSigning"); CustomCodeSigningJsonMarshaller.getInstance().marshall(customCodeSigning, jsonWriter); } jsonWriter.endObject(); }