public CommandInvocation withStatus(String status) {
        setStatus(status);
        return this;
    }
<p>
Whether or not the invocation succeeded, failed, or is pending.
</p>

@param status
       Whether or not the invocation succeeded, failed, or is pending.
@return Returns a reference to this object so that method calls can be chained together.
@see CommandInvocationStatus
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/CommandInvocation.java