com.amazonaws.services.kinesis.model
Class Shard

java.lang.Object
  extended by com.amazonaws.services.kinesis.model.Shard
All Implemented Interfaces:
Serializable

public class Shard
extends Object
implements Serializable

A uniquely identified group of data records in an Amazon Kinesis stream.

See Also:
Serialized Form

Constructor Summary
Shard()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAdjacentParentShardId()
          The shard Id of the shard adjacent to the shard's parent.
 HashKeyRange getHashKeyRange()
          The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
 String getParentShardId()
          The shard Id of the shard's parent.
 SequenceNumberRange getSequenceNumberRange()
          The range of possible sequence numbers for the shard.
 String getShardId()
          The unique identifier of the shard within the Amazon Kinesis stream.
 int hashCode()
           
 void setAdjacentParentShardId(String adjacentParentShardId)
          The shard Id of the shard adjacent to the shard's parent.
 void setHashKeyRange(HashKeyRange hashKeyRange)
          The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
 void setParentShardId(String parentShardId)
          The shard Id of the shard's parent.
 void setSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
          The range of possible sequence numbers for the shard.
 void setShardId(String shardId)
          The unique identifier of the shard within the Amazon Kinesis stream.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Shard withAdjacentParentShardId(String adjacentParentShardId)
          The shard Id of the shard adjacent to the shard's parent.
 Shard withHashKeyRange(HashKeyRange hashKeyRange)
          The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
 Shard withParentShardId(String parentShardId)
          The shard Id of the shard's parent.
 Shard withSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
          The range of possible sequence numbers for the shard.
 Shard withShardId(String shardId)
          The unique identifier of the shard within the Amazon Kinesis stream.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Shard

public Shard()
Method Detail

getShardId

public String getShardId()
The unique identifier of the shard within the Amazon Kinesis stream.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

Returns:
The unique identifier of the shard within the Amazon Kinesis stream.

setShardId

public void setShardId(String shardId)
The unique identifier of the shard within the Amazon Kinesis stream.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

Parameters:
shardId - The unique identifier of the shard within the Amazon Kinesis stream.

withShardId

public Shard withShardId(String shardId)
The unique identifier of the shard within the Amazon Kinesis stream.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

Parameters:
shardId - The unique identifier of the shard within the Amazon Kinesis stream.
Returns:
A reference to this updated object so that method calls can be chained together.

getParentShardId

public String getParentShardId()
The shard Id of the shard's parent.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

Returns:
The shard Id of the shard's parent.

setParentShardId

public void setParentShardId(String parentShardId)
The shard Id of the shard's parent.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

Parameters:
parentShardId - The shard Id of the shard's parent.

withParentShardId

public Shard withParentShardId(String parentShardId)
The shard Id of the shard's parent.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

Parameters:
parentShardId - The shard Id of the shard's parent.
Returns:
A reference to this updated object so that method calls can be chained together.

getAdjacentParentShardId

public String getAdjacentParentShardId()
The shard Id of the shard adjacent to the shard's parent.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

Returns:
The shard Id of the shard adjacent to the shard's parent.

setAdjacentParentShardId

public void setAdjacentParentShardId(String adjacentParentShardId)
The shard Id of the shard adjacent to the shard's parent.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

Parameters:
adjacentParentShardId - The shard Id of the shard adjacent to the shard's parent.

withAdjacentParentShardId

public Shard withAdjacentParentShardId(String adjacentParentShardId)
The shard Id of the shard adjacent to the shard's parent.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+

Parameters:
adjacentParentShardId - The shard Id of the shard adjacent to the shard's parent.
Returns:
A reference to this updated object so that method calls can be chained together.

getHashKeyRange

public HashKeyRange getHashKeyRange()
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.

Returns:
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.

setHashKeyRange

public void setHashKeyRange(HashKeyRange hashKeyRange)
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.

Parameters:
hashKeyRange - The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.

withHashKeyRange

public Shard withHashKeyRange(HashKeyRange hashKeyRange)
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.

Returns a reference to this object so that method calls can be chained together.

Parameters:
hashKeyRange - The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
Returns:
A reference to this updated object so that method calls can be chained together.

getSequenceNumberRange

public SequenceNumberRange getSequenceNumberRange()
The range of possible sequence numbers for the shard.

Returns:
The range of possible sequence numbers for the shard.

setSequenceNumberRange

public void setSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.

Parameters:
sequenceNumberRange - The range of possible sequence numbers for the shard.

withSequenceNumberRange

public Shard withSequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sequenceNumberRange - The range of possible sequence numbers for the shard.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.