@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingTypeDescription() == null) ? 0 : getThingTypeDescription().hashCode()); hashCode = prime * hashCode + ((getSearchableAttributes() == null) ? 0 : getSearchableAttributes().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingTypeProperties == false) return false; ThingTypeProperties other = (ThingTypeProperties) obj; if (other.getThingTypeDescription() == null ^ this.getThingTypeDescription() == null) return false; if (other.getThingTypeDescription() != null && other.getThingTypeDescription().equals(this.getThingTypeDescription()) == false) return false; if (other.getSearchableAttributes() == null ^ this.getSearchableAttributes() == null) return false; if (other.getSearchableAttributes() != null && other.getSearchableAttributes().equals(this.getSearchableAttributes()) == 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 (getThingTypeDescription() != null) sb.append("ThingTypeDescription: ").append(getThingTypeDescription()).append(","); if (getSearchableAttributes() != null) sb.append("SearchableAttributes: ").append(getSearchableAttributes()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(ThingTypeProperties thingTypeProperties, ProtocolMarshaller protocolMarshaller) { if (thingTypeProperties == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(thingTypeProperties.getThingTypeDescription(), THINGTYPEDESCRIPTION_BINDING); protocolMarshaller.marshall(thingTypeProperties.getSearchableAttributes(), SEARCHABLEATTRIBUTES_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * <p> * A list of searchable thing attribute names. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param searchableAttributes <p> * A list of searchable thing attribute names. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ThingTypeProperties withSearchableAttributes(String... searchableAttributes) { if (getSearchableAttributes() == null) { this.searchableAttributes = new java.util.ArrayList<String>(searchableAttributes.length); } for (String value : searchableAttributes) { this.searchableAttributes.add(value); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingTypeDescription() == null) ? 0 : getThingTypeDescription().hashCode()); hashCode = prime * hashCode + ((getSearchableAttributes() == null) ? 0 : getSearchableAttributes().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 (getThingTypeDescription() != null) sb.append("thingTypeDescription: " + getThingTypeDescription() + ","); if (getSearchableAttributes() != null) sb.append("searchableAttributes: " + getSearchableAttributes()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingTypeProperties == false) return false; ThingTypeProperties other = (ThingTypeProperties) obj; if (other.getThingTypeDescription() == null ^ this.getThingTypeDescription() == null) return false; if (other.getThingTypeDescription() != null && other.getThingTypeDescription().equals(this.getThingTypeDescription()) == false) return false; if (other.getSearchableAttributes() == null ^ this.getSearchableAttributes() == null) return false; if (other.getSearchableAttributes() != null && other.getSearchableAttributes().equals(this.getSearchableAttributes()) == false) return false; return true; } }
public void marshall(ThingTypeProperties thingTypeProperties, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (thingTypeProperties.getThingTypeDescription() != null) { String thingTypeDescription = thingTypeProperties.getThingTypeDescription(); jsonWriter.name("thingTypeDescription"); jsonWriter.value(thingTypeDescription); } if (thingTypeProperties.getSearchableAttributes() != null) { java.util.List<String> searchableAttributes = thingTypeProperties .getSearchableAttributes(); jsonWriter.name("searchableAttributes"); jsonWriter.beginArray(); for (String searchableAttributesItem : searchableAttributes) { if (searchableAttributesItem != null) { jsonWriter.value(searchableAttributesItem); } } jsonWriter.endArray(); } jsonWriter.endObject(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingTypeDescription() == null) ? 0 : getThingTypeDescription().hashCode()); hashCode = prime * hashCode + ((getSearchableAttributes() == null) ? 0 : getSearchableAttributes().hashCode()); return hashCode; }
/** * <p> * A list of searchable thing attribute names. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param searchableAttributes <p> * A list of searchable thing attribute names. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ThingTypeProperties withSearchableAttributes(String... searchableAttributes) { if (getSearchableAttributes() == null) { this.searchableAttributes = new java.util.ArrayList<String>(searchableAttributes.length); } for (String value : searchableAttributes) { this.searchableAttributes.add(value); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingTypeDescription() == null) ? 0 : getThingTypeDescription().hashCode()); hashCode = prime * hashCode + ((getSearchableAttributes() == null) ? 0 : getSearchableAttributes().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 (getThingTypeDescription() != null) sb.append("thingTypeDescription: " + getThingTypeDescription() + ","); if (getSearchableAttributes() != null) sb.append("searchableAttributes: " + getSearchableAttributes()); 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 (getThingTypeDescription() != null) sb.append("ThingTypeDescription: ").append(getThingTypeDescription()).append(","); if (getSearchableAttributes() != null) sb.append("SearchableAttributes: ").append(getSearchableAttributes()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingTypeProperties == false) return false; ThingTypeProperties other = (ThingTypeProperties) obj; if (other.getThingTypeDescription() == null ^ this.getThingTypeDescription() == null) return false; if (other.getThingTypeDescription() != null && other.getThingTypeDescription().equals(this.getThingTypeDescription()) == false) return false; if (other.getSearchableAttributes() == null ^ this.getSearchableAttributes() == null) return false; if (other.getSearchableAttributes() != null && other.getSearchableAttributes().equals(this.getSearchableAttributes()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThingTypeProperties == false) return false; ThingTypeProperties other = (ThingTypeProperties) obj; if (other.getThingTypeDescription() == null ^ this.getThingTypeDescription() == null) return false; if (other.getThingTypeDescription() != null && other.getThingTypeDescription().equals(this.getThingTypeDescription()) == false) return false; if (other.getSearchableAttributes() == null ^ this.getSearchableAttributes() == null) return false; if (other.getSearchableAttributes() != null && other.getSearchableAttributes().equals(this.getSearchableAttributes()) == false) return false; return true; } }
/** * Marshall the given parameter object. */ public void marshall(ThingTypeProperties thingTypeProperties, ProtocolMarshaller protocolMarshaller) { if (thingTypeProperties == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(thingTypeProperties.getThingTypeDescription(), THINGTYPEDESCRIPTION_BINDING); protocolMarshaller.marshall(thingTypeProperties.getSearchableAttributes(), SEARCHABLEATTRIBUTES_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public void marshall(ThingTypeProperties thingTypeProperties, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (thingTypeProperties.getThingTypeDescription() != null) { String thingTypeDescription = thingTypeProperties.getThingTypeDescription(); jsonWriter.name("thingTypeDescription"); jsonWriter.value(thingTypeDescription); } if (thingTypeProperties.getSearchableAttributes() != null) { java.util.List<String> searchableAttributes = thingTypeProperties .getSearchableAttributes(); jsonWriter.name("searchableAttributes"); jsonWriter.beginArray(); for (String searchableAttributesItem : searchableAttributes) { if (searchableAttributesItem != null) { jsonWriter.value(searchableAttributesItem); } } jsonWriter.endArray(); } jsonWriter.endObject(); }