public void setCommandInvocations(java.util.Collection<CommandInvocation> commandInvocations) {
        if (commandInvocations == null) {
            this.commandInvocations = null;
            return;
        }

        this.commandInvocations = new com.amazonaws.internal.SdkInternalList<CommandInvocation>(commandInvocations);
    }
<p>
(Optional) A list of all invocations.
</p>

@param commandInvocations
       (Optional) A list of all invocations.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/ListCommandInvocationsResult.java