Interface TextPartValue.Builder

  • Method Details

    • type

      The type of text part. Determines the usage of all other fields and whether or not they're required.

      Parameters:
      type - The type of text part. Determines the usage of all other fields and whether or not they're required.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of text part. Determines the usage of all other fields and whether or not they're required.

      Parameters:
      type - The type of text part. Determines the usage of all other fields and whether or not they're required.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • displayText

      TextPartValue.Builder displayText(String displayText)

      A short single line description of the link. Must be hyper-linked with the URL itself.

      Used for text parts with the type URL.

      Parameters:
      displayText - A short single line description of the link. Must be hyper-linked with the URL itself.

      Used for text parts with the type URL.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • textByLocaleWithStrings

      TextPartValue.Builder textByLocaleWithStrings(Map<String,String> textByLocale)

      A map of locales to the text in that locale.

      Parameters:
      textByLocale - A map of locales to the text in that locale.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • textByLocale

      TextPartValue.Builder textByLocale(Map<LocaleCode,String> textByLocale)

      A map of locales to the text in that locale.

      Parameters:
      textByLocale - A map of locales to the text in that locale.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • url

      The URL itself.

      Parameters:
      url - The URL itself.
      Returns:
      Returns a reference to this object so that method calls can be chained together.