@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Destination == false) return false; Destination other = (Destination) obj; if (other.getS3Destination() == null ^ this.getS3Destination() == null) return false; if (other.getS3Destination() != null && other.getS3Destination().equals(this.getS3Destination()) == false) return false; return true; }
@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; }
/** * <p> * Describes the location in S3 of the updated firmware. * </p> * * @param s3Destination * Describes the location in S3 of the updated firmware. * @return Returns a reference to this object so that method calls can be chained together. */ public Destination withS3Destination(S3Destination s3Destination) { setS3Destination(s3Destination); return this; }
public Destination unmarshall(JsonUnmarshallerContext context) throws Exception { Destination destination = new Destination(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("s3Destination", targetDepth)) { context.nextToken(); destination.setS3Destination(S3DestinationJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return destination; }
@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 Destination unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Destination destination = new Destination(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("s3Destination")) { destination.setS3Destination(S3DestinationJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return destination; }
@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; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Destination() == null) ? 0 : getS3Destination().hashCode()); return hashCode; }
public Destination unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Destination destination = new Destination(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("s3Destination")) { destination.setS3Destination(S3DestinationJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return destination; }
@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; }
/** * <p> * Describes the location in S3 of the updated firmware. * </p> * * @param s3Destination * Describes the location in S3 of the updated firmware. * @return Returns a reference to this object so that method calls can be chained together. */ public Destination withS3Destination(S3Destination s3Destination) { setS3Destination(s3Destination); 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 (getS3Destination() != null) sb.append("S3Destination: ").append(getS3Destination()); sb.append("}"); return sb.toString(); }
public Destination unmarshall(JsonUnmarshallerContext context) throws Exception { Destination destination = new Destination(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("s3Destination", targetDepth)) { context.nextToken(); destination.setS3Destination(S3DestinationJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return destination; }
@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(Destination destination, ProtocolMarshaller protocolMarshaller) { if (destination == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(destination.getS3Destination(), S3DESTINATION_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 + ((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 Destination == false) return false; Destination other = (Destination) obj; if (other.getS3Destination() == null ^ this.getS3Destination() == null) return false; if (other.getS3Destination() != null && other.getS3Destination().equals(this.getS3Destination()) == false) return false; return true; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Destination() == null) ? 0 : getS3Destination().hashCode()); return hashCode; }