@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 + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getLatestRevision() == null) ? 0 : getLatestRevision().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); return hashCode; }
/** * Required. The Amazon Resource Name (ARN) of the configuration. * * @param arn * Required. The Amazon Resource Name (ARN) of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationResult withArn(String arn) { setArn(arn); return this; }
/** * Required. The date and time of the configuration. * * @param created * Required. The date and time of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationResult withCreated(java.util.Date created) { setCreated(created); return this; }
public CreateConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateConfigurationResult createConfigurationResult = new CreateConfigurationResult(); if (context.testExpression("arn", targetDepth)) { context.nextToken(); createConfigurationResult.setArn(context.getUnmarshaller(String.class).unmarshall(context)); createConfigurationResult.setCreated(DateJsonUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); createConfigurationResult.setId(context.getUnmarshaller(String.class).unmarshall(context)); createConfigurationResult.setLatestRevision(ConfigurationRevisionJsonUnmarshaller.getInstance().unmarshall(context)); createConfigurationResult.setName(context.getUnmarshaller(String.class).unmarshall(context));
/** * Required. The unique ID that Amazon MQ generates for the configuration. * * @param id * Required. The unique ID that Amazon MQ generates for the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationResult withId(String id) { setId(id); return this; }
/** * The latest revision of the configuration. * * @param latestRevision * The latest revision of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationResult withLatestRevision(ConfigurationRevision latestRevision) { setLatestRevision(latestRevision); return this; }
public CreateConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateConfigurationResult createConfigurationResult = new CreateConfigurationResult(); if (context.testExpression("arn", targetDepth)) { context.nextToken(); createConfigurationResult.setArn(context.getUnmarshaller(String.class).unmarshall(context)); createConfigurationResult.setCreated(DateJsonUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); createConfigurationResult.setId(context.getUnmarshaller(String.class).unmarshall(context)); createConfigurationResult.setLatestRevision(ConfigurationRevisionJsonUnmarshaller.getInstance().unmarshall(context)); createConfigurationResult.setName(context.getUnmarshaller(String.class).unmarshall(context));
/** * Required. The unique ID that Amazon MQ generates for the configuration. * * @param id * Required. The unique ID that Amazon MQ generates for the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationResult withId(String id) { setId(id); return this; }
/** * The latest revision of the configuration. * * @param latestRevision * The latest revision of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationResult withLatestRevision(ConfigurationRevision latestRevision) { setLatestRevision(latestRevision); return this; }
return false; CreateConfigurationResult other = (CreateConfigurationResult) 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.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) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; return true;
/** * Required. The date and time of the configuration. * * @param created * Required. The date and time of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationResult withCreated(java.util.Date created) { setCreated(created); return this; }
/** * Required. The Amazon Resource Name (ARN) of the configuration. * * @param arn * Required. The Amazon Resource Name (ARN) of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationResult withArn(String arn) { setArn(arn); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).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()); 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 + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getLatestRevision() == null) ? 0 : getLatestRevision().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); return hashCode; }
return false; CreateConfigurationResult other = (CreateConfigurationResult) 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.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) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).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()); sb.append("}"); return sb.toString(); }