public StoreImageTaskResult withStoreTaskState(String storeTaskState) {
        setStoreTaskState(storeTaskState);
        return this;
    }
<p>
The state of the store task (<code>InProgress</code>, <code>Completed</code>, or <code>Failed</code>).
</p>

@param storeTaskState
       The state of the store task (<code>InProgress</code>, <code>Completed</code>, or <code>Failed</code>).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/StoreImageTaskResult.java