@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getRevision() == null) ? 0 : getRevision().hashCode()); return hashCode; }
/** * Required. The date and time of the configuration revision. * * @param created * Required. The date and time of the configuration revision. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigurationRevision withCreated(java.util.Date created) { setCreated(created); return this; }
/** * The description of the configuration revision. * * @param description * The description of the configuration revision. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigurationRevision withDescription(String description) { setDescription(description); return this; }
public ConfigurationRevision unmarshall(JsonUnmarshallerContext context) throws Exception { ConfigurationRevision configurationRevision = new ConfigurationRevision(); if (context.testExpression("created", targetDepth)) { context.nextToken(); configurationRevision.setCreated(DateJsonUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); configurationRevision.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); configurationRevision.setRevision(context.getUnmarshaller(Integer.class).unmarshall(context));
@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; }
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)
/** * Required. The revision number of the configuration. * * @param revision * Required. The revision number of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigurationRevision withRevision(Integer revision) { setRevision(revision); return this; }
public ConfigurationRevision unmarshall(JsonUnmarshallerContext context) throws Exception { ConfigurationRevision configurationRevision = new ConfigurationRevision(); if (context.testExpression("created", targetDepth)) { context.nextToken(); configurationRevision.setCreated(DateJsonUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); configurationRevision.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); configurationRevision.setRevision(context.getUnmarshaller(Integer.class).unmarshall(context));
@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; }
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)
/** * Required. The revision number of the configuration. * * @param revision * Required. The revision number of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigurationRevision withRevision(Integer revision) { setRevision(revision); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ConfigurationRevision == false) return false; ConfigurationRevision other = (ConfigurationRevision) obj; 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.getRevision() == null ^ this.getRevision() == null) return false; if (other.getRevision() != null && other.getRevision().equals(this.getRevision()) == false) return false; return true; }
@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; }
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)
/** * The description of the configuration revision. * * @param description * The description of the configuration revision. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigurationRevision withDescription(String description) { setDescription(description); return this; }
/** * Required. The date and time of the configuration revision. * * @param created * Required. The date and time of the configuration revision. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigurationRevision withCreated(java.util.Date created) { setCreated(created); 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 (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getRevision() != null) sb.append("Revision: ").append(getRevision()); 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; }
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)
/** * Marshall the given parameter object. */ public void marshall(ConfigurationRevision configurationRevision, ProtocolMarshaller protocolMarshaller) { if (configurationRevision == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(configurationRevision.getCreated(), CREATED_BINDING); protocolMarshaller.marshall(configurationRevision.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(configurationRevision.getRevision(), REVISION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }