@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConsumerName() == null) ? 0 : getConsumerName().hashCode()); hashCode = prime * hashCode + ((getConsumerARN() == null) ? 0 : getConsumerARN().hashCode()); hashCode = prime * hashCode + ((getConsumerStatus() == null) ? 0 : getConsumerStatus().hashCode()); hashCode = prime * hashCode + ((getConsumerCreationTimestamp() == null) ? 0 : getConsumerCreationTimestamp().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 (getConsumerName() != null) sb.append("ConsumerName: ").append(getConsumerName()).append(","); if (getConsumerARN() != null) sb.append("ConsumerARN: ").append(getConsumerARN()).append(","); if (getConsumerStatus() != null) sb.append("ConsumerStatus: ").append(getConsumerStatus()).append(","); if (getConsumerCreationTimestamp() != null) sb.append("ConsumerCreationTimestamp: ").append(getConsumerCreationTimestamp()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Consumer == false) return false; Consumer other = (Consumer) obj; if (other.getConsumerName() == null ^ this.getConsumerName() == null) return false; if (other.getConsumerName() != null && other.getConsumerName().equals(this.getConsumerName()) == false) return false; if (other.getConsumerARN() == null ^ this.getConsumerARN() == null) return false; if (other.getConsumerARN() != null && other.getConsumerARN().equals(this.getConsumerARN()) == false) return false; if (other.getConsumerStatus() == null ^ this.getConsumerStatus() == null) return false; if (other.getConsumerStatus() != null && other.getConsumerStatus().equals(this.getConsumerStatus()) == false) return false; if (other.getConsumerCreationTimestamp() == null ^ this.getConsumerCreationTimestamp() == null) return false; if (other.getConsumerCreationTimestamp() != null && other.getConsumerCreationTimestamp().equals(this.getConsumerCreationTimestamp()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(Consumer consumer, ProtocolMarshaller protocolMarshaller) { if (consumer == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(consumer.getConsumerName(), CONSUMERNAME_BINDING); protocolMarshaller.marshall(consumer.getConsumerARN(), CONSUMERARN_BINDING); protocolMarshaller.marshall(consumer.getConsumerStatus(), CONSUMERSTATUS_BINDING); protocolMarshaller.marshall(consumer.getConsumerCreationTimestamp(), CONSUMERCREATIONTIMESTAMP_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 + ((getConsumerName() == null) ? 0 : getConsumerName().hashCode()); hashCode = prime * hashCode + ((getConsumerARN() == null) ? 0 : getConsumerARN().hashCode()); hashCode = prime * hashCode + ((getConsumerStatus() == null) ? 0 : getConsumerStatus().hashCode()); hashCode = prime * hashCode + ((getConsumerCreationTimestamp() == null) ? 0 : getConsumerCreationTimestamp().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 (getConsumerName() != null) sb.append("ConsumerName: ").append(getConsumerName()).append(","); if (getConsumerARN() != null) sb.append("ConsumerARN: ").append(getConsumerARN()).append(","); if (getConsumerStatus() != null) sb.append("ConsumerStatus: ").append(getConsumerStatus()).append(","); if (getConsumerCreationTimestamp() != null) sb.append("ConsumerCreationTimestamp: ").append(getConsumerCreationTimestamp()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Consumer == false) return false; Consumer other = (Consumer) obj; if (other.getConsumerName() == null ^ this.getConsumerName() == null) return false; if (other.getConsumerName() != null && other.getConsumerName().equals(this.getConsumerName()) == false) return false; if (other.getConsumerARN() == null ^ this.getConsumerARN() == null) return false; if (other.getConsumerARN() != null && other.getConsumerARN().equals(this.getConsumerARN()) == false) return false; if (other.getConsumerStatus() == null ^ this.getConsumerStatus() == null) return false; if (other.getConsumerStatus() != null && other.getConsumerStatus().equals(this.getConsumerStatus()) == false) return false; if (other.getConsumerCreationTimestamp() == null ^ this.getConsumerCreationTimestamp() == null) return false; if (other.getConsumerCreationTimestamp() != null && other.getConsumerCreationTimestamp().equals(this.getConsumerCreationTimestamp()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(Consumer consumer, ProtocolMarshaller protocolMarshaller) { if (consumer == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(consumer.getConsumerName(), CONSUMERNAME_BINDING); protocolMarshaller.marshall(consumer.getConsumerARN(), CONSUMERARN_BINDING); protocolMarshaller.marshall(consumer.getConsumerStatus(), CONSUMERSTATUS_BINDING); protocolMarshaller.marshall(consumer.getConsumerCreationTimestamp(), CONSUMERCREATIONTIMESTAMP_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }