public ListCommandInvocationsResult withCommandInvocations(java.util.Collection<CommandInvocation> commandInvocations) {
        setCommandInvocations(commandInvocations);
        return this;
    }
<p>
(Optional) A list of all invocations.
</p>

@param commandInvocations
       (Optional) A list of all invocations.
@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/ListCommandInvocationsResult.java