travel.wink.sdk.inventory.model.HotelInventoryResponseNonAuthenticatedEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of inventory-sdk-java Show documentation
Show all versions of inventory-sdk-java Show documentation
Java SDK for the Wink Inventory API
/*
* Wink API
* # Introduction Welcome to the Wink API - A programmer-friendly way to manage, sell and book travel inventory on the Wink platform. The API gives you all the tools you need to ready your properties and inventory for sale across 1000s of our native sales channels. Integrators, affiliates, travel agents and content creators have the ability search for your travel inventory and promote / sell it in a wide variety of ways. # Integrations We have already integrated with the most well-known channel managers so you don't have to. To see our current integrations, please go to https://extranet.wink.travel and scroll to Connectivity section. Once your properties are set up, you can finish the setup by mapping your property to Wink using your channel manager partner portal. If your properties don't have a channel manager, you can easily manage rates and availability with this API. # Intended Audience Programmers are [most likely] a requirement to start integrating with Wink. Companies and organizations that would most benefit from integrating with us are new and existing travel companies that have relationships with suppliers and that need an advanced system from which to manage their travel inventory and get that same inventory out to as many eyeballs as possible at the lowest price possible. - Hotel chains - Hotel brands - Travel tech companies - Destination sites - Integrators - Aggregators - Destination management companies - Travel agencies - OTAs ## APIs Not every integrator needs every API. For that reason, we have separated APIs into context. ### Test API - [Ping](/ping): The Ping API is a quick test endpoint to verify that your credentials work Wink. ### Common APIs - [Notifications](/notifications): The Notifications API is a way for us to stay in touch with your user, property or affiliate account. - [User Settings](/user-settings): The User Settings API exposes endpoints to allow 3rd party integrators to communicate with Wink. ### Consume APIs Consume endpoints are for developers who want to find existing travel inventory and either book it or use it to advertise through one of their Wink affiliate accounts. - [Configuration](/engine-client): A single endpoint to retrieve whitelabel + customization information for the booking engine. - [Lookup](/lookup): All APIs related to locating inventory by region, locale and property flags. - [Inventory](/inventory): All APIs related to retrieve known travel inventory as it was found using the Lookup API.. - [Booking](/booking): All APIs related to creating bookings on the platform. - [Travel Agent](/travel-agent): The Travel Agent API exposes endpoints to manage agent-facilitated bookings. ### Produce APIs Produce endpoints are for developers who want to create and manage travel inventory. #### Property - [Property registration](/extranet/property/register): As a producer, this is, oftentimes, where you start your journey. These endpoints let you create properties on Wink. - [Property](/extranet/property): This collection of property endpoints are mostly management endpoints that let you display, change status and similar for your existing properties. - [Facilities](/extranet/facilities): This collection of endpoints let you manage facilities; such as room types. - [Experiences](/extranet/experiences): This collection of endpoints let you manage experiences, such as activities. - [Monetize](/extranet/monetize): The Monetize API exposes endpoints for managing cancellation polies, rate plans, promotions and more on Wink. - [Distribution](/extranet/distribution): The Distribution API exposes endpoints for sales channels, connecting with affiliates, managing rates and inventory calendars and more on Wink. - [Property Booking](/extranet/booking): The Property Booking API exposes endpoints for managing bookings and reviews at the property-level. #### Affiliate - [Affiliate](/affiliate): This collection of affiliate endpoints are mostly management endpoints that let you display, change status and similar for your existing accounts. - [Browse](/affiliate/browse): The Browse API exposes endpoints for affiliates to find suppliers and inventory to sell. - [Inventory](/affiliate/inventory): The Inventory API exposes endpoints for affiliates to manage the inventory they want to sell and how they want to sell it. - [Sales Channel](/affiliate/sales-channel): The Sales Channel API exposes endpoints for affiliates to manage existing sales channels as well as find new ones. - [WinkLinks](/affiliate/winklinks): The WinkLinks API exposes endpoints for affiliates to manage their WinkLinks page. #### Rate provider - [Channel manager](/channel-manager): The Channel Manager API enables external channel manager partners to map, exchange rate / availability information with us as well as be informed of bookings that occur on the Wink platform for one of their properties. ### Taxonomy APIs Taxonomy endpoints are for developers who want to consume and produce travel inventory and need taxonomies of standard and non-standard codes for inventory types, classes, statuses etc. - [Reference](/reference): All APIs related to retrieving platform-supported taxonomies. ### Insight APIs Insight endpoints do exactly what the name implies - They offer platform-level insight into the activities of producers and consumers. - [Analytics](/analytics): All APIs related to tracking metrics across a wide variety of data source segments including, more entertaining, leaderboard metrics. ### Payment APIs Payment endpoints are for developers who want to purchase travel inventory. This can be done via the API as a registered Travel Agent or using our API in conjunction with our PCI compliant payment widget for all other entities. - [TripPay](/payment): All APIs related to TripPay account management, booking, mapping and integration features. ## SDKs We are actively working on supporting the most used languages out there. If you don't see your language here, reach out to us with a request to officially add your language. In the meantime, if you want to roll your own SDK, you can do so by downloading the OpenAPI spec and using one of the many available OpenAPI generators available: [https://openapi-generator.tech/docs/generators](https://openapi-generator.tech/docs/generators). - Java SDK [https://github.com/wink-travel/wink-sdk-java](https://github.com/wink-travel/wink-sdk-java) ## Usage These features are made available to you via a [REST API](https://en.wikipedia.org/wiki/Representational_state_transfer). This API is language agnostic. ## Versioning We chose to version our endpoints in a way that we hope affects your integration minimally. You request the version of our API you wish to work with via the `Wink-Version` header. When it's time for you to upgrade, you only have to change the version number to get access to our updated endpoints. ## Release history - Follow updates on Github: https://github.com/wink-travel/wink-sdk-java/blob/master/CHANGELOG.md # Inventory API The Inventory API exposes endpoints to retrieve inventory you already know about. This API lets you: 1. Consume shareable links. 2. Load up a known property with availability. 3. Load up all inventories that were created by our affiliates such as grids, maps, and individual items. Browse the endpoints in the left navigation bar to get started.
*
* The version of the OpenAPI document: 30.4.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package travel.wink.sdk.inventory.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import travel.wink.sdk.inventory.model.ActivityLocalizedInventoryNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AggregateGreendexAnswersNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AnnouncementNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.AttractionLocalizedInventoryNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.HotelOnMapNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.MeetingRoomLocalizedInventoryNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.MetaDataNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.PlaceLocalizedInventoryNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.RestaurantLocalizedInventoryNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.RoomTypeWithPriceConfigurationNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.RoomTypeWithPriceConfigurationsNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SalesChannelInfoNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SimpleMultimediaNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.SpaLocalizedInventoryNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.TravelInventoryRecognitionNonAuthenticatedEntity;
import travel.wink.sdk.inventory.model.UserReviewNonAuthenticatedEntity;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import jakarta.validation.constraints.*;
import jakarta.validation.Valid;
import org.hibernate.validator.constraints.*;
/**
* HotelInventoryResponseNonAuthenticatedEntity
*/
@JsonPropertyOrder({
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_HOTEL_IDENTIFIER,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_URL_NAME,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_HOTEL,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_GREEN_INDEX_SCORES,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_ROOM_TYPES,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_MEETING_ROOMS,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_RESTAURANTS,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_SPAS,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_ACTIVITIES,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_ATTRACTIONS,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_PLACES,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_METADATA,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_IMAGES,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_VIDEOS,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_RECOGNITIONS,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_ANNOUNCEMENTS,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_REVIEWS,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_SALES_CHANNEL,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_CHEAPEST_ROOM_TYPES,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_BEST_PRICE,
HotelInventoryResponseNonAuthenticatedEntity.JSON_PROPERTY_AVAILABLE
})
@JsonTypeName("HotelInventoryResponse_Non_Authenticated_Entity")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-12T22:12:16.596367916+07:00[Asia/Bangkok]")
public class HotelInventoryResponseNonAuthenticatedEntity {
public static final String JSON_PROPERTY_HOTEL_IDENTIFIER = "hotelIdentifier";
private UUID hotelIdentifier;
public static final String JSON_PROPERTY_URL_NAME = "urlName";
private String urlName;
public static final String JSON_PROPERTY_HOTEL = "hotel";
private HotelOnMapNonAuthenticatedEntity hotel;
public static final String JSON_PROPERTY_GREEN_INDEX_SCORES = "greenIndexScores";
private AggregateGreendexAnswersNonAuthenticatedEntity greenIndexScores;
public static final String JSON_PROPERTY_ROOM_TYPES = "roomTypes";
private List roomTypes;
public static final String JSON_PROPERTY_MEETING_ROOMS = "meetingRooms";
private List meetingRooms;
public static final String JSON_PROPERTY_RESTAURANTS = "restaurants";
private List restaurants;
public static final String JSON_PROPERTY_SPAS = "spas";
private List spas;
public static final String JSON_PROPERTY_ACTIVITIES = "activities";
private List activities;
public static final String JSON_PROPERTY_ATTRACTIONS = "attractions";
private List attractions;
public static final String JSON_PROPERTY_PLACES = "places";
private List places;
public static final String JSON_PROPERTY_METADATA = "metadata";
private List metadata;
public static final String JSON_PROPERTY_IMAGES = "images";
private List images;
public static final String JSON_PROPERTY_VIDEOS = "videos";
private List videos;
public static final String JSON_PROPERTY_RECOGNITIONS = "recognitions";
private List recognitions;
public static final String JSON_PROPERTY_ANNOUNCEMENTS = "announcements";
private List announcements;
public static final String JSON_PROPERTY_REVIEWS = "reviews";
private List reviews;
public static final String JSON_PROPERTY_SALES_CHANNEL = "salesChannel";
private SalesChannelInfoNonAuthenticatedEntity salesChannel;
public static final String JSON_PROPERTY_CHEAPEST_ROOM_TYPES = "cheapestRoomTypes";
private List cheapestRoomTypes;
public static final String JSON_PROPERTY_BEST_PRICE = "bestPrice";
private RoomTypeWithPriceConfigurationNonAuthenticatedEntity bestPrice;
public static final String JSON_PROPERTY_AVAILABLE = "available";
private Boolean available;
public HotelInventoryResponseNonAuthenticatedEntity() {
}
public HotelInventoryResponseNonAuthenticatedEntity hotelIdentifier(UUID hotelIdentifier) {
this.hotelIdentifier = hotelIdentifier;
return this;
}
/**
* Unique property identifier to retrieve inventory for.
* @return hotelIdentifier
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_HOTEL_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getHotelIdentifier() {
return hotelIdentifier;
}
@JsonProperty(JSON_PROPERTY_HOTEL_IDENTIFIER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHotelIdentifier(UUID hotelIdentifier) {
this.hotelIdentifier = hotelIdentifier;
}
public HotelInventoryResponseNonAuthenticatedEntity urlName(String urlName) {
this.urlName = urlName;
return this;
}
/**
* Unique url-friendly record identifier of property.
* @return urlName
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_URL_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUrlName() {
return urlName;
}
@JsonProperty(JSON_PROPERTY_URL_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUrlName(String urlName) {
this.urlName = urlName;
}
public HotelInventoryResponseNonAuthenticatedEntity hotel(HotelOnMapNonAuthenticatedEntity hotel) {
this.hotel = hotel;
return this;
}
/**
* Get hotel
* @return hotel
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_HOTEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public HotelOnMapNonAuthenticatedEntity getHotel() {
return hotel;
}
@JsonProperty(JSON_PROPERTY_HOTEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHotel(HotelOnMapNonAuthenticatedEntity hotel) {
this.hotel = hotel;
}
public HotelInventoryResponseNonAuthenticatedEntity greenIndexScores(AggregateGreendexAnswersNonAuthenticatedEntity greenIndexScores) {
this.greenIndexScores = greenIndexScores;
return this;
}
/**
* Get greenIndexScores
* @return greenIndexScores
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_GREEN_INDEX_SCORES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AggregateGreendexAnswersNonAuthenticatedEntity getGreenIndexScores() {
return greenIndexScores;
}
@JsonProperty(JSON_PROPERTY_GREEN_INDEX_SCORES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGreenIndexScores(AggregateGreendexAnswersNonAuthenticatedEntity greenIndexScores) {
this.greenIndexScores = greenIndexScores;
}
public HotelInventoryResponseNonAuthenticatedEntity roomTypes(List roomTypes) {
this.roomTypes = roomTypes;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addRoomTypesItem(RoomTypeWithPriceConfigurationsNonAuthenticatedEntity roomTypesItem) {
if (this.roomTypes == null) {
this.roomTypes = new ArrayList<>();
}
this.roomTypes.add(roomTypesItem);
return this;
}
/**
* List of room types with price configurations based on the itinerary that was passed on the user session.
* @return roomTypes
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_ROOM_TYPES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getRoomTypes() {
return roomTypes;
}
@JsonProperty(JSON_PROPERTY_ROOM_TYPES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRoomTypes(List roomTypes) {
this.roomTypes = roomTypes;
}
public HotelInventoryResponseNonAuthenticatedEntity meetingRooms(List meetingRooms) {
this.meetingRooms = meetingRooms;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addMeetingRoomsItem(MeetingRoomLocalizedInventoryNonAuthenticatedEntity meetingRoomsItem) {
if (this.meetingRooms == null) {
this.meetingRooms = new ArrayList<>();
}
this.meetingRooms.add(meetingRoomsItem);
return this;
}
/**
* List of property meeting rooms on and off the premises.
* @return meetingRooms
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_MEETING_ROOMS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getMeetingRooms() {
return meetingRooms;
}
@JsonProperty(JSON_PROPERTY_MEETING_ROOMS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMeetingRooms(List meetingRooms) {
this.meetingRooms = meetingRooms;
}
public HotelInventoryResponseNonAuthenticatedEntity restaurants(List restaurants) {
this.restaurants = restaurants;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addRestaurantsItem(RestaurantLocalizedInventoryNonAuthenticatedEntity restaurantsItem) {
if (this.restaurants == null) {
this.restaurants = new ArrayList<>();
}
this.restaurants.add(restaurantsItem);
return this;
}
/**
* List of property restaurants on and off the premises.
* @return restaurants
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_RESTAURANTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getRestaurants() {
return restaurants;
}
@JsonProperty(JSON_PROPERTY_RESTAURANTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRestaurants(List restaurants) {
this.restaurants = restaurants;
}
public HotelInventoryResponseNonAuthenticatedEntity spas(List spas) {
this.spas = spas;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addSpasItem(SpaLocalizedInventoryNonAuthenticatedEntity spasItem) {
if (this.spas == null) {
this.spas = new ArrayList<>();
}
this.spas.add(spasItem);
return this;
}
/**
* List of property spas on and off the premises.
* @return spas
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_SPAS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getSpas() {
return spas;
}
@JsonProperty(JSON_PROPERTY_SPAS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSpas(List spas) {
this.spas = spas;
}
public HotelInventoryResponseNonAuthenticatedEntity activities(List activities) {
this.activities = activities;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addActivitiesItem(ActivityLocalizedInventoryNonAuthenticatedEntity activitiesItem) {
if (this.activities == null) {
this.activities = new ArrayList<>();
}
this.activities.add(activitiesItem);
return this;
}
/**
* List of property activities on and off the premises.
* @return activities
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_ACTIVITIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getActivities() {
return activities;
}
@JsonProperty(JSON_PROPERTY_ACTIVITIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setActivities(List activities) {
this.activities = activities;
}
public HotelInventoryResponseNonAuthenticatedEntity attractions(List attractions) {
this.attractions = attractions;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addAttractionsItem(AttractionLocalizedInventoryNonAuthenticatedEntity attractionsItem) {
if (this.attractions == null) {
this.attractions = new ArrayList<>();
}
this.attractions.add(attractionsItem);
return this;
}
/**
* List of property attractions on and off the premises.
* @return attractions
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_ATTRACTIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getAttractions() {
return attractions;
}
@JsonProperty(JSON_PROPERTY_ATTRACTIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAttractions(List attractions) {
this.attractions = attractions;
}
public HotelInventoryResponseNonAuthenticatedEntity places(List places) {
this.places = places;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addPlacesItem(PlaceLocalizedInventoryNonAuthenticatedEntity placesItem) {
if (this.places == null) {
this.places = new ArrayList<>();
}
this.places.add(placesItem);
return this;
}
/**
* List of property places on and off the premises.
* @return places
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_PLACES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getPlaces() {
return places;
}
@JsonProperty(JSON_PROPERTY_PLACES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPlaces(List places) {
this.places = places;
}
public HotelInventoryResponseNonAuthenticatedEntity metadata(List metadata) {
this.metadata = metadata;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addMetadataItem(MetaDataNonAuthenticatedEntity metadataItem) {
if (this.metadata == null) {
this.metadata = new ArrayList<>();
}
this.metadata.add(metadataItem);
return this;
}
/**
* List of property meta data.
* @return metadata
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getMetadata() {
return metadata;
}
@JsonProperty(JSON_PROPERTY_METADATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMetadata(List metadata) {
this.metadata = metadata;
}
public HotelInventoryResponseNonAuthenticatedEntity images(List images) {
this.images = images;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addImagesItem(SimpleMultimediaNonAuthenticatedEntity imagesItem) {
if (this.images == null) {
this.images = new ArrayList<>();
}
this.images.add(imagesItem);
return this;
}
/**
* List of property images
* @return images
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_IMAGES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getImages() {
return images;
}
@JsonProperty(JSON_PROPERTY_IMAGES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setImages(List images) {
this.images = images;
}
public HotelInventoryResponseNonAuthenticatedEntity videos(List videos) {
this.videos = videos;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addVideosItem(SimpleMultimediaNonAuthenticatedEntity videosItem) {
if (this.videos == null) {
this.videos = new ArrayList<>();
}
this.videos.add(videosItem);
return this;
}
/**
* List of property videos
* @return videos
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_VIDEOS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getVideos() {
return videos;
}
@JsonProperty(JSON_PROPERTY_VIDEOS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setVideos(List videos) {
this.videos = videos;
}
public HotelInventoryResponseNonAuthenticatedEntity recognitions(List recognitions) {
this.recognitions = recognitions;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addRecognitionsItem(TravelInventoryRecognitionNonAuthenticatedEntity recognitionsItem) {
if (this.recognitions == null) {
this.recognitions = new ArrayList<>();
}
this.recognitions.add(recognitionsItem);
return this;
}
/**
* List of property recognitions
* @return recognitions
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_RECOGNITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getRecognitions() {
return recognitions;
}
@JsonProperty(JSON_PROPERTY_RECOGNITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRecognitions(List recognitions) {
this.recognitions = recognitions;
}
public HotelInventoryResponseNonAuthenticatedEntity announcements(List announcements) {
this.announcements = announcements;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addAnnouncementsItem(AnnouncementNonAuthenticatedEntity announcementsItem) {
if (this.announcements == null) {
this.announcements = new ArrayList<>();
}
this.announcements.add(announcementsItem);
return this;
}
/**
* List of property announcements
* @return announcements
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_ANNOUNCEMENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getAnnouncements() {
return announcements;
}
@JsonProperty(JSON_PROPERTY_ANNOUNCEMENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAnnouncements(List announcements) {
this.announcements = announcements;
}
public HotelInventoryResponseNonAuthenticatedEntity reviews(List reviews) {
this.reviews = reviews;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addReviewsItem(UserReviewNonAuthenticatedEntity reviewsItem) {
if (this.reviews == null) {
this.reviews = new ArrayList<>();
}
this.reviews.add(reviewsItem);
return this;
}
/**
* List of property reviews
* @return reviews
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_REVIEWS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getReviews() {
return reviews;
}
@JsonProperty(JSON_PROPERTY_REVIEWS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReviews(List reviews) {
this.reviews = reviews;
}
public HotelInventoryResponseNonAuthenticatedEntity salesChannel(SalesChannelInfoNonAuthenticatedEntity salesChannel) {
this.salesChannel = salesChannel;
return this;
}
/**
* Get salesChannel
* @return salesChannel
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_SALES_CHANNEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SalesChannelInfoNonAuthenticatedEntity getSalesChannel() {
return salesChannel;
}
@JsonProperty(JSON_PROPERTY_SALES_CHANNEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSalesChannel(SalesChannelInfoNonAuthenticatedEntity salesChannel) {
this.salesChannel = salesChannel;
}
public HotelInventoryResponseNonAuthenticatedEntity cheapestRoomTypes(List cheapestRoomTypes) {
this.cheapestRoomTypes = cheapestRoomTypes;
return this;
}
public HotelInventoryResponseNonAuthenticatedEntity addCheapestRoomTypesItem(RoomTypeWithPriceConfigurationNonAuthenticatedEntity cheapestRoomTypesItem) {
if (this.cheapestRoomTypes == null) {
this.cheapestRoomTypes = new ArrayList<>();
}
this.cheapestRoomTypes.add(cheapestRoomTypesItem);
return this;
}
/**
* Get cheapestRoomTypes
* @return cheapestRoomTypes
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_CHEAPEST_ROOM_TYPES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getCheapestRoomTypes() {
return cheapestRoomTypes;
}
@JsonProperty(JSON_PROPERTY_CHEAPEST_ROOM_TYPES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCheapestRoomTypes(List cheapestRoomTypes) {
this.cheapestRoomTypes = cheapestRoomTypes;
}
public HotelInventoryResponseNonAuthenticatedEntity bestPrice(RoomTypeWithPriceConfigurationNonAuthenticatedEntity bestPrice) {
this.bestPrice = bestPrice;
return this;
}
/**
* Get bestPrice
* @return bestPrice
**/
@jakarta.annotation.Nullable
@Valid
@JsonProperty(JSON_PROPERTY_BEST_PRICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public RoomTypeWithPriceConfigurationNonAuthenticatedEntity getBestPrice() {
return bestPrice;
}
@JsonProperty(JSON_PROPERTY_BEST_PRICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBestPrice(RoomTypeWithPriceConfigurationNonAuthenticatedEntity bestPrice) {
this.bestPrice = bestPrice;
}
public HotelInventoryResponseNonAuthenticatedEntity available(Boolean available) {
this.available = available;
return this;
}
/**
* Get available
* @return available
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_AVAILABLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getAvailable() {
return available;
}
@JsonProperty(JSON_PROPERTY_AVAILABLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAvailable(Boolean available) {
this.available = available;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
HotelInventoryResponseNonAuthenticatedEntity hotelInventoryResponseNonAuthenticatedEntity = (HotelInventoryResponseNonAuthenticatedEntity) o;
return Objects.equals(this.hotelIdentifier, hotelInventoryResponseNonAuthenticatedEntity.hotelIdentifier) &&
Objects.equals(this.urlName, hotelInventoryResponseNonAuthenticatedEntity.urlName) &&
Objects.equals(this.hotel, hotelInventoryResponseNonAuthenticatedEntity.hotel) &&
Objects.equals(this.greenIndexScores, hotelInventoryResponseNonAuthenticatedEntity.greenIndexScores) &&
Objects.equals(this.roomTypes, hotelInventoryResponseNonAuthenticatedEntity.roomTypes) &&
Objects.equals(this.meetingRooms, hotelInventoryResponseNonAuthenticatedEntity.meetingRooms) &&
Objects.equals(this.restaurants, hotelInventoryResponseNonAuthenticatedEntity.restaurants) &&
Objects.equals(this.spas, hotelInventoryResponseNonAuthenticatedEntity.spas) &&
Objects.equals(this.activities, hotelInventoryResponseNonAuthenticatedEntity.activities) &&
Objects.equals(this.attractions, hotelInventoryResponseNonAuthenticatedEntity.attractions) &&
Objects.equals(this.places, hotelInventoryResponseNonAuthenticatedEntity.places) &&
Objects.equals(this.metadata, hotelInventoryResponseNonAuthenticatedEntity.metadata) &&
Objects.equals(this.images, hotelInventoryResponseNonAuthenticatedEntity.images) &&
Objects.equals(this.videos, hotelInventoryResponseNonAuthenticatedEntity.videos) &&
Objects.equals(this.recognitions, hotelInventoryResponseNonAuthenticatedEntity.recognitions) &&
Objects.equals(this.announcements, hotelInventoryResponseNonAuthenticatedEntity.announcements) &&
Objects.equals(this.reviews, hotelInventoryResponseNonAuthenticatedEntity.reviews) &&
Objects.equals(this.salesChannel, hotelInventoryResponseNonAuthenticatedEntity.salesChannel) &&
Objects.equals(this.cheapestRoomTypes, hotelInventoryResponseNonAuthenticatedEntity.cheapestRoomTypes) &&
Objects.equals(this.bestPrice, hotelInventoryResponseNonAuthenticatedEntity.bestPrice) &&
Objects.equals(this.available, hotelInventoryResponseNonAuthenticatedEntity.available);
}
@Override
public int hashCode() {
return Objects.hash(hotelIdentifier, urlName, hotel, greenIndexScores, roomTypes, meetingRooms, restaurants, spas, activities, attractions, places, metadata, images, videos, recognitions, announcements, reviews, salesChannel, cheapestRoomTypes, bestPrice, available);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class HotelInventoryResponseNonAuthenticatedEntity {\n");
sb.append(" hotelIdentifier: ").append(toIndentedString(hotelIdentifier)).append("\n");
sb.append(" urlName: ").append(toIndentedString(urlName)).append("\n");
sb.append(" hotel: ").append(toIndentedString(hotel)).append("\n");
sb.append(" greenIndexScores: ").append(toIndentedString(greenIndexScores)).append("\n");
sb.append(" roomTypes: ").append(toIndentedString(roomTypes)).append("\n");
sb.append(" meetingRooms: ").append(toIndentedString(meetingRooms)).append("\n");
sb.append(" restaurants: ").append(toIndentedString(restaurants)).append("\n");
sb.append(" spas: ").append(toIndentedString(spas)).append("\n");
sb.append(" activities: ").append(toIndentedString(activities)).append("\n");
sb.append(" attractions: ").append(toIndentedString(attractions)).append("\n");
sb.append(" places: ").append(toIndentedString(places)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" images: ").append(toIndentedString(images)).append("\n");
sb.append(" videos: ").append(toIndentedString(videos)).append("\n");
sb.append(" recognitions: ").append(toIndentedString(recognitions)).append("\n");
sb.append(" announcements: ").append(toIndentedString(announcements)).append("\n");
sb.append(" reviews: ").append(toIndentedString(reviews)).append("\n");
sb.append(" salesChannel: ").append(toIndentedString(salesChannel)).append("\n");
sb.append(" cheapestRoomTypes: ").append(toIndentedString(cheapestRoomTypes)).append("\n");
sb.append(" bestPrice: ").append(toIndentedString(bestPrice)).append("\n");
sb.append(" available: ").append(toIndentedString(available)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}