code: public void setPurchase(java.util.Collection<Purchase> purchase) {
          if (purchase == null) {
              this.purchase = null;
              return;
          }
  
          this.purchase = new com.amazonaws.internal.SdkInternalList<Purchase>(purchase);
      }
docs: <p>
  The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.
  </p>
  
  @param purchase
  The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.