code: public ListCommandInvocationsResult withCommandInvocations(CommandInvocation... commandInvocations) {
          if (this.commandInvocations == null) {
              setCommandInvocations(new com.amazonaws.internal.SdkInternalList<CommandInvocation>(commandInvocations.length));
          }
          for (CommandInvocation ele : commandInvocations) {
              this.commandInvocations.add(ele);
          }
          return this;
      }
docs: <p>
  (Optional) A list of all invocations.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setCommandInvocations(java.util.Collection)} or {@link #withCommandInvocations(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param commandInvocations
  (Optional) A list of all invocations.
  @return Returns a reference to this object so that method calls can be chained together.