public DescribeAgentVersionsRequest withStackId(String stackId) {
        setStackId(stackId);
        return this;
    }
<p>
The stack ID.
</p>

@param stackId
       The stack ID.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/DescribeAgentVersionsRequest.java