@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStreamEnabled() == null) ? 0 : getStreamEnabled().hashCode()); hashCode = prime * hashCode + ((getStreamViewType() == null) ? 0 : getStreamViewType().hashCode()); return hashCode; }
/** * 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 (getStreamEnabled() != null) sb.append("StreamEnabled: ").append(getStreamEnabled()).append(","); if (getStreamViewType() != null) sb.append("StreamViewType: ").append(getStreamViewType()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StreamSpecification == false) return false; StreamSpecification other = (StreamSpecification) obj; if (other.getStreamEnabled() == null ^ this.getStreamEnabled() == null) return false; if (other.getStreamEnabled() != null && other.getStreamEnabled().equals(this.getStreamEnabled()) == false) return false; if (other.getStreamViewType() == null ^ this.getStreamViewType() == null) return false; if (other.getStreamViewType() != null && other.getStreamViewType().equals(this.getStreamViewType()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(StreamSpecification streamSpecification, ProtocolMarshaller protocolMarshaller) { if (streamSpecification == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(streamSpecification.getStreamEnabled(), STREAMENABLED_BINDING); protocolMarshaller.marshall(streamSpecification.getStreamViewType(), STREAMVIEWTYPE_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 + ((getStreamEnabled() == null) ? 0 : getStreamEnabled().hashCode()); hashCode = prime * hashCode + ((getStreamViewType() == null) ? 0 : getStreamViewType().hashCode()); return hashCode; }
/** * 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 (getStreamEnabled() != null) sb.append("StreamEnabled: " + getStreamEnabled() + ","); if (getStreamViewType() != null) sb.append("StreamViewType: " + getStreamViewType()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StreamSpecification == false) return false; StreamSpecification other = (StreamSpecification) obj; if (other.getStreamEnabled() == null ^ this.getStreamEnabled() == null) return false; if (other.getStreamEnabled() != null && other.getStreamEnabled().equals(this.getStreamEnabled()) == false) return false; if (other.getStreamViewType() == null ^ this.getStreamViewType() == null) return false; if (other.getStreamViewType() != null && other.getStreamViewType().equals(this.getStreamViewType()) == false) return false; return true; } }
public void marshall(StreamSpecification streamSpecification, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (streamSpecification.getStreamEnabled() != null) { Boolean streamEnabled = streamSpecification.getStreamEnabled(); jsonWriter.name("StreamEnabled"); jsonWriter.value(streamEnabled); } if (streamSpecification.getStreamViewType() != null) { String streamViewType = streamSpecification.getStreamViewType(); jsonWriter.name("StreamViewType"); jsonWriter.value(streamViewType); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStreamEnabled() == null) ? 0 : getStreamEnabled().hashCode()); hashCode = prime * hashCode + ((getStreamViewType() == null) ? 0 : getStreamViewType().hashCode()); return hashCode; }
/** * 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 (getStreamEnabled() != null) sb.append("StreamEnabled: ").append(getStreamEnabled()).append(","); if (getStreamViewType() != null) sb.append("StreamViewType: ").append(getStreamViewType()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StreamSpecification == false) return false; StreamSpecification other = (StreamSpecification) obj; if (other.getStreamEnabled() == null ^ this.getStreamEnabled() == null) return false; if (other.getStreamEnabled() != null && other.getStreamEnabled().equals(this.getStreamEnabled()) == false) return false; if (other.getStreamViewType() == null ^ this.getStreamViewType() == null) return false; if (other.getStreamViewType() != null && other.getStreamViewType().equals(this.getStreamViewType()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(StreamSpecification streamSpecification, ProtocolMarshaller protocolMarshaller) { if (streamSpecification == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(streamSpecification.getStreamEnabled(), STREAMENABLED_BINDING); protocolMarshaller.marshall(streamSpecification.getStreamViewType(), STREAMVIEWTYPE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
System.out.println("Stream enabled: "+ myStreamSpec.getStreamEnabled()); System.out.println("Update view type: "+ myStreamSpec.getStreamViewType());