Class ApiCountry

java.lang.Object
travel.wink.hotelbeds.content.sdk.model.ApiCountry

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-10-04T11:28:31.756188010+07:00[Asia/Bangkok]") public class ApiCountry extends Object
Country information.
  • Field Details

  • Constructor Details

    • ApiCountry

      public ApiCountry()
  • Method Details

    • code

      public ApiCountry code(String code)
    • getCode

      @Nullable public String getCode()
      Hotelbeds internal country code.
      Returns:
      code
    • setCode

      public void setCode(String code)
    • description

      public ApiCountry description(ApiContent description)
    • getDescription

      @Nullable @Valid public @Valid ApiContent getDescription()
      Get description
      Returns:
      description
    • setDescription

      public void setDescription(ApiContent description)
    • isoCode

      public ApiCountry isoCode(String isoCode)
    • getIsoCode

      @Nullable public String getIsoCode()
      ISO 3166-2 Country Code.
      Returns:
      isoCode
    • setIsoCode

      public void setIsoCode(String isoCode)
    • states

      public ApiCountry states(List<ApiState> states)
    • addStatesItem

      public ApiCountry addStatesItem(ApiState statesItem)
    • getStates

      @Nullable @Valid public @Valid List<ApiState> getStates()
      List of states/provinces/territories belonging to the country.
      Returns:
      states
    • setStates

      public void setStates(List<ApiState> states)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object