code: public ListEntitlementsResult withEntitlements(ListedEntitlement... entitlements) {
          if (this.entitlements == null) {
              setEntitlements(new java.util.ArrayList<ListedEntitlement>(entitlements.length));
          }
          for (ListedEntitlement ele : entitlements) {
              this.entitlements.add(ele);
          }
          return this;
      }
docs: A list of entitlements that have been granted to you from other AWS accounts.
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setEntitlements(java.util.Collection)} or {@link #withEntitlements(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param entitlements
  A list of entitlements that have been granted to you from other AWS accounts.
  @return Returns a reference to this object so that method calls can be chained together.