public DescribeAgentResult withLastConnectionTime(java.util.Date lastConnectionTime) {
        setLastConnectionTime(lastConnectionTime);
        return this;
    }
<p>
The last time that the agent was communicating with the DataSync service.
</p>

@param lastConnectionTime
       The last time that the agent was communicating with the DataSync service.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/DescribeAgentResult.java