@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConsoleURL() == null) ? 0 : getConsoleURL().hashCode()); hashCode = prime * hashCode + ((getEndpoints() == null) ? 0 : getEndpoints().hashCode()); hashCode = prime * hashCode + ((getIpAddress() == null) ? 0 : getIpAddress().hashCode()); return hashCode; }
/** * 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 (getConsoleURL() != null) sb.append("ConsoleURL: ").append(getConsoleURL()).append(","); if (getEndpoints() != null) sb.append("Endpoints: ").append(getEndpoints()).append(","); if (getIpAddress() != null) sb.append("IpAddress: ").append(getIpAddress()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BrokerInstance == false) return false; BrokerInstance other = (BrokerInstance) obj; if (other.getConsoleURL() == null ^ this.getConsoleURL() == null) return false; if (other.getConsoleURL() != null && other.getConsoleURL().equals(this.getConsoleURL()) == false) return false; if (other.getEndpoints() == null ^ this.getEndpoints() == null) return false; if (other.getEndpoints() != null && other.getEndpoints().equals(this.getEndpoints()) == false) return false; if (other.getIpAddress() == null ^ this.getIpAddress() == null) return false; if (other.getIpAddress() != null && other.getIpAddress().equals(this.getIpAddress()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(BrokerInstance brokerInstance, ProtocolMarshaller protocolMarshaller) { if (brokerInstance == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(brokerInstance.getConsoleURL(), CONSOLEURL_BINDING); protocolMarshaller.marshall(brokerInstance.getEndpoints(), ENDPOINTS_BINDING); protocolMarshaller.marshall(brokerInstance.getIpAddress(), IPADDRESS_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 + ((getConsoleURL() == null) ? 0 : getConsoleURL().hashCode()); hashCode = prime * hashCode + ((getEndpoints() == null) ? 0 : getEndpoints().hashCode()); hashCode = prime * hashCode + ((getIpAddress() == null) ? 0 : getIpAddress().hashCode()); return hashCode; }
/** * 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 (getConsoleURL() != null) sb.append("ConsoleURL: ").append(getConsoleURL()).append(","); if (getEndpoints() != null) sb.append("Endpoints: ").append(getEndpoints()).append(","); if (getIpAddress() != null) sb.append("IpAddress: ").append(getIpAddress()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BrokerInstance == false) return false; BrokerInstance other = (BrokerInstance) obj; if (other.getConsoleURL() == null ^ this.getConsoleURL() == null) return false; if (other.getConsoleURL() != null && other.getConsoleURL().equals(this.getConsoleURL()) == false) return false; if (other.getEndpoints() == null ^ this.getEndpoints() == null) return false; if (other.getEndpoints() != null && other.getEndpoints().equals(this.getEndpoints()) == false) return false; if (other.getIpAddress() == null ^ this.getIpAddress() == null) return false; if (other.getIpAddress() != null && other.getIpAddress().equals(this.getIpAddress()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(BrokerInstance brokerInstance, ProtocolMarshaller protocolMarshaller) { if (brokerInstance == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(brokerInstance.getConsoleURL(), CONSOLEURL_BINDING); protocolMarshaller.marshall(brokerInstance.getEndpoints(), ENDPOINTS_BINDING); protocolMarshaller.marshall(brokerInstance.getIpAddress(), IPADDRESS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }