Class AccommodationData


  • public final class AccommodationData
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      AccommodationData()  
      AccommodationData​(java.lang.String name, java.lang.String bookingReference, java.time.Instant checkInDate, java.time.Instant checkOutDate, Address address, java.lang.String state, java.lang.String country, java.lang.String city, java.lang.Long numberOfRooms, java.util.List<Guest> guests, java.util.List<Room> room)
      Creates a new AccommodationData instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static AccommodationData.AccommodationDataBuilder builder()  
      boolean equals​(java.lang.Object o)  
      Address getAddress()
      The address details of the accommodation.
      java.lang.String getBookingReference()
      A unique identifier for the booking.
      java.time.Instant getCheckInDate()
      For lodging, contains the actual or scheduled date the guest checked-in.
      java.time.Instant getCheckOutDate()
      For lodging, contains the actual or scheduled date the guest checked-out.
      java.lang.String getCity()
      The address city.
      java.lang.String getCountry()
      The ISO country code of the address.
      java.util.List<Guest> getGuests()
      Contains information about the guests staying at the accommodation.
      java.lang.String getName()
      For lodging, contains the lodging name that appears on the storefront/customer receipts.
      java.lang.Long getNumberOfRooms()
      The total number of rooms booked for the accommodation.
      java.util.List<Room> getRoom()
      Contains information about the rooms booked by the customer.
      java.lang.String getState()
      The state or province of the address country (ISO 3166-2 code of up to two alphanumeric characters).
      int hashCode()  
      void setAddress​(Address address)
      The address details of the accommodation.
      void setBookingReference​(java.lang.String bookingReference)
      A unique identifier for the booking.
      void setCheckInDate​(java.time.Instant checkInDate)
      For lodging, contains the actual or scheduled date the guest checked-in.
      void setCheckOutDate​(java.time.Instant checkOutDate)
      For lodging, contains the actual or scheduled date the guest checked-out.
      void setCity​(java.lang.String city)
      The address city.
      void setCountry​(java.lang.String country)
      The ISO country code of the address.
      void setGuests​(java.util.List<Guest> guests)
      Contains information about the guests staying at the accommodation.
      void setName​(java.lang.String name)
      For lodging, contains the lodging name that appears on the storefront/customer receipts.
      void setNumberOfRooms​(java.lang.Long numberOfRooms)
      The total number of rooms booked for the accommodation.
      void setRoom​(java.util.List<Room> room)
      Contains information about the rooms booked by the customer.
      void setState​(java.lang.String state)
      The state or province of the address country (ISO 3166-2 code of up to two alphanumeric characters).
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AccommodationData

        public AccommodationData()
      • AccommodationData

        public AccommodationData​(java.lang.String name,
                                 java.lang.String bookingReference,
                                 java.time.Instant checkInDate,
                                 java.time.Instant checkOutDate,
                                 Address address,
                                 java.lang.String state,
                                 java.lang.String country,
                                 java.lang.String city,
                                 java.lang.Long numberOfRooms,
                                 java.util.List<Guest> guests,
                                 java.util.List<Room> room)
        Creates a new AccommodationData instance.
        Parameters:
        name - For lodging, contains the lodging name that appears on the storefront/customer receipts. For cruise, contains the ship name booked for the cruise.
        bookingReference - A unique identifier for the booking.
        checkInDate - For lodging, contains the actual or scheduled date the guest checked-in. For cruise, contains the cruise departure date also known as sail date.
        checkOutDate - For lodging, contains the actual or scheduled date the guest checked-out. For cruise, contains the cruise return date also known as sail end date.
        address - The address details of the accommodation.
        state - The state or province of the address country (ISO 3166-2 code of up to two alphanumeric characters).
        country - The ISO country code of the address.
        city - The address city.
        numberOfRooms - The total number of rooms booked for the accommodation.
        guests - Contains information about the guests staying at the accommodation.
        room - Contains information about the rooms booked by the customer.
    • Method Detail

      • getName

        public java.lang.String getName()
        For lodging, contains the lodging name that appears on the storefront/customer receipts. For cruise, contains the ship name booked for the cruise.
      • getBookingReference

        public java.lang.String getBookingReference()
        A unique identifier for the booking.
      • getCheckInDate

        public java.time.Instant getCheckInDate()
        For lodging, contains the actual or scheduled date the guest checked-in. For cruise, contains the cruise departure date also known as sail date.
      • getCheckOutDate

        public java.time.Instant getCheckOutDate()
        For lodging, contains the actual or scheduled date the guest checked-out. For cruise, contains the cruise return date also known as sail end date.
      • getAddress

        public Address getAddress()
        The address details of the accommodation.
      • getState

        public java.lang.String getState()
        The state or province of the address country (ISO 3166-2 code of up to two alphanumeric characters).
      • getCountry

        public java.lang.String getCountry()
        The ISO country code of the address.
      • getCity

        public java.lang.String getCity()
        The address city.
      • getNumberOfRooms

        public java.lang.Long getNumberOfRooms()
        The total number of rooms booked for the accommodation.
      • getGuests

        public java.util.List<Guest> getGuests()
        Contains information about the guests staying at the accommodation.
      • getRoom

        public java.util.List<Room> getRoom()
        Contains information about the rooms booked by the customer.
      • setName

        public void setName​(java.lang.String name)
        For lodging, contains the lodging name that appears on the storefront/customer receipts. For cruise, contains the ship name booked for the cruise.
      • setBookingReference

        public void setBookingReference​(java.lang.String bookingReference)
        A unique identifier for the booking.
      • setCheckInDate

        public void setCheckInDate​(java.time.Instant checkInDate)
        For lodging, contains the actual or scheduled date the guest checked-in. For cruise, contains the cruise departure date also known as sail date.
      • setCheckOutDate

        public void setCheckOutDate​(java.time.Instant checkOutDate)
        For lodging, contains the actual or scheduled date the guest checked-out. For cruise, contains the cruise return date also known as sail end date.
      • setAddress

        public void setAddress​(Address address)
        The address details of the accommodation.
      • setState

        public void setState​(java.lang.String state)
        The state or province of the address country (ISO 3166-2 code of up to two alphanumeric characters).
      • setCountry

        public void setCountry​(java.lang.String country)
        The ISO country code of the address.
      • setCity

        public void setCity​(java.lang.String city)
        The address city.
      • setNumberOfRooms

        public void setNumberOfRooms​(java.lang.Long numberOfRooms)
        The total number of rooms booked for the accommodation.
      • setGuests

        public void setGuests​(java.util.List<Guest> guests)
        Contains information about the guests staying at the accommodation.
      • setRoom

        public void setRoom​(java.util.List<Room> room)
        Contains information about the rooms booked by the customer.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object