public InstanceInfo withDeregisterTime(java.util.Date deregisterTime) {
        setDeregisterTime(deregisterTime);
        return this;
    }
<p>
If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
</p>

@param deregisterTime
       If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/InstanceInfo.java