Interface GetOfferSetResponse.Builder

  • Method Details

    • locale

      The locale of the returned content. Indicates whether the response contains content in the requested locale, or fell back to the default locale. See Locale for details.

      Parameters:
      locale - The locale of the returned content. Indicates whether the response contains content in the requested locale, or fell back to the default locale. See Locale for details.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • offerSetId

      GetOfferSetResponse.Builder offerSetId(String offerSetId)

      The unique identifier of the offer set.

      Parameters:
      offerSetId - The unique identifier of the offer set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • catalog

      The name of the catalog that the offer set belongs to.

      Parameters:
      catalog - The name of the catalog that the offer set belongs to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • offerSetName

      GetOfferSetResponse.Builder offerSetName(String offerSetName)

      The display name of the offer set.

      Parameters:
      offerSetName - The display name of the offer set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availableFromTime

      GetOfferSetResponse.Builder availableFromTime(Instant availableFromTime)

      The date and time when the offer set became available to the buyer.

      Parameters:
      availableFromTime - The date and time when the offer set became available to the buyer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expirationTime

      GetOfferSetResponse.Builder expirationTime(Instant expirationTime)

      The date and time when the offer set expires and is no longer available for procurement.

      Parameters:
      expirationTime - The date and time when the offer set expires and is no longer available for procurement.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buyerNotes

      GetOfferSetResponse.Builder buyerNotes(String buyerNotes)

      Detailed information about the offer set that helps buyers understand its purpose and contents.

      Parameters:
      buyerNotes - Detailed information about the offer set that helps buyers understand its purpose and contents.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sellerOfRecord

      GetOfferSetResponse.Builder sellerOfRecord(SellerInformation sellerOfRecord)

      The entity responsible for selling the products under this offer set.

      Parameters:
      sellerOfRecord - The entity responsible for selling the products under this offer set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sellerOfRecord

      default GetOfferSetResponse.Builder sellerOfRecord(Consumer<SellerInformation.Builder> sellerOfRecord)

      The entity responsible for selling the products under this offer set.

      This is a convenience method that creates an instance of the SellerInformation.Builder avoiding the need to create one manually via SellerInformation.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sellerOfRecord(SellerInformation).

      Parameters:
      sellerOfRecord - a consumer that will call methods on SellerInformation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • badges

      Badges indicating special attributes of the offer set, such as private pricing or future dated.

      Parameters:
      badges - Badges indicating special attributes of the offer set, such as private pricing or future dated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • badges

      Badges indicating special attributes of the offer set, such as private pricing or future dated.

      Parameters:
      badges - Badges indicating special attributes of the offer set, such as private pricing or future dated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • badges

      Badges indicating special attributes of the offer set, such as private pricing or future dated.

      This is a convenience method that creates an instance of the PurchaseOptionBadge.Builder avoiding the need to create one manually via PurchaseOptionBadge.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to badges(List<PurchaseOptionBadge>).

      Parameters:
      badges - a consumer that will call methods on PurchaseOptionBadge.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • associatedEntities

      GetOfferSetResponse.Builder associatedEntities(Collection<OfferSetAssociatedEntity> associatedEntities)

      The products and offers included in this offer set.

      Parameters:
      associatedEntities - The products and offers included in this offer set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedEntities

      GetOfferSetResponse.Builder associatedEntities(OfferSetAssociatedEntity... associatedEntities)

      The products and offers included in this offer set.

      Parameters:
      associatedEntities - The products and offers included in this offer set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedEntities

      GetOfferSetResponse.Builder associatedEntities(Consumer<OfferSetAssociatedEntity.Builder>... associatedEntities)

      The products and offers included in this offer set.

      This is a convenience method that creates an instance of the OfferSetAssociatedEntity.Builder avoiding the need to create one manually via OfferSetAssociatedEntity.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to associatedEntities(List<OfferSetAssociatedEntity>).

      Parameters:
      associatedEntities - a consumer that will call methods on OfferSetAssociatedEntity.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: