public CommandInvocation withCommandId(String commandId) {
        setCommandId(commandId);
        return this;
    }
<p>
The command against which this invocation was requested.
</p>

@param commandId
       The command against which this invocation was requested.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/CommandInvocation.java