public ThingIndexingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception { ThingIndexingConfiguration thingIndexingConfiguration = new ThingIndexingConfiguration(); if (context.testExpression("thingIndexingMode", targetDepth)) { context.nextToken(); thingIndexingConfiguration.setThingIndexingMode(context.getUnmarshaller(String.class).unmarshall(context)); thingIndexingConfiguration.setThingConnectivityIndexingMode(context.getUnmarshaller(String.class).unmarshall(context));
@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 + ((getThingIndexingConfiguration() == null) ? 0 : getThingIndexingConfiguration().hashCode()); hashCode = prime * hashCode + ((getThingGroupIndexingConfiguration() == null) ? 0 : getThingGroupIndexingConfiguration().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateIndexingConfigurationRequest == false) return false; UpdateIndexingConfigurationRequest other = (UpdateIndexingConfigurationRequest) obj; if (other.getThingIndexingConfiguration() == null ^ this.getThingIndexingConfiguration() == null) return false; if (other.getThingIndexingConfiguration() != null && other.getThingIndexingConfiguration().equals(this.getThingIndexingConfiguration()) == false) return false; if (other.getThingGroupIndexingConfiguration() == null ^ this.getThingGroupIndexingConfiguration() == null) return false; if (other.getThingGroupIndexingConfiguration() != null && other.getThingGroupIndexingConfiguration().equals(this.getThingGroupIndexingConfiguration()) == false) return false; return true; }
setThingConnectivityIndexingMode(thingConnectivityIndexingMode); return this;
setThingIndexingMode(thingIndexingMode); return this;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetIndexingConfigurationResult == false) return false; GetIndexingConfigurationResult other = (GetIndexingConfigurationResult) obj; if (other.getThingIndexingConfiguration() == null ^ this.getThingIndexingConfiguration() == null) return false; if (other.getThingIndexingConfiguration() != null && other.getThingIndexingConfiguration().equals(this.getThingIndexingConfiguration()) == false) return false; if (other.getThingGroupIndexingConfiguration() == null ^ this.getThingGroupIndexingConfiguration() == null) return false; if (other.getThingGroupIndexingConfiguration() != null && other.getThingGroupIndexingConfiguration().equals(this.getThingGroupIndexingConfiguration()) == false) return false; return true; }
setThingConnectivityIndexingMode(thingConnectivityIndexingMode); return this;
setThingIndexingMode(thingIndexingMode); return this;
@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 ThingIndexingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ThingIndexingConfiguration thingIndexingConfiguration = new ThingIndexingConfiguration(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("thingIndexingMode")) { thingIndexingConfiguration.setThingIndexingMode(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("thingConnectivityIndexingMode")) { thingIndexingConfiguration.setThingConnectivityIndexingMode(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return thingIndexingConfiguration; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingIndexingConfiguration() == null) ? 0 : getThingIndexingConfiguration().hashCode()); hashCode = prime * hashCode + ((getThingGroupIndexingConfiguration() == null) ? 0 : getThingGroupIndexingConfiguration().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateIndexingConfigurationRequest == false) return false; UpdateIndexingConfigurationRequest other = (UpdateIndexingConfigurationRequest) obj; if (other.getThingIndexingConfiguration() == null ^ this.getThingIndexingConfiguration() == null) return false; if (other.getThingIndexingConfiguration() != null && other.getThingIndexingConfiguration().equals( this.getThingIndexingConfiguration()) == false) return false; if (other.getThingGroupIndexingConfiguration() == null ^ this.getThingGroupIndexingConfiguration() == null) return false; if (other.getThingGroupIndexingConfiguration() != null && other.getThingGroupIndexingConfiguration().equals( this.getThingGroupIndexingConfiguration()) == false) return false; return true; } }
/** * 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(); }
public ThingIndexingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ThingIndexingConfiguration thingIndexingConfiguration = new ThingIndexingConfiguration(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("thingIndexingMode")) { thingIndexingConfiguration.setThingIndexingMode(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("thingConnectivityIndexingMode")) { thingIndexingConfiguration.setThingConnectivityIndexingMode(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return thingIndexingConfiguration; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingIndexingConfiguration() == null) ? 0 : getThingIndexingConfiguration() .hashCode()); hashCode = prime * hashCode + ((getThingGroupIndexingConfiguration() == null) ? 0 : getThingGroupIndexingConfiguration().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetIndexingConfigurationResult == false) return false; GetIndexingConfigurationResult other = (GetIndexingConfigurationResult) obj; if (other.getThingIndexingConfiguration() == null ^ this.getThingIndexingConfiguration() == null) return false; if (other.getThingIndexingConfiguration() != null && other.getThingIndexingConfiguration().equals( this.getThingIndexingConfiguration()) == false) return false; if (other.getThingGroupIndexingConfiguration() == null ^ this.getThingGroupIndexingConfiguration() == null) return false; if (other.getThingGroupIndexingConfiguration() != null && other.getThingGroupIndexingConfiguration().equals( this.getThingGroupIndexingConfiguration()) == 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 ThingIndexingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception { ThingIndexingConfiguration thingIndexingConfiguration = new ThingIndexingConfiguration(); if (context.testExpression("thingIndexingMode", targetDepth)) { context.nextToken(); thingIndexingConfiguration.setThingIndexingMode(context.getUnmarshaller(String.class).unmarshall(context)); thingIndexingConfiguration.setThingConnectivityIndexingMode(context.getUnmarshaller(String.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingIndexingConfiguration() == null) ? 0 : getThingIndexingConfiguration() .hashCode()); hashCode = prime * hashCode + ((getThingGroupIndexingConfiguration() == null) ? 0 : getThingGroupIndexingConfiguration().hashCode()); return hashCode; }