<?php

namespace Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for generateProtocolsWithDestinationsXV2 Structs
 * Meta information extracted from the WSDL
 * - type: tns:generateProtocolsWithDestinationsXV2
 * @subpackage Structs
 */
class GenerateProtocolsWithDestinationsXV2 extends AbstractStructBase
{
    /**
     * The dpdServicesParamsXV2
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $dpdServicesParamsXV2;
    /**
     * The authDataV1
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \Structs\AuthDataV1
     */
    public $authDataV1;
    /**
     * Constructor method for generateProtocolsWithDestinationsXV2
     * @uses GenerateProtocolsWithDestinationsXV2::setDpdServicesParamsXV2()
     * @uses GenerateProtocolsWithDestinationsXV2::setAuthDataV1()
     * @param string $dpdServicesParamsXV2
     * @param \Structs\AuthDataV1 $authDataV1
     */
    public function __construct($dpdServicesParamsXV2 = null, \Structs\AuthDataV1 $authDataV1 = null)
    {
        $this
            ->setDpdServicesParamsXV2($dpdServicesParamsXV2)
            ->setAuthDataV1($authDataV1);
    }
    /**
     * Get dpdServicesParamsXV2 value
     * @return string|null
     */
    public function getDpdServicesParamsXV2()
    {
        return $this->dpdServicesParamsXV2;
    }
    /**
     * Set dpdServicesParamsXV2 value
     * @param string $dpdServicesParamsXV2
     * @return \Structs\GenerateProtocolsWithDestinationsXV2
     */
    public function setDpdServicesParamsXV2($dpdServicesParamsXV2 = null)
    {
        // validation for constraint: string
        if (!is_null($dpdServicesParamsXV2) && !is_string($dpdServicesParamsXV2)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($dpdServicesParamsXV2, true), gettype($dpdServicesParamsXV2)), __LINE__);
        }
        $this->dpdServicesParamsXV2 = $dpdServicesParamsXV2;
        return $this;
    }
    /**
     * Get authDataV1 value
     * @return \Structs\AuthDataV1|null
     */
    public function getAuthDataV1()
    {
        return $this->authDataV1;
    }
    /**
     * Set authDataV1 value
     * @param \Structs\AuthDataV1 $authDataV1
     * @return \Structs\GenerateProtocolsWithDestinationsXV2
     */
    public function setAuthDataV1(\Structs\AuthDataV1 $authDataV1 = null)
    {
        $this->authDataV1 = $authDataV1;
        return $this;
    }
}
