<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_HotelAdditionalElement StructType
 * @subpackage Structs
 */
class JP_HotelAdditionalElement extends AbstractStructBase
{
    /**
     * The Name
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Name;
    /**
     * The Description
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Description;
    /**
     * The FreeNights
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_FreeNights
     */
    public $FreeNights;
    /**
     * The Prices
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_Price
     */
    public $Prices;
    /**
     * The SupplementRelPaxesDist
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_SupplementRelPaxDist
     */
    public $SupplementRelPaxesDist;
    /**
     * The PickUpPoints
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_PickUpPoint
     */
    public $PickUpPoints;
    /**
     * The Code
     * @var string
     */
    public $Code;
    /**
     * The JPCode
     * @var string
     */
    public $JPCode;
    /**
     * The Class
     * @var string
     */
    public $Class;
    /**
     * The Type
     * @var string
     */
    public $Type;
    /**
     * The Category
     * @var string
     */
    public $Category;
    /**
     * The SpecialType
     * @var string
     */
    public $SpecialType;
    /**
     * The DirectPayment
     * @var bool
     */
    public $DirectPayment;
    /**
     * The NonRefundable
     * @var bool
     */
    public $NonRefundable;
    /**
     * The Optional
     * @var bool
     */
    public $Optional;
    /**
     * The Quantity
     * @var int
     */
    public $Quantity;
    /**
     * The Begin
     * @var string
     */
    public $Begin;
    /**
     * The End
     * @var string
     */
    public $End;
    /**
     * The Amount
     * @var float
     */
    public $Amount;
    /**
     * The Currency
     * @var string
     */
    public $Currency;
    /**
     * The RatePlanCode
     * @var string
     */
    public $RatePlanCode;
    /**
     * The ServiceDuration
     * @var int
     */
    public $ServiceDuration;
    /**
     * The RoomCategory
     * @var string
     */
    public $RoomCategory;
    /**
     * The PaymentDate
     * @var string
     */
    public $PaymentDate;
    /**
     * The CostValue
     * @var float
     */
    public $CostValue;
    /**
     * The Percentatge
     * @var float
     */
    public $Percentatge;
    /**
     * The FirstDaySelected
     * @var int
     */
    public $FirstDaySelected;
    /**
     * The OnlyResidents
     * @var bool
     */
    public $OnlyResidents;
    /**
     * The InformedTime
     * @var string
     */
    public $InformedTime;
    /**
     * The ExternalCode
     * @var string
     */
    public $ExternalCode;
    /**
     * The Guests
     * @var int
     */
    public $Guests;
    /**
     * The CategoryType
     * @var string
     */
    public $CategoryType;
    /**
     * The ServiceFrequency
     * @var string
     */
    public $ServiceFrequency;
    /**
     * Constructor method for JP_HotelAdditionalElement
     * @uses JP_HotelAdditionalElement::setName()
     * @uses JP_HotelAdditionalElement::setDescription()
     * @uses JP_HotelAdditionalElement::setFreeNights()
     * @uses JP_HotelAdditionalElement::setPrices()
     * @uses JP_HotelAdditionalElement::setSupplementRelPaxesDist()
     * @uses JP_HotelAdditionalElement::setPickUpPoints()
     * @uses JP_HotelAdditionalElement::setCode()
     * @uses JP_HotelAdditionalElement::setJPCode()
     * @uses JP_HotelAdditionalElement::setClass()
     * @uses JP_HotelAdditionalElement::setType()
     * @uses JP_HotelAdditionalElement::setCategory()
     * @uses JP_HotelAdditionalElement::setSpecialType()
     * @uses JP_HotelAdditionalElement::setDirectPayment()
     * @uses JP_HotelAdditionalElement::setNonRefundable()
     * @uses JP_HotelAdditionalElement::setOptional()
     * @uses JP_HotelAdditionalElement::setQuantity()
     * @uses JP_HotelAdditionalElement::setBegin()
     * @uses JP_HotelAdditionalElement::setEnd()
     * @uses JP_HotelAdditionalElement::setAmount()
     * @uses JP_HotelAdditionalElement::setCurrency()
     * @uses JP_HotelAdditionalElement::setRatePlanCode()
     * @uses JP_HotelAdditionalElement::setServiceDuration()
     * @uses JP_HotelAdditionalElement::setRoomCategory()
     * @uses JP_HotelAdditionalElement::setPaymentDate()
     * @uses JP_HotelAdditionalElement::setCostValue()
     * @uses JP_HotelAdditionalElement::setPercentatge()
     * @uses JP_HotelAdditionalElement::setFirstDaySelected()
     * @uses JP_HotelAdditionalElement::setOnlyResidents()
     * @uses JP_HotelAdditionalElement::setInformedTime()
     * @uses JP_HotelAdditionalElement::setExternalCode()
     * @uses JP_HotelAdditionalElement::setGuests()
     * @uses JP_HotelAdditionalElement::setCategoryType()
     * @uses JP_HotelAdditionalElement::setServiceFrequency()
     * @param string $name
     * @param string $description
     * @param \StructType\JP_FreeNights $freeNights
     * @param \ArrayType\ArrayOfJP_Price $prices
     * @param \ArrayType\ArrayOfJP_SupplementRelPaxDist $supplementRelPaxesDist
     * @param \ArrayType\ArrayOfJP_PickUpPoint $pickUpPoints
     * @param string $code
     * @param string $jPCode
     * @param string $class
     * @param string $type
     * @param string $category
     * @param string $specialType
     * @param bool $directPayment
     * @param bool $nonRefundable
     * @param bool $optional
     * @param int $quantity
     * @param string $begin
     * @param string $end
     * @param float $amount
     * @param string $currency
     * @param string $ratePlanCode
     * @param int $serviceDuration
     * @param string $roomCategory
     * @param string $paymentDate
     * @param float $costValue
     * @param float $percentatge
     * @param int $firstDaySelected
     * @param bool $onlyResidents
     * @param string $informedTime
     * @param string $externalCode
     * @param int $guests
     * @param string $categoryType
     * @param string $serviceFrequency
     */
    public function __construct($name = null, $description = null, \StructType\JP_FreeNights $freeNights = null, \ArrayType\ArrayOfJP_Price $prices = null, \ArrayType\ArrayOfJP_SupplementRelPaxDist $supplementRelPaxesDist = null, \ArrayType\ArrayOfJP_PickUpPoint $pickUpPoints = null, $code = null, $jPCode = null, $class = null, $type = null, $category = null, $specialType = null, $directPayment = null, $nonRefundable = null, $optional = null, $quantity = null, $begin = null, $end = null, $amount = null, $currency = null, $ratePlanCode = null, $serviceDuration = null, $roomCategory = null, $paymentDate = null, $costValue = null, $percentatge = null, $firstDaySelected = null, $onlyResidents = null, $informedTime = null, $externalCode = null, $guests = null, $categoryType = null, $serviceFrequency = null)
    {
        $this
            ->setName($name)
            ->setDescription($description)
            ->setFreeNights($freeNights)
            ->setPrices($prices)
            ->setSupplementRelPaxesDist($supplementRelPaxesDist)
            ->setPickUpPoints($pickUpPoints)
            ->setCode($code)
            ->setJPCode($jPCode)
            ->setClass($class)
            ->setType($type)
            ->setCategory($category)
            ->setSpecialType($specialType)
            ->setDirectPayment($directPayment)
            ->setNonRefundable($nonRefundable)
            ->setOptional($optional)
            ->setQuantity($quantity)
            ->setBegin($begin)
            ->setEnd($end)
            ->setAmount($amount)
            ->setCurrency($currency)
            ->setRatePlanCode($ratePlanCode)
            ->setServiceDuration($serviceDuration)
            ->setRoomCategory($roomCategory)
            ->setPaymentDate($paymentDate)
            ->setCostValue($costValue)
            ->setPercentatge($percentatge)
            ->setFirstDaySelected($firstDaySelected)
            ->setOnlyResidents($onlyResidents)
            ->setInformedTime($informedTime)
            ->setExternalCode($externalCode)
            ->setGuests($guests)
            ->setCategoryType($categoryType)
            ->setServiceFrequency($serviceFrequency);
    }
    /**
     * Get Name value
     * @return string|null
     */
    public function getName()
    {
        return $this->Name;
    }
    /**
     * Set Name value
     * @param string $name
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setName($name = null)
    {
        // validation for constraint: string
        if (!is_null($name) && !is_string($name)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name, true), gettype($name)), __LINE__);
        }
        $this->Name = $name;
        return $this;
    }
    /**
     * Get Description value
     * @return string|null
     */
    public function getDescription()
    {
        return $this->Description;
    }
    /**
     * Set Description value
     * @param string $description
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setDescription($description = null)
    {
        // validation for constraint: string
        if (!is_null($description) && !is_string($description)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($description, true), gettype($description)), __LINE__);
        }
        $this->Description = $description;
        return $this;
    }
    /**
     * Get FreeNights value
     * @return \StructType\JP_FreeNights|null
     */
    public function getFreeNights()
    {
        return $this->FreeNights;
    }
    /**
     * Set FreeNights value
     * @param \StructType\JP_FreeNights $freeNights
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setFreeNights(\StructType\JP_FreeNights $freeNights = null)
    {
        $this->FreeNights = $freeNights;
        return $this;
    }
    /**
     * Get Prices value
     * @return \ArrayType\ArrayOfJP_Price|null
     */
    public function getPrices()
    {
        return $this->Prices;
    }
    /**
     * Set Prices value
     * @param \ArrayType\ArrayOfJP_Price $prices
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setPrices(\ArrayType\ArrayOfJP_Price $prices = null)
    {
        $this->Prices = $prices;
        return $this;
    }
    /**
     * Get SupplementRelPaxesDist value
     * @return \ArrayType\ArrayOfJP_SupplementRelPaxDist|null
     */
    public function getSupplementRelPaxesDist()
    {
        return $this->SupplementRelPaxesDist;
    }
    /**
     * Set SupplementRelPaxesDist value
     * @param \ArrayType\ArrayOfJP_SupplementRelPaxDist $supplementRelPaxesDist
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setSupplementRelPaxesDist(\ArrayType\ArrayOfJP_SupplementRelPaxDist $supplementRelPaxesDist = null)
    {
        $this->SupplementRelPaxesDist = $supplementRelPaxesDist;
        return $this;
    }
    /**
     * Get PickUpPoints value
     * @return \ArrayType\ArrayOfJP_PickUpPoint|null
     */
    public function getPickUpPoints()
    {
        return $this->PickUpPoints;
    }
    /**
     * Set PickUpPoints value
     * @param \ArrayType\ArrayOfJP_PickUpPoint $pickUpPoints
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setPickUpPoints(\ArrayType\ArrayOfJP_PickUpPoint $pickUpPoints = null)
    {
        $this->PickUpPoints = $pickUpPoints;
        return $this;
    }
    /**
     * Get Code value
     * @return string|null
     */
    public function getCode()
    {
        return $this->Code;
    }
    /**
     * Set Code value
     * @param string $code
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setCode($code = null)
    {
        // validation for constraint: string
        if (!is_null($code) && !is_string($code)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($code, true), gettype($code)), __LINE__);
        }
        $this->Code = $code;
        return $this;
    }
    /**
     * Get JPCode value
     * @return string|null
     */
    public function getJPCode()
    {
        return $this->JPCode;
    }
    /**
     * Set JPCode value
     * @param string $jPCode
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setJPCode($jPCode = null)
    {
        // validation for constraint: string
        if (!is_null($jPCode) && !is_string($jPCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($jPCode, true), gettype($jPCode)), __LINE__);
        }
        $this->JPCode = $jPCode;
        return $this;
    }
    /**
     * Get Class value
     * @return string|null
     */
    public function getClass()
    {
        return $this->Class;
    }
    /**
     * Set Class value
     * @param string $class
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setClass($class = null)
    {
        // validation for constraint: string
        if (!is_null($class) && !is_string($class)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($class, true), gettype($class)), __LINE__);
        }
        $this->Class = $class;
        return $this;
    }
    /**
     * Get Type value
     * @return string|null
     */
    public function getType()
    {
        return $this->Type;
    }
    /**
     * Set Type value
     * @uses \EnumType\JP_SupplementType::valueIsValid()
     * @uses \EnumType\JP_SupplementType::getValidValues()
     * @throws \InvalidArgumentException
     * @param string $type
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setType($type = null)
    {
        // validation for constraint: enumeration
        if (!\EnumType\JP_SupplementType::valueIsValid($type)) {
            throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \EnumType\JP_SupplementType', is_array($type) ? implode(', ', $type) : var_export($type, true), implode(', ', \EnumType\JP_SupplementType::getValidValues())), __LINE__);
        }
        $this->Type = $type;
        return $this;
    }
    /**
     * Get Category value
     * @return string|null
     */
    public function getCategory()
    {
        return $this->Category;
    }
    /**
     * Set Category value
     * @param string $category
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setCategory($category = null)
    {
        // validation for constraint: string
        if (!is_null($category) && !is_string($category)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($category, true), gettype($category)), __LINE__);
        }
        $this->Category = $category;
        return $this;
    }
    /**
     * Get SpecialType value
     * @return string|null
     */
    public function getSpecialType()
    {
        return $this->SpecialType;
    }
    /**
     * Set SpecialType value
     * @param string $specialType
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setSpecialType($specialType = null)
    {
        // validation for constraint: string
        if (!is_null($specialType) && !is_string($specialType)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($specialType, true), gettype($specialType)), __LINE__);
        }
        $this->SpecialType = $specialType;
        return $this;
    }
    /**
     * Get DirectPayment value
     * @return bool|null
     */
    public function getDirectPayment()
    {
        return $this->DirectPayment;
    }
    /**
     * Set DirectPayment value
     * @param bool $directPayment
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setDirectPayment($directPayment = null)
    {
        // validation for constraint: boolean
        if (!is_null($directPayment) && !is_bool($directPayment)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($directPayment, true), gettype($directPayment)), __LINE__);
        }
        $this->DirectPayment = $directPayment;
        return $this;
    }
    /**
     * Get NonRefundable value
     * @return bool|null
     */
    public function getNonRefundable()
    {
        return $this->NonRefundable;
    }
    /**
     * Set NonRefundable value
     * @param bool $nonRefundable
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setNonRefundable($nonRefundable = null)
    {
        // validation for constraint: boolean
        if (!is_null($nonRefundable) && !is_bool($nonRefundable)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($nonRefundable, true), gettype($nonRefundable)), __LINE__);
        }
        $this->NonRefundable = $nonRefundable;
        return $this;
    }
    /**
     * Get Optional value
     * @return bool|null
     */
    public function getOptional()
    {
        return $this->Optional;
    }
    /**
     * Set Optional value
     * @param bool $optional
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setOptional($optional = null)
    {
        // validation for constraint: boolean
        if (!is_null($optional) && !is_bool($optional)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($optional, true), gettype($optional)), __LINE__);
        }
        $this->Optional = $optional;
        return $this;
    }
    /**
     * Get Quantity value
     * @return int|null
     */
    public function getQuantity()
    {
        return $this->Quantity;
    }
    /**
     * Set Quantity value
     * @param int $quantity
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setQuantity($quantity = null)
    {
        // validation for constraint: int
        if (!is_null($quantity) && !(is_int($quantity) || ctype_digit($quantity))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($quantity, true), gettype($quantity)), __LINE__);
        }
        $this->Quantity = $quantity;
        return $this;
    }
    /**
     * Get Begin value
     * @return string|null
     */
    public function getBegin()
    {
        return $this->Begin;
    }
    /**
     * Set Begin value
     * @param string $begin
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setBegin($begin = null)
    {
        // validation for constraint: string
        if (!is_null($begin) && !is_string($begin)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($begin, true), gettype($begin)), __LINE__);
        }
        $this->Begin = $begin;
        return $this;
    }
    /**
     * Get End value
     * @return string|null
     */
    public function getEnd()
    {
        return $this->End;
    }
    /**
     * Set End value
     * @param string $end
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setEnd($end = null)
    {
        // validation for constraint: string
        if (!is_null($end) && !is_string($end)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($end, true), gettype($end)), __LINE__);
        }
        $this->End = $end;
        return $this;
    }
    /**
     * Get Amount value
     * @return float|null
     */
    public function getAmount()
    {
        return $this->Amount;
    }
    /**
     * Set Amount value
     * @param float $amount
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setAmount($amount = null)
    {
        // validation for constraint: float
        if (!is_null($amount) && !(is_float($amount) || is_numeric($amount))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a float value, %s given', var_export($amount, true), gettype($amount)), __LINE__);
        }
        $this->Amount = $amount;
        return $this;
    }
    /**
     * Get Currency value
     * @return string|null
     */
    public function getCurrency()
    {
        return $this->Currency;
    }
    /**
     * Set Currency value
     * @param string $currency
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setCurrency($currency = null)
    {
        // validation for constraint: string
        if (!is_null($currency) && !is_string($currency)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($currency, true), gettype($currency)), __LINE__);
        }
        $this->Currency = $currency;
        return $this;
    }
    /**
     * Get RatePlanCode value
     * @return string|null
     */
    public function getRatePlanCode()
    {
        return $this->RatePlanCode;
    }
    /**
     * Set RatePlanCode value
     * @param string $ratePlanCode
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setRatePlanCode($ratePlanCode = null)
    {
        // validation for constraint: string
        if (!is_null($ratePlanCode) && !is_string($ratePlanCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($ratePlanCode, true), gettype($ratePlanCode)), __LINE__);
        }
        $this->RatePlanCode = $ratePlanCode;
        return $this;
    }
    /**
     * Get ServiceDuration value
     * @return int|null
     */
    public function getServiceDuration()
    {
        return $this->ServiceDuration;
    }
    /**
     * Set ServiceDuration value
     * @param int $serviceDuration
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setServiceDuration($serviceDuration = null)
    {
        // validation for constraint: int
        if (!is_null($serviceDuration) && !(is_int($serviceDuration) || ctype_digit($serviceDuration))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($serviceDuration, true), gettype($serviceDuration)), __LINE__);
        }
        $this->ServiceDuration = $serviceDuration;
        return $this;
    }
    /**
     * Get RoomCategory value
     * @return string|null
     */
    public function getRoomCategory()
    {
        return $this->RoomCategory;
    }
    /**
     * Set RoomCategory value
     * @param string $roomCategory
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setRoomCategory($roomCategory = null)
    {
        // validation for constraint: string
        if (!is_null($roomCategory) && !is_string($roomCategory)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($roomCategory, true), gettype($roomCategory)), __LINE__);
        }
        $this->RoomCategory = $roomCategory;
        return $this;
    }
    /**
     * Get PaymentDate value
     * @return string|null
     */
    public function getPaymentDate()
    {
        return $this->PaymentDate;
    }
    /**
     * Set PaymentDate value
     * @param string $paymentDate
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setPaymentDate($paymentDate = null)
    {
        // validation for constraint: string
        if (!is_null($paymentDate) && !is_string($paymentDate)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($paymentDate, true), gettype($paymentDate)), __LINE__);
        }
        $this->PaymentDate = $paymentDate;
        return $this;
    }
    /**
     * Get CostValue value
     * @return float|null
     */
    public function getCostValue()
    {
        return $this->CostValue;
    }
    /**
     * Set CostValue value
     * @param float $costValue
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setCostValue($costValue = null)
    {
        // validation for constraint: float
        if (!is_null($costValue) && !(is_float($costValue) || is_numeric($costValue))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a float value, %s given', var_export($costValue, true), gettype($costValue)), __LINE__);
        }
        $this->CostValue = $costValue;
        return $this;
    }
    /**
     * Get Percentatge value
     * @return float|null
     */
    public function getPercentatge()
    {
        return $this->Percentatge;
    }
    /**
     * Set Percentatge value
     * @param float $percentatge
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setPercentatge($percentatge = null)
    {
        // validation for constraint: float
        if (!is_null($percentatge) && !(is_float($percentatge) || is_numeric($percentatge))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a float value, %s given', var_export($percentatge, true), gettype($percentatge)), __LINE__);
        }
        $this->Percentatge = $percentatge;
        return $this;
    }
    /**
     * Get FirstDaySelected value
     * @return int|null
     */
    public function getFirstDaySelected()
    {
        return $this->FirstDaySelected;
    }
    /**
     * Set FirstDaySelected value
     * @param int $firstDaySelected
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setFirstDaySelected($firstDaySelected = null)
    {
        // validation for constraint: int
        if (!is_null($firstDaySelected) && !(is_int($firstDaySelected) || ctype_digit($firstDaySelected))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($firstDaySelected, true), gettype($firstDaySelected)), __LINE__);
        }
        $this->FirstDaySelected = $firstDaySelected;
        return $this;
    }
    /**
     * Get OnlyResidents value
     * @return bool|null
     */
    public function getOnlyResidents()
    {
        return $this->OnlyResidents;
    }
    /**
     * Set OnlyResidents value
     * @param bool $onlyResidents
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setOnlyResidents($onlyResidents = null)
    {
        // validation for constraint: boolean
        if (!is_null($onlyResidents) && !is_bool($onlyResidents)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($onlyResidents, true), gettype($onlyResidents)), __LINE__);
        }
        $this->OnlyResidents = $onlyResidents;
        return $this;
    }
    /**
     * Get InformedTime value
     * @return string|null
     */
    public function getInformedTime()
    {
        return $this->InformedTime;
    }
    /**
     * Set InformedTime value
     * @param string $informedTime
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setInformedTime($informedTime = null)
    {
        // validation for constraint: string
        if (!is_null($informedTime) && !is_string($informedTime)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($informedTime, true), gettype($informedTime)), __LINE__);
        }
        $this->InformedTime = $informedTime;
        return $this;
    }
    /**
     * Get ExternalCode value
     * @return string|null
     */
    public function getExternalCode()
    {
        return $this->ExternalCode;
    }
    /**
     * Set ExternalCode value
     * @param string $externalCode
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setExternalCode($externalCode = null)
    {
        // validation for constraint: string
        if (!is_null($externalCode) && !is_string($externalCode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($externalCode, true), gettype($externalCode)), __LINE__);
        }
        $this->ExternalCode = $externalCode;
        return $this;
    }
    /**
     * Get Guests value
     * @return int|null
     */
    public function getGuests()
    {
        return $this->Guests;
    }
    /**
     * Set Guests value
     * @param int $guests
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setGuests($guests = null)
    {
        // validation for constraint: int
        if (!is_null($guests) && !(is_int($guests) || ctype_digit($guests))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($guests, true), gettype($guests)), __LINE__);
        }
        $this->Guests = $guests;
        return $this;
    }
    /**
     * Get CategoryType value
     * @return string|null
     */
    public function getCategoryType()
    {
        return $this->CategoryType;
    }
    /**
     * Set CategoryType value
     * @param string $categoryType
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setCategoryType($categoryType = null)
    {
        // validation for constraint: string
        if (!is_null($categoryType) && !is_string($categoryType)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($categoryType, true), gettype($categoryType)), __LINE__);
        }
        $this->CategoryType = $categoryType;
        return $this;
    }
    /**
     * Get ServiceFrequency value
     * @return string|null
     */
    public function getServiceFrequency()
    {
        return $this->ServiceFrequency;
    }
    /**
     * Set ServiceFrequency value
     * @param string $serviceFrequency
     * @return \StructType\JP_HotelAdditionalElement
     */
    public function setServiceFrequency($serviceFrequency = null)
    {
        // validation for constraint: string
        if (!is_null($serviceFrequency) && !is_string($serviceFrequency)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($serviceFrequency, true), gettype($serviceFrequency)), __LINE__);
        }
        $this->ServiceFrequency = $serviceFrequency;
        return $this;
    }
}
