code: public DescribeEnvironmentManagedActionHistoryResult withManagedActionHistoryItems(ManagedActionHistoryItem... managedActionHistoryItems) {
          if (this.managedActionHistoryItems == null) {
              setManagedActionHistoryItems(new com.amazonaws.internal.SdkInternalList<ManagedActionHistoryItem>(managedActionHistoryItems.length));
          }
          for (ManagedActionHistoryItem ele : managedActionHistoryItems) {
              this.managedActionHistoryItems.add(ele);
          }
          return this;
      }
docs: <p>
  A list of completed and failed managed actions.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setManagedActionHistoryItems(java.util.Collection)} or
  {@link #withManagedActionHistoryItems(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param managedActionHistoryItems
  A list of completed and failed managed actions.
  @return Returns a reference to this object so that method calls can be chained together.