public TestGridSession withEnded(java.util.Date ended) {
        setEnded(ended);
        return this;
    }
<p>
The time the session ended.
</p>

@param ended
       The time the session ended.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/TestGridSession.java