@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEngineType() == null) ? 0 : getEngineType().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
/** * Required. The type of broker engine. Note: Currently, Amazon MQ supports only ACTIVEMQ. * * @param engineType * Required. The type of broker engine. Note: Currently, Amazon MQ supports only ACTIVEMQ. * @return Returns a reference to this object so that method calls can be chained together. * @see EngineType */ public CreateConfigurationRequest withEngineType(String engineType) { setEngineType(engineType); return this; }
/** * Required. The version of the broker engine. For a list of supported engine versions, see * https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html * * @param engineVersion * Required. The version of the broker engine. For a list of supported engine versions, see * https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationRequest withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; }
/** * Create tags when creating the configuration. * * @param tags * Create tags when creating the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationRequest withTags(java.util.Map<String, String> tags) { setTags(tags); return this; }
/** * Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, * underscores, and tildes (- . _ ~). This value must be 1-150 characters long. * * @param name * Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, * periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationRequest withName(String name) { setName(name); return this; }
/** * Create tags when creating the configuration. * * @param tags * Create tags when creating the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationRequest withTags(java.util.Map<String, String> tags) { setTags(tags); return this; }
/** * Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, * underscores, and tildes (- . _ ~). This value must be 1-150 characters long. * * @param name * Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, * periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationRequest withName(String name) { setName(name); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateConfigurationRequest == false) return false; CreateConfigurationRequest other = (CreateConfigurationRequest) obj; 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.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; }
/** * Required. The type of broker engine. Note: Currently, Amazon MQ supports only ACTIVEMQ. * * @param engineType * Required. The type of broker engine. Note: Currently, Amazon MQ supports only ACTIVEMQ. * @return Returns a reference to this object so that method calls can be chained together. * @see EngineType */ public CreateConfigurationRequest withEngineType(String engineType) { setEngineType(engineType); return this; }
/** * Required. The version of the broker engine. For a list of supported engine versions, see * https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html * * @param engineVersion * Required. The version of the broker engine. For a list of supported engine versions, see * https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationRequest withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); 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 (getEngineType() != null) sb.append("EngineType: ").append(getEngineType()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(CreateConfigurationRequest createConfigurationRequest, ProtocolMarshaller protocolMarshaller) { if (createConfigurationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createConfigurationRequest.getEngineType(), ENGINETYPE_BINDING); protocolMarshaller.marshall(createConfigurationRequest.getEngineVersion(), ENGINEVERSION_BINDING); protocolMarshaller.marshall(createConfigurationRequest.getName(), NAME_BINDING); protocolMarshaller.marshall(createConfigurationRequest.getTags(), TAGS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEngineType() == null) ? 0 : getEngineType().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateConfigurationRequest == false) return false; CreateConfigurationRequest other = (CreateConfigurationRequest) obj; 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.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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 (getEngineType() != null) sb.append("EngineType: ").append(getEngineType()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(CreateConfigurationRequest createConfigurationRequest, ProtocolMarshaller protocolMarshaller) { if (createConfigurationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createConfigurationRequest.getEngineType(), ENGINETYPE_BINDING); protocolMarshaller.marshall(createConfigurationRequest.getEngineVersion(), ENGINEVERSION_BINDING); protocolMarshaller.marshall(createConfigurationRequest.getName(), NAME_BINDING); protocolMarshaller.marshall(createConfigurationRequest.getTags(), TAGS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }