@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()); hashCode = prime * hashCode + ((getStreamARN() == null) ? 0 : getStreamARN().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()).append(","); if (getStreamARN() != null) sb.append("StreamARN: ").append(getStreamARN()); sb.append("}"); return sb.toString(); }
if (other.getConsumerCreationTimestamp() != null && other.getConsumerCreationTimestamp().equals(this.getConsumerCreationTimestamp()) == false) return false; if (other.getStreamARN() == null ^ this.getStreamARN() == null) return false; if (other.getStreamARN() != null && other.getStreamARN().equals(this.getStreamARN()) == false) return false; return true;
/** * Marshall the given parameter object. */ public void marshall(ConsumerDescription consumerDescription, ProtocolMarshaller protocolMarshaller) { if (consumerDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(consumerDescription.getConsumerName(), CONSUMERNAME_BINDING); protocolMarshaller.marshall(consumerDescription.getConsumerARN(), CONSUMERARN_BINDING); protocolMarshaller.marshall(consumerDescription.getConsumerStatus(), CONSUMERSTATUS_BINDING); protocolMarshaller.marshall(consumerDescription.getConsumerCreationTimestamp(), CONSUMERCREATIONTIMESTAMP_BINDING); protocolMarshaller.marshall(consumerDescription.getStreamARN(), STREAMARN_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()); hashCode = prime * hashCode + ((getStreamARN() == null) ? 0 : getStreamARN().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()).append(","); if (getStreamARN() != null) sb.append("StreamARN: ").append(getStreamARN()); sb.append("}"); return sb.toString(); }
if (other.getConsumerCreationTimestamp() != null && other.getConsumerCreationTimestamp().equals(this.getConsumerCreationTimestamp()) == false) return false; if (other.getStreamARN() == null ^ this.getStreamARN() == null) return false; if (other.getStreamARN() != null && other.getStreamARN().equals(this.getStreamARN()) == false) return false; return true;
/** * Marshall the given parameter object. */ public void marshall(ConsumerDescription consumerDescription, ProtocolMarshaller protocolMarshaller) { if (consumerDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(consumerDescription.getConsumerName(), CONSUMERNAME_BINDING); protocolMarshaller.marshall(consumerDescription.getConsumerARN(), CONSUMERARN_BINDING); protocolMarshaller.marshall(consumerDescription.getConsumerStatus(), CONSUMERSTATUS_BINDING); protocolMarshaller.marshall(consumerDescription.getConsumerCreationTimestamp(), CONSUMERCREATIONTIMESTAMP_BINDING); protocolMarshaller.marshall(consumerDescription.getStreamARN(), STREAMARN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }