<?php

namespace Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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