public ShardFilter withType(ShardFilterType type) {
        this.type = type.toString();
        return this;
    }
<p>
The shard type specified in the <code>ShardFilter</code> parameter. This is a required property of the
<code>ShardFilter</code> parameter.
</p>
<p>
You can specify the following valid values:
</p>
<ul>
<li>
<p>
<code>AFTER_SHARD_ID</code> - the response includes all the shards, starting with the shard whose ID immediately
follows the <code>ShardId</code> that you provided.
</p>
</li>
<li>
<p>
<code>AT_TRIM_HORIZON</code> - the response includes all the shards that were open at <code>TRIM_HORIZON</code>.
</p>
</li>
<li>
<p>
<code>FROM_TRIM_HORIZON</code> - (default), the response includes all the shards within the retention period of
the data stream (trim to tip).
</p>
</li>
<li>
<p>
<code>AT_LATEST</code> - the response includes only the currently open shards of the data stream.
</p>
</li>
<li>
<p>
<code>AT_TIMESTAMP</code> - the response includes all shards whose start timestamp is less than or equal to the
given timestamp and end timestamp is greater than or equal to the given timestamp or still open.
</p>
</li>
<li>
<p>
<code>FROM_TIMESTAMP</code> - the response incldues all closed shards whose end timestamp is greater than or
equal to the given timestamp and also all open shards. Corrected to <code>TRIM_HORIZON</code> of the data stream
if <code>FROM_TIMESTAMP</code> is less than the <code>TRIM_HORIZON</code> value.
</p>
</li>
</ul>

@param type
       The shard type specified in the <code>ShardFilter</code> parameter. This is a required property of the
       <code>ShardFilter</code> parameter.</p>
       <p>
       You can specify the following valid values:
       </p>
       <ul>
       <li>
       <p>
       <code>AFTER_SHARD_ID</code> - the response includes all the shards, starting with the shard whose ID
       immediately follows the <code>ShardId</code> that you provided.
       </p>
       </li>
       <li>
       <p>
       <code>AT_TRIM_HORIZON</code> - the response includes all the shards that were open at
       <code>TRIM_HORIZON</code>.
       </p>
       </li>
       <li>
       <p>
       <code>FROM_TRIM_HORIZON</code> - (default), the response includes all the shards within the retention
       period of the data stream (trim to tip).
       </p>
       </li>
       <li>
       <p>
       <code>AT_LATEST</code> - the response includes only the currently open shards of the data stream.
       </p>
       </li>
       <li>
       <p>
       <code>AT_TIMESTAMP</code> - the response includes all shards whose start timestamp is less than or equal
       to the given timestamp and end timestamp is greater than or equal to the given timestamp or still open.
       </p>
       </li>
       <li>
       <p>
       <code>FROM_TIMESTAMP</code> - the response incldues all closed shards whose end timestamp is greater than
       or equal to the given timestamp and also all open shards. Corrected to <code>TRIM_HORIZON</code> of the
       data stream if <code>FROM_TIMESTAMP</code> is less than the <code>TRIM_HORIZON</code> value.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see ShardFilterType
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesis/model/ShardFilter.java