public StreamModeDetails withStreamMode(StreamMode streamMode) {
        this.streamMode = streamMode.toString();
        return this;
    }
<p>
Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you
can choose between an <b>on-demand</b> capacity mode and a <b>provisioned</b> capacity mode for your data
streams.
</p>

@param streamMode
       Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams,
       you can choose between an <b>on-demand</b> capacity mode and a <b>provisioned</b> capacity mode for your
       data streams.
@return Returns a reference to this object so that method calls can be chained together.
@see StreamMode
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesis/model/StreamModeDetails.java