@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStreamDescription() == null) ? 0 : getStreamDescription().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConsumerDescription() == null) ? 0 : getConsumerDescription().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStreamDescriptionSummary() == null) ? 0 : getStreamDescriptionSummary().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getShardId() == null) ? 0 : getShardId().hashCode()); hashCode = prime * hashCode + ((getParentShardId() == null) ? 0 : getParentShardId().hashCode()); hashCode = prime * hashCode + ((getAdjacentParentShardId() == null) ? 0 : getAdjacentParentShardId().hashCode()); hashCode = prime * hashCode + ((getHashKeyRange() == null) ? 0 : getHashKeyRange().hashCode()); hashCode = prime * hashCode + ((getSequenceNumberRange() == null) ? 0 : getSequenceNumberRange().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStreamResult == false) return false; DescribeStreamResult other = (DescribeStreamResult) obj; if (other.getStreamDescription() == null ^ this.getStreamDescription() == null) return false; if (other.getStreamDescription() != null && other.getStreamDescription().equals(this.getStreamDescription()) == false) return false; return true; }
/** * <p> * The shard ID of the Kinesis Data Streams shard to get the iterator for. * </p> * * @param shardId * The shard ID of the Kinesis Data Streams shard to get the iterator for. * @return Returns a reference to this object so that method calls can be chained together. */ public GetShardIteratorRequest withShardId(String shardId) { setShardId(shardId); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStreamSummaryResult == false) return false; DescribeStreamSummaryResult other = (DescribeStreamSummaryResult) obj; if (other.getStreamDescriptionSummary() == null ^ this.getStreamDescriptionSummary() == null) return false; if (other.getStreamDescriptionSummary() != null && other.getStreamDescriptionSummary().equals(this.getStreamDescriptionSummary()) == false) return false; return true; }
/** * <p> * The scaling type. Uniform scaling creates shards of equal size. * </p> * * @param scalingType * The scaling type. Uniform scaling creates shards of equal size. * @see ScalingType */ public void setScalingType(ScalingType scalingType) { withScalingType(scalingType); }
/** * <p> * The name of the stream to delete. * </p> * * @param streamName * The name of the stream to delete. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteStreamRequest withStreamName(String streamName) { setStreamName(streamName); return this; }
/** * <p> * The starting hash key of the hash key range. * </p> * * @param startingHashKey * The starting hash key of the hash key range. * @return Returns a reference to this object so that method calls can be chained together. */ public HashKeyRange withStartingHashKey(String startingHashKey) { setStartingHashKey(startingHashKey); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConsumer() == null) ? 0 : getConsumer().hashCode()); return hashCode; }
@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; }
@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 data records retrieved from the shard. * </p> * * @param records * The data records retrieved from the shard. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRecordsResult withRecords(java.util.Collection<Record> records) { setRecords(records); return this; }
/** * <p> * The maximum number of shards. * </p> * * @param shardLimit * The maximum number of shards. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeLimitsResult withShardLimit(Integer shardLimit) { setShardLimit(shardLimit); return this; }
/** * <p> * The encryption type. The only valid value is <code>KMS</code>. * </p> * * @param encryptionType * The encryption type. The only valid value is <code>KMS</code>. * @see EncryptionType */ public void setEncryptionType(EncryptionType encryptionType) { withEncryptionType(encryptionType); }
/** * <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; }
/** * <p> * The encryption type to use. The only valid value is <code>KMS</code>. * </p> * * @param encryptionType * The encryption type to use. The only valid value is <code>KMS</code>. * @see EncryptionType */ public void setEncryptionType(EncryptionType encryptionType) { withEncryptionType(encryptionType); }
/** * <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; }
/** * <p> * The name that you gave to the consumer. * </p> * * @param consumerName * The name that you gave to the consumer. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStreamConsumerRequest withConsumerName(String consumerName) { setConsumerName(consumerName); return this; }