Interface PhoneNumberOrder.Builder

  • Method Details

    • phoneNumberOrderId

      PhoneNumberOrder.Builder phoneNumberOrderId(String phoneNumberOrderId)

      The ID of the phone order.

      Parameters:
      phoneNumberOrderId - The ID of the phone order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • productType

      PhoneNumberOrder.Builder productType(String productType)

      The phone number order product type.

      Parameters:
      productType - The phone number order product type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • productType

      The phone number order product type.

      Parameters:
      productType - The phone number order product type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the phone number order.

      Parameters:
      status - The status of the phone number order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the phone number order.

      Parameters:
      status - The status of the phone number order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • orderType

      PhoneNumberOrder.Builder orderType(String orderType)

      The type of phone number being ordered, local or toll-free.

      Parameters:
      orderType - The type of phone number being ordered, local or toll-free.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • orderType

      The type of phone number being ordered, local or toll-free.

      Parameters:
      orderType - The type of phone number being ordered, local or toll-free.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • orderedPhoneNumbers

      PhoneNumberOrder.Builder orderedPhoneNumbers(Collection<OrderedPhoneNumber> orderedPhoneNumbers)

      The ordered phone number details, such as the phone number in E.164 format and the phone number status.

      Parameters:
      orderedPhoneNumbers - The ordered phone number details, such as the phone number in E.164 format and the phone number status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • orderedPhoneNumbers

      PhoneNumberOrder.Builder orderedPhoneNumbers(OrderedPhoneNumber... orderedPhoneNumbers)

      The ordered phone number details, such as the phone number in E.164 format and the phone number status.

      Parameters:
      orderedPhoneNumbers - The ordered phone number details, such as the phone number in E.164 format and the phone number status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • orderedPhoneNumbers

      PhoneNumberOrder.Builder orderedPhoneNumbers(Consumer<OrderedPhoneNumber.Builder>... orderedPhoneNumbers)

      The ordered phone number details, such as the phone number in E.164 format and the phone number status.

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

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

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

      PhoneNumberOrder.Builder createdTimestamp(Instant createdTimestamp)

      The phone number order creation time stamp, in ISO 8601 format.

      Parameters:
      createdTimestamp - The phone number order creation time stamp, in ISO 8601 format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedTimestamp

      PhoneNumberOrder.Builder updatedTimestamp(Instant updatedTimestamp)

      The updated phone number order time stamp, in ISO 8601 format.

      Parameters:
      updatedTimestamp - The updated phone number order time stamp, in ISO 8601 format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • focDate

      The Firm Order Commitment (FOC) date for phone number porting orders. This field is null if a phone number order is not a porting order.

      Parameters:
      focDate - The Firm Order Commitment (FOC) date for phone number porting orders. This field is null if a phone number order is not a porting order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.