/** * 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 (getSigningProfileParameter() != null) sb.append("SigningProfileParameter: ").append(getSigningProfileParameter()).append(","); if (getSigningProfileName() != null) sb.append("SigningProfileName: ").append(getSigningProfileName()).append(","); if (getDestination() != null) sb.append("Destination: ").append(getDestination()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSigningProfileParameter() == null) ? 0 : getSigningProfileParameter().hashCode()); hashCode = prime * hashCode + ((getSigningProfileName() == null) ? 0 : getSigningProfileName().hashCode()); hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode()); return hashCode; }
/** * Marshall the given parameter object. */ public void marshall(StartSigningJobParameter startSigningJobParameter, ProtocolMarshaller protocolMarshaller) { if (startSigningJobParameter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(startSigningJobParameter.getSigningProfileParameter(), SIGNINGPROFILEPARAMETER_BINDING); protocolMarshaller.marshall(startSigningJobParameter.getSigningProfileName(), SIGNINGPROFILENAME_BINDING); protocolMarshaller.marshall(startSigningJobParameter.getDestination(), DESTINATION_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 StartSigningJobParameter == false) return false; StartSigningJobParameter other = (StartSigningJobParameter) obj; if (other.getSigningProfileParameter() == null ^ this.getSigningProfileParameter() == null) return false; if (other.getSigningProfileParameter() != null && other.getSigningProfileParameter().equals(this.getSigningProfileParameter()) == false) return false; if (other.getSigningProfileName() == null ^ this.getSigningProfileName() == null) return false; if (other.getSigningProfileName() != null && other.getSigningProfileName().equals(this.getSigningProfileName()) == false) return false; if (other.getDestination() == null ^ this.getDestination() == null) return false; if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == 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 (getSigningProfileParameter() != null) sb.append("signingProfileParameter: " + getSigningProfileParameter() + ","); if (getSigningProfileName() != null) sb.append("signingProfileName: " + getSigningProfileName() + ","); if (getDestination() != null) sb.append("destination: " + getDestination()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSigningProfileParameter() == null) ? 0 : getSigningProfileParameter() .hashCode()); hashCode = prime * hashCode + ((getSigningProfileName() == null) ? 0 : getSigningProfileName().hashCode()); hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartSigningJobParameter == false) return false; StartSigningJobParameter other = (StartSigningJobParameter) obj; if (other.getSigningProfileParameter() == null ^ this.getSigningProfileParameter() == null) return false; if (other.getSigningProfileParameter() != null && other.getSigningProfileParameter().equals(this.getSigningProfileParameter()) == false) return false; if (other.getSigningProfileName() == null ^ this.getSigningProfileName() == null) return false; if (other.getSigningProfileName() != null && other.getSigningProfileName().equals(this.getSigningProfileName()) == false) return false; if (other.getDestination() == null ^ this.getDestination() == null) return false; if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == false) return false; return true; } }
public void marshall(StartSigningJobParameter startSigningJobParameter, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (startSigningJobParameter.getSigningProfileParameter() != null) { SigningProfileParameter signingProfileParameter = startSigningJobParameter .getSigningProfileParameter(); jsonWriter.name("signingProfileParameter"); SigningProfileParameterJsonMarshaller.getInstance().marshall(signingProfileParameter, jsonWriter); } if (startSigningJobParameter.getSigningProfileName() != null) { String signingProfileName = startSigningJobParameter.getSigningProfileName(); jsonWriter.name("signingProfileName"); jsonWriter.value(signingProfileName); } if (startSigningJobParameter.getDestination() != null) { Destination destination = startSigningJobParameter.getDestination(); jsonWriter.name("destination"); DestinationJsonMarshaller.getInstance().marshall(destination, 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 (getSigningProfileParameter() != null) sb.append("SigningProfileParameter: ").append(getSigningProfileParameter()).append(","); if (getSigningProfileName() != null) sb.append("SigningProfileName: ").append(getSigningProfileName()).append(","); if (getDestination() != null) sb.append("Destination: ").append(getDestination()); 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 (getSigningProfileParameter() != null) sb.append("signingProfileParameter: " + getSigningProfileParameter() + ","); if (getSigningProfileName() != null) sb.append("signingProfileName: " + getSigningProfileName() + ","); if (getDestination() != null) sb.append("destination: " + getDestination()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSigningProfileParameter() == null) ? 0 : getSigningProfileParameter().hashCode()); hashCode = prime * hashCode + ((getSigningProfileName() == null) ? 0 : getSigningProfileName().hashCode()); hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSigningProfileParameter() == null) ? 0 : getSigningProfileParameter() .hashCode()); hashCode = prime * hashCode + ((getSigningProfileName() == null) ? 0 : getSigningProfileName().hashCode()); hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartSigningJobParameter == false) return false; StartSigningJobParameter other = (StartSigningJobParameter) obj; if (other.getSigningProfileParameter() == null ^ this.getSigningProfileParameter() == null) return false; if (other.getSigningProfileParameter() != null && other.getSigningProfileParameter().equals(this.getSigningProfileParameter()) == false) return false; if (other.getSigningProfileName() == null ^ this.getSigningProfileName() == null) return false; if (other.getSigningProfileName() != null && other.getSigningProfileName().equals(this.getSigningProfileName()) == false) return false; if (other.getDestination() == null ^ this.getDestination() == null) return false; if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(StartSigningJobParameter startSigningJobParameter, ProtocolMarshaller protocolMarshaller) { if (startSigningJobParameter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(startSigningJobParameter.getSigningProfileParameter(), SIGNINGPROFILEPARAMETER_BINDING); protocolMarshaller.marshall(startSigningJobParameter.getSigningProfileName(), SIGNINGPROFILENAME_BINDING); protocolMarshaller.marshall(startSigningJobParameter.getDestination(), DESTINATION_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 StartSigningJobParameter == false) return false; StartSigningJobParameter other = (StartSigningJobParameter) obj; if (other.getSigningProfileParameter() == null ^ this.getSigningProfileParameter() == null) return false; if (other.getSigningProfileParameter() != null && other.getSigningProfileParameter().equals(this.getSigningProfileParameter()) == false) return false; if (other.getSigningProfileName() == null ^ this.getSigningProfileName() == null) return false; if (other.getSigningProfileName() != null && other.getSigningProfileName().equals(this.getSigningProfileName()) == false) return false; if (other.getDestination() == null ^ this.getDestination() == null) return false; if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == false) return false; return true; } }
public void marshall(StartSigningJobParameter startSigningJobParameter, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (startSigningJobParameter.getSigningProfileParameter() != null) { SigningProfileParameter signingProfileParameter = startSigningJobParameter .getSigningProfileParameter(); jsonWriter.name("signingProfileParameter"); SigningProfileParameterJsonMarshaller.getInstance().marshall(signingProfileParameter, jsonWriter); } if (startSigningJobParameter.getSigningProfileName() != null) { String signingProfileName = startSigningJobParameter.getSigningProfileName(); jsonWriter.name("signingProfileName"); jsonWriter.value(signingProfileName); } if (startSigningJobParameter.getDestination() != null) { Destination destination = startSigningJobParameter.getDestination(); jsonWriter.name("destination"); DestinationJsonMarshaller.getInstance().marshall(destination, jsonWriter); } jsonWriter.endObject(); }