code: public void setEntitlements(java.util.Collection<ListedEntitlement> entitlements) {
          if (entitlements == null) {
              this.entitlements = null;
              return;
          }
  
          this.entitlements = new java.util.ArrayList<ListedEntitlement>(entitlements);
      }
docs: A list of entitlements that have been granted to you from other AWS accounts.
  
  @param entitlements
  A list of entitlements that have been granted to you from other AWS accounts.