@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getEngineType() == null) ? 0 : getEngineType().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getLatestRevision() == null) ? 0 : getLatestRevision().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
public DescribeConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeConfigurationResult describeConfigurationResult = new DescribeConfigurationResult(); if (context.testExpression("arn", targetDepth)) { context.nextToken(); describeConfigurationResult.setArn(context.getUnmarshaller(String.class).unmarshall(context)); describeConfigurationResult.setCreated(DateJsonUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); describeConfigurationResult.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); describeConfigurationResult.setEngineType(context.getUnmarshaller(String.class).unmarshall(context)); describeConfigurationResult.setEngineVersion(context.getUnmarshaller(String.class).unmarshall(context)); describeConfigurationResult.setId(context.getUnmarshaller(String.class).unmarshall(context)); describeConfigurationResult.setLatestRevision(ConfigurationRevisionJsonUnmarshaller.getInstance().unmarshall(context)); describeConfigurationResult.setName(context.getUnmarshaller(String.class).unmarshall(context)); describeConfigurationResult.setTags(new MapUnmarshaller<String, String>(context.getUnmarshaller(String.class), context .getUnmarshaller(String.class)).unmarshall(context));
public DescribeConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeConfigurationResult describeConfigurationResult = new DescribeConfigurationResult(); if (context.testExpression("arn", targetDepth)) { context.nextToken(); describeConfigurationResult.setArn(context.getUnmarshaller(String.class).unmarshall(context)); describeConfigurationResult.setCreated(DateJsonUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); describeConfigurationResult.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); describeConfigurationResult.setEngineType(context.getUnmarshaller(String.class).unmarshall(context)); describeConfigurationResult.setEngineVersion(context.getUnmarshaller(String.class).unmarshall(context)); describeConfigurationResult.setId(context.getUnmarshaller(String.class).unmarshall(context)); describeConfigurationResult.setLatestRevision(ConfigurationRevisionJsonUnmarshaller.getInstance().unmarshall(context)); describeConfigurationResult.setName(context.getUnmarshaller(String.class).unmarshall(context)); describeConfigurationResult.setTags(new MapUnmarshaller<String, String>(context.getUnmarshaller(String.class), context .getUnmarshaller(String.class)).unmarshall(context));
return false; DescribeConfigurationResult other = (DescribeConfigurationResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getCreated() == null ^ this.getCreated() == null) return false; if (other.getCreated() != null && other.getCreated().equals(this.getCreated()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getEngineType() == null ^ this.getEngineType() == null) return false; if (other.getEngineType() != null && other.getEngineType().equals(this.getEngineType()) == false) return false; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getLatestRevision() == null ^ this.getLatestRevision() == null) return false; if (other.getLatestRevision() != null && other.getLatestRevision().equals(this.getLatestRevision()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getEngineType() != null) sb.append("EngineType: ").append(getEngineType()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getLatestRevision() != null) sb.append("LatestRevision: ").append(getLatestRevision()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString();
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getEngineType() == null) ? 0 : getEngineType().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getLatestRevision() == null) ? 0 : getLatestRevision().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
return false; DescribeConfigurationResult other = (DescribeConfigurationResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getCreated() == null ^ this.getCreated() == null) return false; if (other.getCreated() != null && other.getCreated().equals(this.getCreated()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getEngineType() == null ^ this.getEngineType() == null) return false; if (other.getEngineType() != null && other.getEngineType().equals(this.getEngineType()) == false) return false; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getLatestRevision() == null ^ this.getLatestRevision() == null) return false; if (other.getLatestRevision() != null && other.getLatestRevision().equals(this.getLatestRevision()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getEngineType() != null) sb.append("EngineType: ").append(getEngineType()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getLatestRevision() != null) sb.append("LatestRevision: ").append(getLatestRevision()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString();