/** * <p> * Reports impaired functionality that stems from issues related to the systems that support an instance, such as * hardware failures and network connectivity problems. * </p> * * @param systemStatus * Reports impaired functionality that stems from issues related to the systems that support an instance, * such as hardware failures and network connectivity problems. * @return Returns a reference to this object so that method calls can be chained together. */public InstanceStatus withSystemStatus(InstanceStatusSummary systemStatus) {
setSystemStatus(systemStatus);
returnthis;
}

/** * <p> * The intended state of the instance. <a>DescribeInstanceStatus</a> requires that an instance be in the * <code>running</code> state. * </p> * * @param instanceState * The intended state of the instance. <a>DescribeInstanceStatus</a> requires that an instance be in the * <code>running</code> state. * @return Returns a reference to this object so that method calls can be chained together. */public InstanceStatus withInstanceState(InstanceState instanceState) {
setInstanceState(instanceState);
returnthis;
}