@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingIndexingMode() == null) ? 0 : getThingIndexingMode().hashCode()); hashCode = prime * hashCode + ((getThingConnectivityIndexingMode() == null) ? 0 : getThingConnectivityIndexingMode().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 (getThingIndexingMode() != null) sb.append("ThingIndexingMode: ").append(getThingIndexingMode()).append(","); if (getThingConnectivityIndexingMode() != null) sb.append("ThingConnectivityIndexingMode: ").append(getThingConnectivityIndexingMode()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingIndexingConfiguration == false) return false; ThingIndexingConfiguration other = (ThingIndexingConfiguration) obj; if (other.getThingIndexingMode() == null ^ this.getThingIndexingMode() == null) return false; if (other.getThingIndexingMode() != null && other.getThingIndexingMode().equals(this.getThingIndexingMode()) == false) return false; if (other.getThingConnectivityIndexingMode() == null ^ this.getThingConnectivityIndexingMode() == null) return false; if (other.getThingConnectivityIndexingMode() != null && other.getThingConnectivityIndexingMode().equals(this.getThingConnectivityIndexingMode()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(ThingIndexingConfiguration thingIndexingConfiguration, ProtocolMarshaller protocolMarshaller) { if (thingIndexingConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(thingIndexingConfiguration.getThingIndexingMode(), THINGINDEXINGMODE_BINDING); protocolMarshaller.marshall(thingIndexingConfiguration.getThingConnectivityIndexingMode(), THINGCONNECTIVITYINDEXINGMODE_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 + ((getThingIndexingMode() == null) ? 0 : getThingIndexingMode().hashCode()); hashCode = prime * hashCode + ((getThingConnectivityIndexingMode() == null) ? 0 : getThingConnectivityIndexingMode().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 (getThingIndexingMode() != null) sb.append("thingIndexingMode: " + getThingIndexingMode() + ","); if (getThingConnectivityIndexingMode() != null) sb.append("thingConnectivityIndexingMode: " + getThingConnectivityIndexingMode()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingIndexingConfiguration == false) return false; ThingIndexingConfiguration other = (ThingIndexingConfiguration) obj; if (other.getThingIndexingMode() == null ^ this.getThingIndexingMode() == null) return false; if (other.getThingIndexingMode() != null && other.getThingIndexingMode().equals(this.getThingIndexingMode()) == false) return false; if (other.getThingConnectivityIndexingMode() == null ^ this.getThingConnectivityIndexingMode() == null) return false; if (other.getThingConnectivityIndexingMode() != null && other.getThingConnectivityIndexingMode().equals( this.getThingConnectivityIndexingMode()) == false) return false; return true; } }
public void marshall(ThingIndexingConfiguration thingIndexingConfiguration, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (thingIndexingConfiguration.getThingIndexingMode() != null) { String thingIndexingMode = thingIndexingConfiguration.getThingIndexingMode(); jsonWriter.name("thingIndexingMode"); jsonWriter.value(thingIndexingMode); } if (thingIndexingConfiguration.getThingConnectivityIndexingMode() != null) { String thingConnectivityIndexingMode = thingIndexingConfiguration .getThingConnectivityIndexingMode(); jsonWriter.name("thingConnectivityIndexingMode"); jsonWriter.value(thingConnectivityIndexingMode); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingIndexingMode() == null) ? 0 : getThingIndexingMode().hashCode()); hashCode = prime * hashCode + ((getThingConnectivityIndexingMode() == null) ? 0 : getThingConnectivityIndexingMode().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingIndexingMode() == null) ? 0 : getThingIndexingMode().hashCode()); hashCode = prime * hashCode + ((getThingConnectivityIndexingMode() == null) ? 0 : getThingConnectivityIndexingMode().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 (getThingIndexingMode() != null) sb.append("thingIndexingMode: " + getThingIndexingMode() + ","); if (getThingConnectivityIndexingMode() != null) sb.append("thingConnectivityIndexingMode: " + getThingConnectivityIndexingMode()); sb.append("}"); return sb.toString(); }
/** * 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 (getThingIndexingMode() != null) sb.append("ThingIndexingMode: ").append(getThingIndexingMode()).append(","); if (getThingConnectivityIndexingMode() != null) sb.append("ThingConnectivityIndexingMode: ").append(getThingConnectivityIndexingMode()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingIndexingConfiguration == false) return false; ThingIndexingConfiguration other = (ThingIndexingConfiguration) obj; if (other.getThingIndexingMode() == null ^ this.getThingIndexingMode() == null) return false; if (other.getThingIndexingMode() != null && other.getThingIndexingMode().equals(this.getThingIndexingMode()) == false) return false; if (other.getThingConnectivityIndexingMode() == null ^ this.getThingConnectivityIndexingMode() == null) return false; if (other.getThingConnectivityIndexingMode() != null && other.getThingConnectivityIndexingMode().equals(this.getThingConnectivityIndexingMode()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingIndexingConfiguration == false) return false; ThingIndexingConfiguration other = (ThingIndexingConfiguration) obj; if (other.getThingIndexingMode() == null ^ this.getThingIndexingMode() == null) return false; if (other.getThingIndexingMode() != null && other.getThingIndexingMode().equals(this.getThingIndexingMode()) == false) return false; if (other.getThingConnectivityIndexingMode() == null ^ this.getThingConnectivityIndexingMode() == null) return false; if (other.getThingConnectivityIndexingMode() != null && other.getThingConnectivityIndexingMode().equals( this.getThingConnectivityIndexingMode()) == false) return false; return true; } }
/** * Marshall the given parameter object. */ public void marshall(ThingIndexingConfiguration thingIndexingConfiguration, ProtocolMarshaller protocolMarshaller) { if (thingIndexingConfiguration == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(thingIndexingConfiguration.getThingIndexingMode(), THINGINDEXINGMODE_BINDING); protocolMarshaller.marshall(thingIndexingConfiguration.getThingConnectivityIndexingMode(), THINGCONNECTIVITYINDEXINGMODE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public void marshall(ThingIndexingConfiguration thingIndexingConfiguration, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (thingIndexingConfiguration.getThingIndexingMode() != null) { String thingIndexingMode = thingIndexingConfiguration.getThingIndexingMode(); jsonWriter.name("thingIndexingMode"); jsonWriter.value(thingIndexingMode); } if (thingIndexingConfiguration.getThingConnectivityIndexingMode() != null) { String thingConnectivityIndexingMode = thingIndexingConfiguration .getThingConnectivityIndexingMode(); jsonWriter.name("thingConnectivityIndexingMode"); jsonWriter.value(thingConnectivityIndexingMode); } jsonWriter.endObject(); }