java.lang.Object
travel.wink.hotelbeds.booking.sdk.model.ApiStay

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-10-04T11:28:08.331690043+07:00[Asia/Bangkok]") public class ApiStay extends Object
Defines the time of the stay at the hotel.
  • Field Details

  • Constructor Details

    • ApiStay

      public ApiStay()
  • Method Details

    • checkIn

      public ApiStay checkIn(LocalDate checkIn)
    • getCheckIn

      @Nonnull @NotNull @Valid public @NotNull @Valid LocalDate getCheckIn()
      Check-in date.
      Returns:
      checkIn
    • setCheckIn

      public void setCheckIn(LocalDate checkIn)
    • checkOut

      public ApiStay checkOut(LocalDate checkOut)
    • getCheckOut

      @Nonnull @NotNull @Valid public @NotNull @Valid LocalDate getCheckOut()
      Check-out date.
      Returns:
      checkOut
    • setCheckOut

      public void setCheckOut(LocalDate checkOut)
    • shiftDays

      public ApiStay shiftDays(Integer shiftDays)
    • getShiftDays

      @Nullable @Min(1L) @Max(5L) public @Min(1L) @Max(5L) Integer getShiftDays()
      Amount of days after and before the check-in to check availability, keeping the same stay duration. minimum: 1 maximum: 5
      Returns:
      shiftDays
    • setShiftDays

      public void setShiftDays(Integer shiftDays)
    • allowOnlyShift

      public ApiStay allowOnlyShift(Boolean allowOnlyShift)
    • getAllowOnlyShift

      @Nullable public Boolean getAllowOnlyShift()
      Defines if results are returned for shiftDays even if there's no results for the searched dates.
      Returns:
      allowOnlyShift
    • setAllowOnlyShift

      public void setAllowOnlyShift(Boolean allowOnlyShift)
    • 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