@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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConsumerDescription() == null) ? 0 : getConsumerDescription().hashCode()); return hashCode; }
/** * <p> * When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able to call * <a>SubscribeToShard</a>. * </p> * <p> * If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's because * consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM policies that * reference consumer ARNs. * </p> * * @param consumerARN * When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able * to call <a>SubscribeToShard</a>.</p> * <p> * If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's * because consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM * policies that reference consumer ARNs. * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumerDescription withConsumerARN(String consumerARN) { setConsumerARN(consumerARN); return this; }
public ConsumerDescription unmarshall(JsonUnmarshallerContext context) throws Exception { ConsumerDescription consumerDescription = new ConsumerDescription(); if (context.testExpression("ConsumerName", targetDepth)) { context.nextToken(); consumerDescription.setConsumerName(context.getUnmarshaller(String.class).unmarshall(context)); consumerDescription.setConsumerARN(context.getUnmarshaller(String.class).unmarshall(context)); consumerDescription.setConsumerStatus(context.getUnmarshaller(String.class).unmarshall(context)); consumerDescription.setConsumerCreationTimestamp(context.getUnmarshaller(java.util.Date.class).unmarshall(context)); consumerDescription.setStreamARN(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p/> * * @param consumerCreationTimestamp * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumerDescription withConsumerCreationTimestamp(java.util.Date consumerCreationTimestamp) { setConsumerCreationTimestamp(consumerCreationTimestamp); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStreamConsumerResult == false) return false; DescribeStreamConsumerResult other = (DescribeStreamConsumerResult) obj; if (other.getConsumerDescription() == null ^ this.getConsumerDescription() == null) return false; if (other.getConsumerDescription() != null && other.getConsumerDescription().equals(this.getConsumerDescription()) == false) return false; return true; }
public ConsumerDescription unmarshall(JsonUnmarshallerContext context) throws Exception { ConsumerDescription consumerDescription = new ConsumerDescription(); if (context.testExpression("ConsumerName", targetDepth)) { context.nextToken(); consumerDescription.setConsumerName(context.getUnmarshaller(String.class).unmarshall(context)); consumerDescription.setConsumerARN(context.getUnmarshaller(String.class).unmarshall(context)); consumerDescription.setConsumerStatus(context.getUnmarshaller(String.class).unmarshall(context)); consumerDescription.setConsumerCreationTimestamp(context.getUnmarshaller(java.util.Date.class).unmarshall(context)); consumerDescription.setStreamARN(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p/> * * @param consumerCreationTimestamp * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumerDescription withConsumerCreationTimestamp(java.util.Date consumerCreationTimestamp) { setConsumerCreationTimestamp(consumerCreationTimestamp); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStreamConsumerResult == false) return false; DescribeStreamConsumerResult other = (DescribeStreamConsumerResult) obj; if (other.getConsumerDescription() == null ^ this.getConsumerDescription() == null) return false; if (other.getConsumerDescription() != null && other.getConsumerDescription().equals(this.getConsumerDescription()) == false) return false; return true; }
return false; ConsumerDescription other = (ConsumerDescription) 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; if (other.getStreamARN() == null ^ this.getStreamARN() == null) return false; if (other.getStreamARN() != null && other.getStreamARN().equals(this.getStreamARN()) == false) return false; return true;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConsumerDescription() == null) ? 0 : getConsumerDescription().hashCode()); return hashCode; }
/** * <p> * When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able to call * <a>SubscribeToShard</a>. * </p> * <p> * If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's because * consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM policies that * reference consumer ARNs. * </p> * * @param consumerARN * When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able * to call <a>SubscribeToShard</a>.</p> * <p> * If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's * because consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM * policies that reference consumer ARNs. * @return Returns a reference to this object so that method calls can be chained together. */ public ConsumerDescription withConsumerARN(String consumerARN) { setConsumerARN(consumerARN); 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 (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(); }
/** * 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; }
return false; ConsumerDescription other = (ConsumerDescription) 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; if (other.getStreamARN() == null ^ this.getStreamARN() == null) return false; if (other.getStreamARN() != null && other.getStreamARN().equals(this.getStreamARN()) == 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 (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(); }
/** * 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); } }