/** * 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 (getStream() != null) sb.append("Stream: ").append(getStream()).append(","); if (getS3Location() != null) sb.append("S3Location: ").append(getS3Location()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FileLocation == false) return false; FileLocation other = (FileLocation) obj; if (other.getStream() == null ^ this.getStream() == null) return false; if (other.getStream() != null && other.getStream().equals(this.getStream()) == false) return false; if (other.getS3Location() == null ^ this.getS3Location() == null) return false; if (other.getS3Location() != null && other.getS3Location().equals(this.getS3Location()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(FileLocation fileLocation, ProtocolMarshaller protocolMarshaller) { if (fileLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(fileLocation.getStream(), STREAM_BINDING); protocolMarshaller.marshall(fileLocation.getS3Location(), S3LOCATION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * 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 (getStream() != null) sb.append("stream: " + getStream() + ","); if (getS3Location() != null) sb.append("s3Location: " + getS3Location()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FileLocation == false) return false; FileLocation other = (FileLocation) obj; if (other.getStream() == null ^ this.getStream() == null) return false; if (other.getStream() != null && other.getStream().equals(this.getStream()) == false) return false; if (other.getS3Location() == null ^ this.getS3Location() == null) return false; if (other.getS3Location() != null && other.getS3Location().equals(this.getS3Location()) == false) return false; return true; } }
public void marshall(FileLocation fileLocation, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (fileLocation.getStream() != null) { Stream stream = fileLocation.getStream(); jsonWriter.name("stream"); StreamJsonMarshaller.getInstance().marshall(stream, jsonWriter); } if (fileLocation.getS3Location() != null) { S3Location s3Location = fileLocation.getS3Location(); jsonWriter.name("s3Location"); S3LocationJsonMarshaller.getInstance().marshall(s3Location, 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 (getStream() != null) sb.append("Stream: ").append(getStream()).append(","); if (getS3Location() != null) sb.append("S3Location: ").append(getS3Location()); 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 (getStream() != null) sb.append("stream: " + getStream() + ","); if (getS3Location() != null) sb.append("s3Location: " + getS3Location()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FileLocation == false) return false; FileLocation other = (FileLocation) obj; if (other.getStream() == null ^ this.getStream() == null) return false; if (other.getStream() != null && other.getStream().equals(this.getStream()) == false) return false; if (other.getS3Location() == null ^ this.getS3Location() == null) return false; if (other.getS3Location() != null && other.getS3Location().equals(this.getS3Location()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(FileLocation fileLocation, ProtocolMarshaller protocolMarshaller) { if (fileLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(fileLocation.getStream(), STREAM_BINDING); protocolMarshaller.marshall(fileLocation.getS3Location(), S3LOCATION_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 FileLocation == false) return false; FileLocation other = (FileLocation) obj; if (other.getStream() == null ^ this.getStream() == null) return false; if (other.getStream() != null && other.getStream().equals(this.getStream()) == false) return false; if (other.getS3Location() == null ^ this.getS3Location() == null) return false; if (other.getS3Location() != null && other.getS3Location().equals(this.getS3Location()) == false) return false; return true; } }
public void marshall(FileLocation fileLocation, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (fileLocation.getStream() != null) { Stream stream = fileLocation.getStream(); jsonWriter.name("stream"); StreamJsonMarshaller.getInstance().marshall(stream, jsonWriter); } if (fileLocation.getS3Location() != null) { S3Location s3Location = fileLocation.getS3Location(); jsonWriter.name("s3Location"); S3LocationJsonMarshaller.getInstance().marshall(s3Location, jsonWriter); } jsonWriter.endObject(); }