@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()); hashCode = prime * hashCode + ((getWarnings() == null) ? 0 : getWarnings().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 UpdateConfigurationResult 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 UpdateConfigurationResult withCreated(java.util.Date created) { setCreated(created); return this; }
public UpdateConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateConfigurationResult updateConfigurationResult = new UpdateConfigurationResult(); if (context.testExpression("arn", targetDepth)) { context.nextToken(); updateConfigurationResult.setArn(context.getUnmarshaller(String.class).unmarshall(context)); updateConfigurationResult.setCreated(DateJsonUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); updateConfigurationResult.setId(context.getUnmarshaller(String.class).unmarshall(context)); updateConfigurationResult.setLatestRevision(ConfigurationRevisionJsonUnmarshaller.getInstance().unmarshall(context)); updateConfigurationResult.setName(context.getUnmarshaller(String.class).unmarshall(context)); updateConfigurationResult.setWarnings(new ListUnmarshaller<SanitizationWarning>(SanitizationWarningJsonUnmarshaller.getInstance()) .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 UpdateConfigurationResult withId(String id) { setId(id); return this; }
public UpdateConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateConfigurationResult updateConfigurationResult = new UpdateConfigurationResult(); if (context.testExpression("arn", targetDepth)) { context.nextToken(); updateConfigurationResult.setArn(context.getUnmarshaller(String.class).unmarshall(context)); updateConfigurationResult.setCreated(DateJsonUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); updateConfigurationResult.setId(context.getUnmarshaller(String.class).unmarshall(context)); updateConfigurationResult.setLatestRevision(ConfigurationRevisionJsonUnmarshaller.getInstance().unmarshall(context)); updateConfigurationResult.setName(context.getUnmarshaller(String.class).unmarshall(context)); updateConfigurationResult.setWarnings(new ListUnmarshaller<SanitizationWarning>(SanitizationWarningJsonUnmarshaller.getInstance()) .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 UpdateConfigurationResult withId(String id) { setId(id); return this; }
return false; UpdateConfigurationResult other = (UpdateConfigurationResult) 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; if (other.getWarnings() == null ^ this.getWarnings() == null) return false; if (other.getWarnings() != null && other.getWarnings().equals(this.getWarnings()) == 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 UpdateConfigurationResult 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 UpdateConfigurationResult 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()).append(","); if (getWarnings() != null) sb.append("Warnings: ").append(getWarnings()); 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()); hashCode = prime * hashCode + ((getWarnings() == null) ? 0 : getWarnings().hashCode()); return hashCode; }
return false; UpdateConfigurationResult other = (UpdateConfigurationResult) 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; if (other.getWarnings() == null ^ this.getWarnings() == null) return false; if (other.getWarnings() != null && other.getWarnings().equals(this.getWarnings()) == 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()).append(","); if (getWarnings() != null) sb.append("Warnings: ").append(getWarnings()); sb.append("}"); return sb.toString(); }