@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingTypeName() == null) ? 0 : getThingTypeName().hashCode()); hashCode = prime * hashCode + ((getThingTypeId() == null) ? 0 : getThingTypeId().hashCode()); hashCode = prime * hashCode + ((getThingTypeArn() == null) ? 0 : getThingTypeArn().hashCode()); hashCode = prime * hashCode + ((getThingTypeProperties() == null) ? 0 : getThingTypeProperties().hashCode()); hashCode = prime * hashCode + ((getThingTypeMetadata() == null) ? 0 : getThingTypeMetadata().hashCode()); return hashCode; }
/** * <p> * The thing type ARN. * </p> * * @param thingTypeArn * The thing type ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeThingTypeResult withThingTypeArn(String thingTypeArn) { setThingTypeArn(thingTypeArn); return this; }
/** * <p> * The thing type ID. * </p> * * @param thingTypeId * The thing type ID. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeThingTypeResult withThingTypeId(String thingTypeId) { setThingTypeId(thingTypeId); return this; }
public DescribeThingTypeResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeThingTypeResult describeThingTypeResult = new DescribeThingTypeResult(); if (context.testExpression("thingTypeName", targetDepth)) { context.nextToken(); describeThingTypeResult.setThingTypeName(context.getUnmarshaller(String.class).unmarshall(context)); describeThingTypeResult.setThingTypeId(context.getUnmarshaller(String.class).unmarshall(context)); describeThingTypeResult.setThingTypeArn(context.getUnmarshaller(String.class).unmarshall(context)); describeThingTypeResult.setThingTypeProperties(ThingTypePropertiesJsonUnmarshaller.getInstance().unmarshall(context)); describeThingTypeResult.setThingTypeMetadata(ThingTypeMetadataJsonUnmarshaller.getInstance().unmarshall(context));
/** * <p> * The name of the thing type. * </p> * * @param thingTypeName * The name of the thing type. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeThingTypeResult withThingTypeName(String thingTypeName) { setThingTypeName(thingTypeName); return this; }
/** * <p> * The ThingTypeMetadata contains additional information about the thing type including: creation date and time, a * value indicating whether the thing type is deprecated, and a date and time when it was deprecated. * </p> * * @param thingTypeMetadata * The ThingTypeMetadata contains additional information about the thing type including: creation date and * time, a value indicating whether the thing type is deprecated, and a date and time when it was deprecated. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeThingTypeResult withThingTypeMetadata(ThingTypeMetadata thingTypeMetadata) { setThingTypeMetadata(thingTypeMetadata); return this; }
public DescribeThingTypeResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeThingTypeResult describeThingTypeResult = new DescribeThingTypeResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("thingTypeName")) { describeThingTypeResult.setThingTypeName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingTypeId")) { describeThingTypeResult.setThingTypeId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingTypeArn")) { describeThingTypeResult.setThingTypeArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingTypeProperties")) { describeThingTypeResult.setThingTypeProperties(ThingTypePropertiesJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("thingTypeMetadata")) { describeThingTypeResult.setThingTypeMetadata(ThingTypeMetadataJsonUnmarshaller .getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return describeThingTypeResult; }
/** * <p> * The name of the thing type. * </p> * * @param thingTypeName * The name of the thing type. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeThingTypeResult withThingTypeName(String thingTypeName) { setThingTypeName(thingTypeName); return this; }
/** * <p> * The ThingTypeMetadata contains additional information about the thing type including: creation date and time, a * value indicating whether the thing type is deprecated, and a date and time when it was deprecated. * </p> * * @param thingTypeMetadata * The ThingTypeMetadata contains additional information about the thing type including: creation date and * time, a value indicating whether the thing type is deprecated, and a date and time when it was deprecated. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeThingTypeResult withThingTypeMetadata(ThingTypeMetadata thingTypeMetadata) { setThingTypeMetadata(thingTypeMetadata); return this; }
return false; DescribeThingTypeResult other = (DescribeThingTypeResult) obj; if (other.getThingTypeName() == null ^ this.getThingTypeName() == null) return false; if (other.getThingTypeName() != null && other.getThingTypeName().equals(this.getThingTypeName()) == false) return false; if (other.getThingTypeId() == null ^ this.getThingTypeId() == null) return false; if (other.getThingTypeId() != null && other.getThingTypeId().equals(this.getThingTypeId()) == false) return false; if (other.getThingTypeArn() == null ^ this.getThingTypeArn() == null) return false; if (other.getThingTypeArn() != null && other.getThingTypeArn().equals(this.getThingTypeArn()) == false) return false; if (other.getThingTypeProperties() == null ^ this.getThingTypeProperties() == null) return false; if (other.getThingTypeProperties() != null && other.getThingTypeProperties().equals(this.getThingTypeProperties()) == false) return false; if (other.getThingTypeMetadata() == null ^ this.getThingTypeMetadata() == null) return false; if (other.getThingTypeMetadata() != null && other.getThingTypeMetadata().equals(this.getThingTypeMetadata()) == false) return false; return true;
public DescribeThingTypeResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeThingTypeResult describeThingTypeResult = new DescribeThingTypeResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("thingTypeName")) { describeThingTypeResult.setThingTypeName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingTypeId")) { describeThingTypeResult.setThingTypeId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingTypeArn")) { describeThingTypeResult.setThingTypeArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("thingTypeProperties")) { describeThingTypeResult.setThingTypeProperties(ThingTypePropertiesJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("thingTypeMetadata")) { describeThingTypeResult.setThingTypeMetadata(ThingTypeMetadataJsonUnmarshaller .getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return describeThingTypeResult; }
/** * <p> * The thing type ARN. * </p> * * @param thingTypeArn * The thing type ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeThingTypeResult withThingTypeArn(String thingTypeArn) { setThingTypeArn(thingTypeArn); return this; }
/** * <p> * The thing type ID. * </p> * * @param thingTypeId * The thing type ID. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeThingTypeResult withThingTypeId(String thingTypeId) { setThingTypeId(thingTypeId); return this; }
/** * 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 (getThingTypeName() != null) sb.append("ThingTypeName: ").append(getThingTypeName()).append(","); if (getThingTypeId() != null) sb.append("ThingTypeId: ").append(getThingTypeId()).append(","); if (getThingTypeArn() != null) sb.append("ThingTypeArn: ").append(getThingTypeArn()).append(","); if (getThingTypeProperties() != null) sb.append("ThingTypeProperties: ").append(getThingTypeProperties()).append(","); if (getThingTypeMetadata() != null) sb.append("ThingTypeMetadata: ").append(getThingTypeMetadata()); sb.append("}"); return sb.toString(); }
public DescribeThingTypeResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeThingTypeResult describeThingTypeResult = new DescribeThingTypeResult(); if (context.testExpression("thingTypeName", targetDepth)) { context.nextToken(); describeThingTypeResult.setThingTypeName(context.getUnmarshaller(String.class).unmarshall(context)); describeThingTypeResult.setThingTypeId(context.getUnmarshaller(String.class).unmarshall(context)); describeThingTypeResult.setThingTypeArn(context.getUnmarshaller(String.class).unmarshall(context)); describeThingTypeResult.setThingTypeProperties(ThingTypePropertiesJsonUnmarshaller.getInstance().unmarshall(context)); describeThingTypeResult.setThingTypeMetadata(ThingTypeMetadataJsonUnmarshaller.getInstance().unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingTypeName() == null) ? 0 : getThingTypeName().hashCode()); hashCode = prime * hashCode + ((getThingTypeId() == null) ? 0 : getThingTypeId().hashCode()); hashCode = prime * hashCode + ((getThingTypeArn() == null) ? 0 : getThingTypeArn().hashCode()); hashCode = prime * hashCode + ((getThingTypeProperties() == null) ? 0 : getThingTypeProperties().hashCode()); hashCode = prime * hashCode + ((getThingTypeMetadata() == null) ? 0 : getThingTypeMetadata().hashCode()); return hashCode; }
DescribeThingTypeResult other = (DescribeThingTypeResult) obj; if (other.getThingTypeName() == null ^ this.getThingTypeName() == null) return false; if (other.getThingTypeName() != null && other.getThingTypeName().equals(this.getThingTypeName()) == false) return false; if (other.getThingTypeId() == null ^ this.getThingTypeId() == null) return false; if (other.getThingTypeId() != null && other.getThingTypeId().equals(this.getThingTypeId()) == false) return false; if (other.getThingTypeArn() == null ^ this.getThingTypeArn() == null) return false; if (other.getThingTypeArn() != null && other.getThingTypeArn().equals(this.getThingTypeArn()) == false) return false; if (other.getThingTypeProperties() == null ^ this.getThingTypeProperties() == null) return false; if (other.getThingTypeProperties() != null && other.getThingTypeProperties().equals(this.getThingTypeProperties()) == false) return false; if (other.getThingTypeMetadata() == null ^ this.getThingTypeMetadata() == null) return false; if (other.getThingTypeMetadata() != null && other.getThingTypeMetadata().equals(this.getThingTypeMetadata()) == false) return false; return true;
/** * 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 (getThingTypeName() != null) sb.append("thingTypeName: " + getThingTypeName() + ","); if (getThingTypeId() != null) sb.append("thingTypeId: " + getThingTypeId() + ","); if (getThingTypeArn() != null) sb.append("thingTypeArn: " + getThingTypeArn() + ","); if (getThingTypeProperties() != null) sb.append("thingTypeProperties: " + getThingTypeProperties() + ","); if (getThingTypeMetadata() != null) sb.append("thingTypeMetadata: " + getThingTypeMetadata()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingTypeName() == null) ? 0 : getThingTypeName().hashCode()); hashCode = prime * hashCode + ((getThingTypeId() == null) ? 0 : getThingTypeId().hashCode()); hashCode = prime * hashCode + ((getThingTypeArn() == null) ? 0 : getThingTypeArn().hashCode()); hashCode = prime * hashCode + ((getThingTypeProperties() == null) ? 0 : getThingTypeProperties().hashCode()); hashCode = prime * hashCode + ((getThingTypeMetadata() == null) ? 0 : getThingTypeMetadata().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getThingTypeName() == null) ? 0 : getThingTypeName().hashCode()); hashCode = prime * hashCode + ((getThingTypeId() == null) ? 0 : getThingTypeId().hashCode()); hashCode = prime * hashCode + ((getThingTypeArn() == null) ? 0 : getThingTypeArn().hashCode()); hashCode = prime * hashCode + ((getThingTypeProperties() == null) ? 0 : getThingTypeProperties().hashCode()); hashCode = prime * hashCode + ((getThingTypeMetadata() == null) ? 0 : getThingTypeMetadata().hashCode()); return hashCode; }