<?php

namespace CustomerManagement\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetEligibleSensorNamesOutput StructType
 * @subpackage Structs
 */
class GetEligibleSensorNamesOutput extends AbstractStructBase
{
    /**
     * The Success
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $Success;
    /**
     * The ErrorMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $ErrorMessage;
    /**
     * The SensorNamePrefix
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \CustomerManagement\ArrayType\ArrayOfEligibleSensorName
     */
    public $SensorNamePrefix;
    /**
     * The SensorNameBase
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \CustomerManagement\ArrayType\ArrayOfEligibleSensorName
     */
    public $SensorNameBase;
    /**
     * The SensorNameSuffix
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \CustomerManagement\ArrayType\ArrayOfEligibleSensorName
     */
    public $SensorNameSuffix;
    /**
     * The SensorNameToken3
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \CustomerManagement\ArrayType\ArrayOfEligibleSensorName
     */
    public $SensorNameToken3;
    /**
     * The SensorNameToken4
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \CustomerManagement\ArrayType\ArrayOfEligibleSensorName
     */
    public $SensorNameToken4;
    /**
     * Constructor method for GetEligibleSensorNamesOutput
     * @uses GetEligibleSensorNamesOutput::setSuccess()
     * @uses GetEligibleSensorNamesOutput::setErrorMessage()
     * @uses GetEligibleSensorNamesOutput::setSensorNamePrefix()
     * @uses GetEligibleSensorNamesOutput::setSensorNameBase()
     * @uses GetEligibleSensorNamesOutput::setSensorNameSuffix()
     * @uses GetEligibleSensorNamesOutput::setSensorNameToken3()
     * @uses GetEligibleSensorNamesOutput::setSensorNameToken4()
     * @param bool $success
     * @param string $errorMessage
     * @param \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNamePrefix
     * @param \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameBase
     * @param \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameSuffix
     * @param \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameToken3
     * @param \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameToken4
     */
    public function __construct($success = null, $errorMessage = null, \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNamePrefix = null, \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameBase = null, \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameSuffix = null, \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameToken3 = null, \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameToken4 = null)
    {
        $this
            ->setSuccess($success)
            ->setErrorMessage($errorMessage)
            ->setSensorNamePrefix($sensorNamePrefix)
            ->setSensorNameBase($sensorNameBase)
            ->setSensorNameSuffix($sensorNameSuffix)
            ->setSensorNameToken3($sensorNameToken3)
            ->setSensorNameToken4($sensorNameToken4);
    }
    /**
     * Get Success value
     * @return bool
     */
    public function getSuccess()
    {
        return $this->Success;
    }
    /**
     * Set Success value
     * @param bool $success
     * @return \CustomerManagement\StructType\GetEligibleSensorNamesOutput
     */
    public function setSuccess($success = null)
    {
        // validation for constraint: boolean
        if (!is_null($success) && !is_bool($success)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($success, true), gettype($success)), __LINE__);
        }
        $this->Success = $success;
        return $this;
    }
    /**
     * Get ErrorMessage value
     * @return string|null
     */
    public function getErrorMessage()
    {
        return $this->ErrorMessage;
    }
    /**
     * Set ErrorMessage value
     * @param string $errorMessage
     * @return \CustomerManagement\StructType\GetEligibleSensorNamesOutput
     */
    public function setErrorMessage($errorMessage = null)
    {
        // validation for constraint: string
        if (!is_null($errorMessage) && !is_string($errorMessage)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($errorMessage, true), gettype($errorMessage)), __LINE__);
        }
        $this->ErrorMessage = $errorMessage;
        return $this;
    }
    /**
     * Get SensorNamePrefix value
     * @return \CustomerManagement\ArrayType\ArrayOfEligibleSensorName|null
     */
    public function getSensorNamePrefix()
    {
        return $this->SensorNamePrefix;
    }
    /**
     * Set SensorNamePrefix value
     * @param \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNamePrefix
     * @return \CustomerManagement\StructType\GetEligibleSensorNamesOutput
     */
    public function setSensorNamePrefix(\CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNamePrefix = null)
    {
        $this->SensorNamePrefix = $sensorNamePrefix;
        return $this;
    }
    /**
     * Get SensorNameBase value
     * @return \CustomerManagement\ArrayType\ArrayOfEligibleSensorName|null
     */
    public function getSensorNameBase()
    {
        return $this->SensorNameBase;
    }
    /**
     * Set SensorNameBase value
     * @param \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameBase
     * @return \CustomerManagement\StructType\GetEligibleSensorNamesOutput
     */
    public function setSensorNameBase(\CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameBase = null)
    {
        $this->SensorNameBase = $sensorNameBase;
        return $this;
    }
    /**
     * Get SensorNameSuffix value
     * @return \CustomerManagement\ArrayType\ArrayOfEligibleSensorName|null
     */
    public function getSensorNameSuffix()
    {
        return $this->SensorNameSuffix;
    }
    /**
     * Set SensorNameSuffix value
     * @param \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameSuffix
     * @return \CustomerManagement\StructType\GetEligibleSensorNamesOutput
     */
    public function setSensorNameSuffix(\CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameSuffix = null)
    {
        $this->SensorNameSuffix = $sensorNameSuffix;
        return $this;
    }
    /**
     * Get SensorNameToken3 value
     * @return \CustomerManagement\ArrayType\ArrayOfEligibleSensorName|null
     */
    public function getSensorNameToken3()
    {
        return $this->SensorNameToken3;
    }
    /**
     * Set SensorNameToken3 value
     * @param \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameToken3
     * @return \CustomerManagement\StructType\GetEligibleSensorNamesOutput
     */
    public function setSensorNameToken3(\CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameToken3 = null)
    {
        $this->SensorNameToken3 = $sensorNameToken3;
        return $this;
    }
    /**
     * Get SensorNameToken4 value
     * @return \CustomerManagement\ArrayType\ArrayOfEligibleSensorName|null
     */
    public function getSensorNameToken4()
    {
        return $this->SensorNameToken4;
    }
    /**
     * Set SensorNameToken4 value
     * @param \CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameToken4
     * @return \CustomerManagement\StructType\GetEligibleSensorNamesOutput
     */
    public function setSensorNameToken4(\CustomerManagement\ArrayType\ArrayOfEligibleSensorName $sensorNameToken4 = null)
    {
        $this->SensorNameToken4 = $sensorNameToken4;
        return $this;
    }
}
