Class ApiOccupancy
java.lang.Object
travel.wink.hotelbeds.booking.sdk.model.ApiOccupancy
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-10-04T11:28:08.331690043+07:00[Asia/Bangkok]")
public class ApiOccupancy
extends Object
Definition of passengers groups and how they are distributed in different rooms.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPaxesItem(ApiPaxAvail paxesItem) boolean@NotNull @Min(1L) IntegerNumber of adult passengers for this room.@NotNull @Min(0L) Integernumber of child passengers for this room.@Valid List<ApiPaxAvail>getPaxes()List of paxes for the room.@NotNull @Min(1L) IntegergetRooms()Number of requested rooms of this occupancy.inthashCode()paxes(List<ApiPaxAvail> paxes) voidvoidsetChildren(Integer children) voidsetPaxes(List<ApiPaxAvail> paxes) voidtoString()
-
Field Details
-
JSON_PROPERTY_ROOMS
- See Also:
-
JSON_PROPERTY_ADULTS
- See Also:
-
JSON_PROPERTY_CHILDREN
- See Also:
-
JSON_PROPERTY_PAXES
- See Also:
-
-
Constructor Details
-
ApiOccupancy
public ApiOccupancy()
-
-
Method Details
-
rooms
-
getRooms
Number of requested rooms of this occupancy. minimum: 1- Returns:
- rooms
-
setRooms
-
adults
-
getAdults
Number of adult passengers for this room. minimum: 1- Returns:
- adults
-
setAdults
-
children
-
getChildren
number of child passengers for this room. minimum: 0- Returns:
- children
-
setChildren
-
paxes
-
addPaxesItem
-
getPaxes
List of paxes for the room.- Returns:
- paxes
-
setPaxes
-
equals
-
hashCode
public int hashCode() -
toString
-