@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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConsumer() == null) ? 0 : getConsumer().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 Consumer withConsumerARN(String consumerARN) { setConsumerARN(consumerARN); return this; }
public Consumer unmarshall(JsonUnmarshallerContext context) throws Exception { Consumer consumer = new Consumer(); if (context.testExpression("ConsumerName", targetDepth)) { context.nextToken(); consumer.setConsumerName(context.getUnmarshaller(String.class).unmarshall(context)); consumer.setConsumerARN(context.getUnmarshaller(String.class).unmarshall(context)); consumer.setConsumerStatus(context.getUnmarshaller(String.class).unmarshall(context)); consumer.setConsumerCreationTimestamp(context.getUnmarshaller(java.util.Date.class).unmarshall(context));
/** * <p/> * * @param consumerCreationTimestamp * @return Returns a reference to this object so that method calls can be chained together. */ public Consumer 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 RegisterStreamConsumerResult == false) return false; RegisterStreamConsumerResult other = (RegisterStreamConsumerResult) obj; if (other.getConsumer() == null ^ this.getConsumer() == null) return false; if (other.getConsumer() != null && other.getConsumer().equals(this.getConsumer()) == false) return false; return true; }
/** * <p> * The name of the consumer is something you choose when you register the consumer. * </p> * * @param consumerName * The name of the consumer is something you choose when you register the consumer. * @return Returns a reference to this object so that method calls can be chained together. */ public Consumer withConsumerName(String consumerName) { setConsumerName(consumerName); return this; }
public Consumer unmarshall(JsonUnmarshallerContext context) throws Exception { Consumer consumer = new Consumer(); if (context.testExpression("ConsumerName", targetDepth)) { context.nextToken(); consumer.setConsumerName(context.getUnmarshaller(String.class).unmarshall(context)); consumer.setConsumerARN(context.getUnmarshaller(String.class).unmarshall(context)); consumer.setConsumerStatus(context.getUnmarshaller(String.class).unmarshall(context)); consumer.setConsumerCreationTimestamp(context.getUnmarshaller(java.util.Date.class).unmarshall(context));
/** * <p/> * * @param consumerCreationTimestamp * @return Returns a reference to this object so that method calls can be chained together. */ public Consumer 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 RegisterStreamConsumerResult == false) return false; RegisterStreamConsumerResult other = (RegisterStreamConsumerResult) obj; if (other.getConsumer() == null ^ this.getConsumer() == null) return false; if (other.getConsumer() != null && other.getConsumer().equals(this.getConsumer()) == false) return false; return true; }
/** * <p> * The name of the consumer is something you choose when you register the consumer. * </p> * * @param consumerName * The name of the consumer is something you choose when you register the consumer. * @return Returns a reference to this object so that method calls can be chained together. */ public Consumer withConsumerName(String consumerName) { setConsumerName(consumerName); return this; }
@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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConsumer() == null) ? 0 : getConsumer().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 Consumer 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()); sb.append("}"); return sb.toString(); }
/** * 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; }
@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; }
/** * 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(); }
/** * 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); } }