Interface Offering.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Offering.Builder,Offering>, SdkBuilder<Offering.Builder,Offering>, SdkPojo
Enclosing class:
Offering

@Mutable @NotThreadSafe public static interface Offering.Builder extends SdkPojo, CopyableBuilder<Offering.Builder,Offering>
  • Method Details

    • id

      The ID that corresponds to a device offering.

      Parameters:
      id - The ID that corresponds to a device offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Offering.Builder description(String description)

      A string that describes the offering.

      Parameters:
      description - A string that describes the offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The type of offering (for example, RECURRING) for a device.

      Parameters:
      type - The type of offering (for example, RECURRING) for a device.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of offering (for example, RECURRING) for a device.

      Parameters:
      type - The type of offering (for example, RECURRING) for a device.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • platform

      Offering.Builder platform(String platform)

      The platform of the device (for example, ANDROID or IOS).

      Parameters:
      platform - The platform of the device (for example, ANDROID or IOS).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • platform

      Offering.Builder platform(DevicePlatform platform)

      The platform of the device (for example, ANDROID or IOS).

      Parameters:
      platform - The platform of the device (for example, ANDROID or IOS).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • recurringCharges

      Offering.Builder recurringCharges(Collection<RecurringCharge> recurringCharges)

      Specifies whether there are recurring charges for the offering.

      Parameters:
      recurringCharges - Specifies whether there are recurring charges for the offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recurringCharges

      Offering.Builder recurringCharges(RecurringCharge... recurringCharges)

      Specifies whether there are recurring charges for the offering.

      Parameters:
      recurringCharges - Specifies whether there are recurring charges for the offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recurringCharges

      Offering.Builder recurringCharges(Consumer<RecurringCharge.Builder>... recurringCharges)

      Specifies whether there are recurring charges for the offering.

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

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

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