public MemorySessionSummary withSessionExpiryTime(java.util.Date sessionExpiryTime) {
        setSessionExpiryTime(sessionExpiryTime);
        return this;
    }
<p>
The time when the memory duration for the session is set to end.
</p>

@param sessionExpiryTime
       The time when the memory duration for the session is set to end.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrockagentruntime/src/main/java/com/amazonaws/services/bedrockagentruntime/model/MemorySessionSummary.java