All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.expediagroup.sdk.xap.models.HotelPolicies.kt Maven / Gradle / Ivy

/*
 * Copyright (C) 2022 Expedia, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 *
 * Please note:
 * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * Do not edit this file manually.
 *
 */

@file:Suppress(
    "ArrayInDataClass",
    "EnumEntryName",
    "RemoveRedundantQualifierName",
    "UnusedImport"
)

package com.expediagroup.sdk.xap.models

import com.fasterxml.jackson.annotation.JsonProperty
import org.hibernate.validator.constraints.Length
import javax.validation.Valid
import javax.validation.constraints.Max
import javax.validation.constraints.Min
import javax.validation.constraints.Pattern
import javax.validation.constraints.Size

/**
 * Container for Hotel policy information.
 * @param checkInStartTime Beginning of the standard check-in window on the check in date, and in the local time of the hotel.
 * @param checkInEndTime End of the standard check-in window on the check in date, and in the local time of the hotel.
 * @param specialCheckInInstructions Some special instructions needed care by customer when check in.
 * @param checkOutTime Customers must check out before this time on the check out date, expressed in the local time of the hotel.
 * @param petPolicies The policy of the property toward having pets stay with guests.
 * @param childrenAndExtraBedsPolicies The policy of the hotel for having children stay at the hotel, as well as for including extra beds in the room.
 */
data class HotelPolicies(
    // Beginning of the standard check-in window on the check in date, and in the local time of the hotel.
    @JsonProperty("CheckInStartTime")
    @field:Valid
    val checkInStartTime: kotlin.String? = null,
    // End of the standard check-in window on the check in date, and in the local time of the hotel.
    @JsonProperty("CheckInEndTime")
    @field:Valid
    val checkInEndTime: kotlin.String? = null,
    // Some special instructions needed care by customer when check in.
    @JsonProperty("SpecialCheckInInstructions")
    @field:Valid
    val specialCheckInInstructions: kotlin.collections.List? = null,
    // Customers must check out before this time on the check out date, expressed in the local time of the hotel.
    @JsonProperty("CheckOutTime")
    @field:Valid
    val checkOutTime: kotlin.String? = null,
    // The policy of the property toward having pets stay with guests.
    @JsonProperty("PetPolicies")
    @field:Valid
    val petPolicies: kotlin.collections.List? = null,
    // The policy of the hotel for having children stay at the hotel, as well as for including extra beds in the room.
    @JsonProperty("ChildrenAndExtraBedsPolicies")
    @field:Valid
    val childrenAndExtraBedsPolicies: kotlin.collections.List? = null
) {
    companion object {
        @JvmStatic
        fun builder() = Builder()
    }

    class Builder(
        private var checkInStartTime: kotlin.String? = null,
        private var checkInEndTime: kotlin.String? = null,
        private var specialCheckInInstructions: kotlin.collections.List? = null,
        private var checkOutTime: kotlin.String? = null,
        private var petPolicies: kotlin.collections.List? = null,
        private var childrenAndExtraBedsPolicies: kotlin.collections.List? = null
    ) {
        fun checkInStartTime(checkInStartTime: kotlin.String?) = apply { this.checkInStartTime = checkInStartTime }

        fun checkInEndTime(checkInEndTime: kotlin.String?) = apply { this.checkInEndTime = checkInEndTime }

        fun specialCheckInInstructions(specialCheckInInstructions: kotlin.collections.List?) = apply { this.specialCheckInInstructions = specialCheckInInstructions }

        fun checkOutTime(checkOutTime: kotlin.String?) = apply { this.checkOutTime = checkOutTime }

        fun petPolicies(petPolicies: kotlin.collections.List?) = apply { this.petPolicies = petPolicies }

        fun childrenAndExtraBedsPolicies(childrenAndExtraBedsPolicies: kotlin.collections.List?) = apply { this.childrenAndExtraBedsPolicies = childrenAndExtraBedsPolicies }

        fun build(): HotelPolicies {
            return HotelPolicies(
                checkInStartTime = checkInStartTime,
                checkInEndTime = checkInEndTime,
                specialCheckInInstructions = specialCheckInInstructions,
                checkOutTime = checkOutTime,
                petPolicies = petPolicies,
                childrenAndExtraBedsPolicies = childrenAndExtraBedsPolicies
            )
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy