Interface Locale.Builder

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

public static interface Locale.Builder extends SdkPojo, CopyableBuilder<Locale.Builder,Locale>
  • Method Details

    • country

      Locale.Builder country(String country)

      The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.

      Parameters:
      country - The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subdivision

      Locale.Builder subdivision(String subdivision)

      The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.

      Parameters:
      subdivision - The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.
      Returns:
      Returns a reference to this object so that method calls can be chained together.