<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CustomerSearch StructType
 * @subpackage Structs
 */
class CustomerSearch extends SearchRecord
{
    /**
     * The basic
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\CustomerSearchBasic
     */
    public $basic;
    /**
     * The billingAccountJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\BillingAccountSearchBasic
     */
    public $billingAccountJoin;
    /**
     * The billingScheduleJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\BillingScheduleSearchBasic
     */
    public $billingScheduleJoin;
    /**
     * The callJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\PhoneCallSearchBasic
     */
    public $callJoin;
    /**
     * The campaignResponseJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\CampaignSearchBasic
     */
    public $campaignResponseJoin;
    /**
     * The caseJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\SupportCaseSearchBasic
     */
    public $caseJoin;
    /**
     * The contactJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ContactSearchBasic
     */
    public $contactJoin;
    /**
     * The contactPrimaryJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ContactSearchBasic
     */
    public $contactPrimaryJoin;
    /**
     * The eventJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\CalendarEventSearchBasic
     */
    public $eventJoin;
    /**
     * The fileJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\FileSearchBasic
     */
    public $fileJoin;
    /**
     * The hostedPageJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\FileSearchBasic
     */
    public $hostedPageJoin;
    /**
     * The jobJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\JobSearchBasic
     */
    public $jobJoin;
    /**
     * The leadSourceJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\CampaignSearchBasic
     */
    public $leadSourceJoin;
    /**
     * The messagesJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\MessageSearchBasic
     */
    public $messagesJoin;
    /**
     * The messagesFromJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\MessageSearchBasic
     */
    public $messagesFromJoin;
    /**
     * The messagesToJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\MessageSearchBasic
     */
    public $messagesToJoin;
    /**
     * The mseSubsidiaryJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\MseSubsidiarySearchBasic
     */
    public $mseSubsidiaryJoin;
    /**
     * The opportunityJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\OpportunitySearchBasic
     */
    public $opportunityJoin;
    /**
     * The originatingLeadJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\OriginatingLeadSearchBasic
     */
    public $originatingLeadJoin;
    /**
     * The parentCustomerJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\CustomerSearchBasic
     */
    public $parentCustomerJoin;
    /**
     * The partnerJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\PartnerSearchBasic
     */
    public $partnerJoin;
    /**
     * The paymentInstrumentJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\PaymentInstrumentSearchBasic
     */
    public $paymentInstrumentJoin;
    /**
     * The pricingJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\PricingSearchBasic
     */
    public $pricingJoin;
    /**
     * The purchasedItemJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ItemSearchBasic
     */
    public $purchasedItemJoin;
    /**
     * The resourceAllocationJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ResourceAllocationSearchBasic
     */
    public $resourceAllocationJoin;
    /**
     * The salesRepJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\EmployeeSearchBasic
     */
    public $salesRepJoin;
    /**
     * The subCustomerJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\CustomerSearchBasic
     */
    public $subCustomerJoin;
    /**
     * The taskJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\TaskSearchBasic
     */
    public $taskJoin;
    /**
     * The taxRegistrationJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\EntityTaxRegistrationSearchBasic
     */
    public $taxRegistrationJoin;
    /**
     * The timeJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\TimeBillSearchBasic
     */
    public $timeJoin;
    /**
     * The topLevelParentJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\CustomerSearchBasic
     */
    public $topLevelParentJoin;
    /**
     * The transactionJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\TransactionSearchBasic
     */
    public $transactionJoin;
    /**
     * The upsellItemJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ItemSearchBasic
     */
    public $upsellItemJoin;
    /**
     * The userJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\EmployeeSearchBasic
     */
    public $userJoin;
    /**
     * The userNotesJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\NoteSearchBasic
     */
    public $userNotesJoin;
    /**
     * The webSiteCategoryJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\SiteCategorySearchBasic
     */
    public $webSiteCategoryJoin;
    /**
     * The webSiteItemJoin
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\ItemSearchBasic
     */
    public $webSiteItemJoin;
    /**
     * The customSearchJoin
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \StructType\CustomSearchJoin[]
     */
    public $customSearchJoin;
    /**
     * Constructor method for CustomerSearch
     * @uses CustomerSearch::setBasic()
     * @uses CustomerSearch::setBillingAccountJoin()
     * @uses CustomerSearch::setBillingScheduleJoin()
     * @uses CustomerSearch::setCallJoin()
     * @uses CustomerSearch::setCampaignResponseJoin()
     * @uses CustomerSearch::setCaseJoin()
     * @uses CustomerSearch::setContactJoin()
     * @uses CustomerSearch::setContactPrimaryJoin()
     * @uses CustomerSearch::setEventJoin()
     * @uses CustomerSearch::setFileJoin()
     * @uses CustomerSearch::setHostedPageJoin()
     * @uses CustomerSearch::setJobJoin()
     * @uses CustomerSearch::setLeadSourceJoin()
     * @uses CustomerSearch::setMessagesJoin()
     * @uses CustomerSearch::setMessagesFromJoin()
     * @uses CustomerSearch::setMessagesToJoin()
     * @uses CustomerSearch::setMseSubsidiaryJoin()
     * @uses CustomerSearch::setOpportunityJoin()
     * @uses CustomerSearch::setOriginatingLeadJoin()
     * @uses CustomerSearch::setParentCustomerJoin()
     * @uses CustomerSearch::setPartnerJoin()
     * @uses CustomerSearch::setPaymentInstrumentJoin()
     * @uses CustomerSearch::setPricingJoin()
     * @uses CustomerSearch::setPurchasedItemJoin()
     * @uses CustomerSearch::setResourceAllocationJoin()
     * @uses CustomerSearch::setSalesRepJoin()
     * @uses CustomerSearch::setSubCustomerJoin()
     * @uses CustomerSearch::setTaskJoin()
     * @uses CustomerSearch::setTaxRegistrationJoin()
     * @uses CustomerSearch::setTimeJoin()
     * @uses CustomerSearch::setTopLevelParentJoin()
     * @uses CustomerSearch::setTransactionJoin()
     * @uses CustomerSearch::setUpsellItemJoin()
     * @uses CustomerSearch::setUserJoin()
     * @uses CustomerSearch::setUserNotesJoin()
     * @uses CustomerSearch::setWebSiteCategoryJoin()
     * @uses CustomerSearch::setWebSiteItemJoin()
     * @uses CustomerSearch::setCustomSearchJoin()
     * @param \StructType\CustomerSearchBasic $basic
     * @param \StructType\BillingAccountSearchBasic $billingAccountJoin
     * @param \StructType\BillingScheduleSearchBasic $billingScheduleJoin
     * @param \StructType\PhoneCallSearchBasic $callJoin
     * @param \StructType\CampaignSearchBasic $campaignResponseJoin
     * @param \StructType\SupportCaseSearchBasic $caseJoin
     * @param \StructType\ContactSearchBasic $contactJoin
     * @param \StructType\ContactSearchBasic $contactPrimaryJoin
     * @param \StructType\CalendarEventSearchBasic $eventJoin
     * @param \StructType\FileSearchBasic $fileJoin
     * @param \StructType\FileSearchBasic $hostedPageJoin
     * @param \StructType\JobSearchBasic $jobJoin
     * @param \StructType\CampaignSearchBasic $leadSourceJoin
     * @param \StructType\MessageSearchBasic $messagesJoin
     * @param \StructType\MessageSearchBasic $messagesFromJoin
     * @param \StructType\MessageSearchBasic $messagesToJoin
     * @param \StructType\MseSubsidiarySearchBasic $mseSubsidiaryJoin
     * @param \StructType\OpportunitySearchBasic $opportunityJoin
     * @param \StructType\OriginatingLeadSearchBasic $originatingLeadJoin
     * @param \StructType\CustomerSearchBasic $parentCustomerJoin
     * @param \StructType\PartnerSearchBasic $partnerJoin
     * @param \StructType\PaymentInstrumentSearchBasic $paymentInstrumentJoin
     * @param \StructType\PricingSearchBasic $pricingJoin
     * @param \StructType\ItemSearchBasic $purchasedItemJoin
     * @param \StructType\ResourceAllocationSearchBasic $resourceAllocationJoin
     * @param \StructType\EmployeeSearchBasic $salesRepJoin
     * @param \StructType\CustomerSearchBasic $subCustomerJoin
     * @param \StructType\TaskSearchBasic $taskJoin
     * @param \StructType\EntityTaxRegistrationSearchBasic $taxRegistrationJoin
     * @param \StructType\TimeBillSearchBasic $timeJoin
     * @param \StructType\CustomerSearchBasic $topLevelParentJoin
     * @param \StructType\TransactionSearchBasic $transactionJoin
     * @param \StructType\ItemSearchBasic $upsellItemJoin
     * @param \StructType\EmployeeSearchBasic $userJoin
     * @param \StructType\NoteSearchBasic $userNotesJoin
     * @param \StructType\SiteCategorySearchBasic $webSiteCategoryJoin
     * @param \StructType\ItemSearchBasic $webSiteItemJoin
     * @param \StructType\CustomSearchJoin[] $customSearchJoin
     */
    public function __construct(\StructType\CustomerSearchBasic $basic = null, \StructType\BillingAccountSearchBasic $billingAccountJoin = null, \StructType\BillingScheduleSearchBasic $billingScheduleJoin = null, \StructType\PhoneCallSearchBasic $callJoin = null, \StructType\CampaignSearchBasic $campaignResponseJoin = null, \StructType\SupportCaseSearchBasic $caseJoin = null, \StructType\ContactSearchBasic $contactJoin = null, \StructType\ContactSearchBasic $contactPrimaryJoin = null, \StructType\CalendarEventSearchBasic $eventJoin = null, \StructType\FileSearchBasic $fileJoin = null, \StructType\FileSearchBasic $hostedPageJoin = null, \StructType\JobSearchBasic $jobJoin = null, \StructType\CampaignSearchBasic $leadSourceJoin = null, \StructType\MessageSearchBasic $messagesJoin = null, \StructType\MessageSearchBasic $messagesFromJoin = null, \StructType\MessageSearchBasic $messagesToJoin = null, \StructType\MseSubsidiarySearchBasic $mseSubsidiaryJoin = null, \StructType\OpportunitySearchBasic $opportunityJoin = null, \StructType\OriginatingLeadSearchBasic $originatingLeadJoin = null, \StructType\CustomerSearchBasic $parentCustomerJoin = null, \StructType\PartnerSearchBasic $partnerJoin = null, \StructType\PaymentInstrumentSearchBasic $paymentInstrumentJoin = null, \StructType\PricingSearchBasic $pricingJoin = null, \StructType\ItemSearchBasic $purchasedItemJoin = null, \StructType\ResourceAllocationSearchBasic $resourceAllocationJoin = null, \StructType\EmployeeSearchBasic $salesRepJoin = null, \StructType\CustomerSearchBasic $subCustomerJoin = null, \StructType\TaskSearchBasic $taskJoin = null, \StructType\EntityTaxRegistrationSearchBasic $taxRegistrationJoin = null, \StructType\TimeBillSearchBasic $timeJoin = null, \StructType\CustomerSearchBasic $topLevelParentJoin = null, \StructType\TransactionSearchBasic $transactionJoin = null, \StructType\ItemSearchBasic $upsellItemJoin = null, \StructType\EmployeeSearchBasic $userJoin = null, \StructType\NoteSearchBasic $userNotesJoin = null, \StructType\SiteCategorySearchBasic $webSiteCategoryJoin = null, \StructType\ItemSearchBasic $webSiteItemJoin = null, array $customSearchJoin = array())
    {
        $this
            ->setBasic($basic)
            ->setBillingAccountJoin($billingAccountJoin)
            ->setBillingScheduleJoin($billingScheduleJoin)
            ->setCallJoin($callJoin)
            ->setCampaignResponseJoin($campaignResponseJoin)
            ->setCaseJoin($caseJoin)
            ->setContactJoin($contactJoin)
            ->setContactPrimaryJoin($contactPrimaryJoin)
            ->setEventJoin($eventJoin)
            ->setFileJoin($fileJoin)
            ->setHostedPageJoin($hostedPageJoin)
            ->setJobJoin($jobJoin)
            ->setLeadSourceJoin($leadSourceJoin)
            ->setMessagesJoin($messagesJoin)
            ->setMessagesFromJoin($messagesFromJoin)
            ->setMessagesToJoin($messagesToJoin)
            ->setMseSubsidiaryJoin($mseSubsidiaryJoin)
            ->setOpportunityJoin($opportunityJoin)
            ->setOriginatingLeadJoin($originatingLeadJoin)
            ->setParentCustomerJoin($parentCustomerJoin)
            ->setPartnerJoin($partnerJoin)
            ->setPaymentInstrumentJoin($paymentInstrumentJoin)
            ->setPricingJoin($pricingJoin)
            ->setPurchasedItemJoin($purchasedItemJoin)
            ->setResourceAllocationJoin($resourceAllocationJoin)
            ->setSalesRepJoin($salesRepJoin)
            ->setSubCustomerJoin($subCustomerJoin)
            ->setTaskJoin($taskJoin)
            ->setTaxRegistrationJoin($taxRegistrationJoin)
            ->setTimeJoin($timeJoin)
            ->setTopLevelParentJoin($topLevelParentJoin)
            ->setTransactionJoin($transactionJoin)
            ->setUpsellItemJoin($upsellItemJoin)
            ->setUserJoin($userJoin)
            ->setUserNotesJoin($userNotesJoin)
            ->setWebSiteCategoryJoin($webSiteCategoryJoin)
            ->setWebSiteItemJoin($webSiteItemJoin)
            ->setCustomSearchJoin($customSearchJoin);
    }
    /**
     * Get basic value
     * @return \StructType\CustomerSearchBasic|null
     */
    public function getBasic()
    {
        return $this->basic;
    }
    /**
     * Set basic value
     * @param \StructType\CustomerSearchBasic $basic
     * @return \StructType\CustomerSearch
     */
    public function setBasic(\StructType\CustomerSearchBasic $basic = null)
    {
        $this->basic = $basic;
        return $this;
    }
    /**
     * Get billingAccountJoin value
     * @return \StructType\BillingAccountSearchBasic|null
     */
    public function getBillingAccountJoin()
    {
        return $this->billingAccountJoin;
    }
    /**
     * Set billingAccountJoin value
     * @param \StructType\BillingAccountSearchBasic $billingAccountJoin
     * @return \StructType\CustomerSearch
     */
    public function setBillingAccountJoin(\StructType\BillingAccountSearchBasic $billingAccountJoin = null)
    {
        $this->billingAccountJoin = $billingAccountJoin;
        return $this;
    }
    /**
     * Get billingScheduleJoin value
     * @return \StructType\BillingScheduleSearchBasic|null
     */
    public function getBillingScheduleJoin()
    {
        return $this->billingScheduleJoin;
    }
    /**
     * Set billingScheduleJoin value
     * @param \StructType\BillingScheduleSearchBasic $billingScheduleJoin
     * @return \StructType\CustomerSearch
     */
    public function setBillingScheduleJoin(\StructType\BillingScheduleSearchBasic $billingScheduleJoin = null)
    {
        $this->billingScheduleJoin = $billingScheduleJoin;
        return $this;
    }
    /**
     * Get callJoin value
     * @return \StructType\PhoneCallSearchBasic|null
     */
    public function getCallJoin()
    {
        return $this->callJoin;
    }
    /**
     * Set callJoin value
     * @param \StructType\PhoneCallSearchBasic $callJoin
     * @return \StructType\CustomerSearch
     */
    public function setCallJoin(\StructType\PhoneCallSearchBasic $callJoin = null)
    {
        $this->callJoin = $callJoin;
        return $this;
    }
    /**
     * Get campaignResponseJoin value
     * @return \StructType\CampaignSearchBasic|null
     */
    public function getCampaignResponseJoin()
    {
        return $this->campaignResponseJoin;
    }
    /**
     * Set campaignResponseJoin value
     * @param \StructType\CampaignSearchBasic $campaignResponseJoin
     * @return \StructType\CustomerSearch
     */
    public function setCampaignResponseJoin(\StructType\CampaignSearchBasic $campaignResponseJoin = null)
    {
        $this->campaignResponseJoin = $campaignResponseJoin;
        return $this;
    }
    /**
     * Get caseJoin value
     * @return \StructType\SupportCaseSearchBasic|null
     */
    public function getCaseJoin()
    {
        return $this->caseJoin;
    }
    /**
     * Set caseJoin value
     * @param \StructType\SupportCaseSearchBasic $caseJoin
     * @return \StructType\CustomerSearch
     */
    public function setCaseJoin(\StructType\SupportCaseSearchBasic $caseJoin = null)
    {
        $this->caseJoin = $caseJoin;
        return $this;
    }
    /**
     * Get contactJoin value
     * @return \StructType\ContactSearchBasic|null
     */
    public function getContactJoin()
    {
        return $this->contactJoin;
    }
    /**
     * Set contactJoin value
     * @param \StructType\ContactSearchBasic $contactJoin
     * @return \StructType\CustomerSearch
     */
    public function setContactJoin(\StructType\ContactSearchBasic $contactJoin = null)
    {
        $this->contactJoin = $contactJoin;
        return $this;
    }
    /**
     * Get contactPrimaryJoin value
     * @return \StructType\ContactSearchBasic|null
     */
    public function getContactPrimaryJoin()
    {
        return $this->contactPrimaryJoin;
    }
    /**
     * Set contactPrimaryJoin value
     * @param \StructType\ContactSearchBasic $contactPrimaryJoin
     * @return \StructType\CustomerSearch
     */
    public function setContactPrimaryJoin(\StructType\ContactSearchBasic $contactPrimaryJoin = null)
    {
        $this->contactPrimaryJoin = $contactPrimaryJoin;
        return $this;
    }
    /**
     * Get eventJoin value
     * @return \StructType\CalendarEventSearchBasic|null
     */
    public function getEventJoin()
    {
        return $this->eventJoin;
    }
    /**
     * Set eventJoin value
     * @param \StructType\CalendarEventSearchBasic $eventJoin
     * @return \StructType\CustomerSearch
     */
    public function setEventJoin(\StructType\CalendarEventSearchBasic $eventJoin = null)
    {
        $this->eventJoin = $eventJoin;
        return $this;
    }
    /**
     * Get fileJoin value
     * @return \StructType\FileSearchBasic|null
     */
    public function getFileJoin()
    {
        return $this->fileJoin;
    }
    /**
     * Set fileJoin value
     * @param \StructType\FileSearchBasic $fileJoin
     * @return \StructType\CustomerSearch
     */
    public function setFileJoin(\StructType\FileSearchBasic $fileJoin = null)
    {
        $this->fileJoin = $fileJoin;
        return $this;
    }
    /**
     * Get hostedPageJoin value
     * @return \StructType\FileSearchBasic|null
     */
    public function getHostedPageJoin()
    {
        return $this->hostedPageJoin;
    }
    /**
     * Set hostedPageJoin value
     * @param \StructType\FileSearchBasic $hostedPageJoin
     * @return \StructType\CustomerSearch
     */
    public function setHostedPageJoin(\StructType\FileSearchBasic $hostedPageJoin = null)
    {
        $this->hostedPageJoin = $hostedPageJoin;
        return $this;
    }
    /**
     * Get jobJoin value
     * @return \StructType\JobSearchBasic|null
     */
    public function getJobJoin()
    {
        return $this->jobJoin;
    }
    /**
     * Set jobJoin value
     * @param \StructType\JobSearchBasic $jobJoin
     * @return \StructType\CustomerSearch
     */
    public function setJobJoin(\StructType\JobSearchBasic $jobJoin = null)
    {
        $this->jobJoin = $jobJoin;
        return $this;
    }
    /**
     * Get leadSourceJoin value
     * @return \StructType\CampaignSearchBasic|null
     */
    public function getLeadSourceJoin()
    {
        return $this->leadSourceJoin;
    }
    /**
     * Set leadSourceJoin value
     * @param \StructType\CampaignSearchBasic $leadSourceJoin
     * @return \StructType\CustomerSearch
     */
    public function setLeadSourceJoin(\StructType\CampaignSearchBasic $leadSourceJoin = null)
    {
        $this->leadSourceJoin = $leadSourceJoin;
        return $this;
    }
    /**
     * Get messagesJoin value
     * @return \StructType\MessageSearchBasic|null
     */
    public function getMessagesJoin()
    {
        return $this->messagesJoin;
    }
    /**
     * Set messagesJoin value
     * @param \StructType\MessageSearchBasic $messagesJoin
     * @return \StructType\CustomerSearch
     */
    public function setMessagesJoin(\StructType\MessageSearchBasic $messagesJoin = null)
    {
        $this->messagesJoin = $messagesJoin;
        return $this;
    }
    /**
     * Get messagesFromJoin value
     * @return \StructType\MessageSearchBasic|null
     */
    public function getMessagesFromJoin()
    {
        return $this->messagesFromJoin;
    }
    /**
     * Set messagesFromJoin value
     * @param \StructType\MessageSearchBasic $messagesFromJoin
     * @return \StructType\CustomerSearch
     */
    public function setMessagesFromJoin(\StructType\MessageSearchBasic $messagesFromJoin = null)
    {
        $this->messagesFromJoin = $messagesFromJoin;
        return $this;
    }
    /**
     * Get messagesToJoin value
     * @return \StructType\MessageSearchBasic|null
     */
    public function getMessagesToJoin()
    {
        return $this->messagesToJoin;
    }
    /**
     * Set messagesToJoin value
     * @param \StructType\MessageSearchBasic $messagesToJoin
     * @return \StructType\CustomerSearch
     */
    public function setMessagesToJoin(\StructType\MessageSearchBasic $messagesToJoin = null)
    {
        $this->messagesToJoin = $messagesToJoin;
        return $this;
    }
    /**
     * Get mseSubsidiaryJoin value
     * @return \StructType\MseSubsidiarySearchBasic|null
     */
    public function getMseSubsidiaryJoin()
    {
        return $this->mseSubsidiaryJoin;
    }
    /**
     * Set mseSubsidiaryJoin value
     * @param \StructType\MseSubsidiarySearchBasic $mseSubsidiaryJoin
     * @return \StructType\CustomerSearch
     */
    public function setMseSubsidiaryJoin(\StructType\MseSubsidiarySearchBasic $mseSubsidiaryJoin = null)
    {
        $this->mseSubsidiaryJoin = $mseSubsidiaryJoin;
        return $this;
    }
    /**
     * Get opportunityJoin value
     * @return \StructType\OpportunitySearchBasic|null
     */
    public function getOpportunityJoin()
    {
        return $this->opportunityJoin;
    }
    /**
     * Set opportunityJoin value
     * @param \StructType\OpportunitySearchBasic $opportunityJoin
     * @return \StructType\CustomerSearch
     */
    public function setOpportunityJoin(\StructType\OpportunitySearchBasic $opportunityJoin = null)
    {
        $this->opportunityJoin = $opportunityJoin;
        return $this;
    }
    /**
     * Get originatingLeadJoin value
     * @return \StructType\OriginatingLeadSearchBasic|null
     */
    public function getOriginatingLeadJoin()
    {
        return $this->originatingLeadJoin;
    }
    /**
     * Set originatingLeadJoin value
     * @param \StructType\OriginatingLeadSearchBasic $originatingLeadJoin
     * @return \StructType\CustomerSearch
     */
    public function setOriginatingLeadJoin(\StructType\OriginatingLeadSearchBasic $originatingLeadJoin = null)
    {
        $this->originatingLeadJoin = $originatingLeadJoin;
        return $this;
    }
    /**
     * Get parentCustomerJoin value
     * @return \StructType\CustomerSearchBasic|null
     */
    public function getParentCustomerJoin()
    {
        return $this->parentCustomerJoin;
    }
    /**
     * Set parentCustomerJoin value
     * @param \StructType\CustomerSearchBasic $parentCustomerJoin
     * @return \StructType\CustomerSearch
     */
    public function setParentCustomerJoin(\StructType\CustomerSearchBasic $parentCustomerJoin = null)
    {
        $this->parentCustomerJoin = $parentCustomerJoin;
        return $this;
    }
    /**
     * Get partnerJoin value
     * @return \StructType\PartnerSearchBasic|null
     */
    public function getPartnerJoin()
    {
        return $this->partnerJoin;
    }
    /**
     * Set partnerJoin value
     * @param \StructType\PartnerSearchBasic $partnerJoin
     * @return \StructType\CustomerSearch
     */
    public function setPartnerJoin(\StructType\PartnerSearchBasic $partnerJoin = null)
    {
        $this->partnerJoin = $partnerJoin;
        return $this;
    }
    /**
     * Get paymentInstrumentJoin value
     * @return \StructType\PaymentInstrumentSearchBasic|null
     */
    public function getPaymentInstrumentJoin()
    {
        return $this->paymentInstrumentJoin;
    }
    /**
     * Set paymentInstrumentJoin value
     * @param \StructType\PaymentInstrumentSearchBasic $paymentInstrumentJoin
     * @return \StructType\CustomerSearch
     */
    public function setPaymentInstrumentJoin(\StructType\PaymentInstrumentSearchBasic $paymentInstrumentJoin = null)
    {
        $this->paymentInstrumentJoin = $paymentInstrumentJoin;
        return $this;
    }
    /**
     * Get pricingJoin value
     * @return \StructType\PricingSearchBasic|null
     */
    public function getPricingJoin()
    {
        return $this->pricingJoin;
    }
    /**
     * Set pricingJoin value
     * @param \StructType\PricingSearchBasic $pricingJoin
     * @return \StructType\CustomerSearch
     */
    public function setPricingJoin(\StructType\PricingSearchBasic $pricingJoin = null)
    {
        $this->pricingJoin = $pricingJoin;
        return $this;
    }
    /**
     * Get purchasedItemJoin value
     * @return \StructType\ItemSearchBasic|null
     */
    public function getPurchasedItemJoin()
    {
        return $this->purchasedItemJoin;
    }
    /**
     * Set purchasedItemJoin value
     * @param \StructType\ItemSearchBasic $purchasedItemJoin
     * @return \StructType\CustomerSearch
     */
    public function setPurchasedItemJoin(\StructType\ItemSearchBasic $purchasedItemJoin = null)
    {
        $this->purchasedItemJoin = $purchasedItemJoin;
        return $this;
    }
    /**
     * Get resourceAllocationJoin value
     * @return \StructType\ResourceAllocationSearchBasic|null
     */
    public function getResourceAllocationJoin()
    {
        return $this->resourceAllocationJoin;
    }
    /**
     * Set resourceAllocationJoin value
     * @param \StructType\ResourceAllocationSearchBasic $resourceAllocationJoin
     * @return \StructType\CustomerSearch
     */
    public function setResourceAllocationJoin(\StructType\ResourceAllocationSearchBasic $resourceAllocationJoin = null)
    {
        $this->resourceAllocationJoin = $resourceAllocationJoin;
        return $this;
    }
    /**
     * Get salesRepJoin value
     * @return \StructType\EmployeeSearchBasic|null
     */
    public function getSalesRepJoin()
    {
        return $this->salesRepJoin;
    }
    /**
     * Set salesRepJoin value
     * @param \StructType\EmployeeSearchBasic $salesRepJoin
     * @return \StructType\CustomerSearch
     */
    public function setSalesRepJoin(\StructType\EmployeeSearchBasic $salesRepJoin = null)
    {
        $this->salesRepJoin = $salesRepJoin;
        return $this;
    }
    /**
     * Get subCustomerJoin value
     * @return \StructType\CustomerSearchBasic|null
     */
    public function getSubCustomerJoin()
    {
        return $this->subCustomerJoin;
    }
    /**
     * Set subCustomerJoin value
     * @param \StructType\CustomerSearchBasic $subCustomerJoin
     * @return \StructType\CustomerSearch
     */
    public function setSubCustomerJoin(\StructType\CustomerSearchBasic $subCustomerJoin = null)
    {
        $this->subCustomerJoin = $subCustomerJoin;
        return $this;
    }
    /**
     * Get taskJoin value
     * @return \StructType\TaskSearchBasic|null
     */
    public function getTaskJoin()
    {
        return $this->taskJoin;
    }
    /**
     * Set taskJoin value
     * @param \StructType\TaskSearchBasic $taskJoin
     * @return \StructType\CustomerSearch
     */
    public function setTaskJoin(\StructType\TaskSearchBasic $taskJoin = null)
    {
        $this->taskJoin = $taskJoin;
        return $this;
    }
    /**
     * Get taxRegistrationJoin value
     * @return \StructType\EntityTaxRegistrationSearchBasic|null
     */
    public function getTaxRegistrationJoin()
    {
        return $this->taxRegistrationJoin;
    }
    /**
     * Set taxRegistrationJoin value
     * @param \StructType\EntityTaxRegistrationSearchBasic $taxRegistrationJoin
     * @return \StructType\CustomerSearch
     */
    public function setTaxRegistrationJoin(\StructType\EntityTaxRegistrationSearchBasic $taxRegistrationJoin = null)
    {
        $this->taxRegistrationJoin = $taxRegistrationJoin;
        return $this;
    }
    /**
     * Get timeJoin value
     * @return \StructType\TimeBillSearchBasic|null
     */
    public function getTimeJoin()
    {
        return $this->timeJoin;
    }
    /**
     * Set timeJoin value
     * @param \StructType\TimeBillSearchBasic $timeJoin
     * @return \StructType\CustomerSearch
     */
    public function setTimeJoin(\StructType\TimeBillSearchBasic $timeJoin = null)
    {
        $this->timeJoin = $timeJoin;
        return $this;
    }
    /**
     * Get topLevelParentJoin value
     * @return \StructType\CustomerSearchBasic|null
     */
    public function getTopLevelParentJoin()
    {
        return $this->topLevelParentJoin;
    }
    /**
     * Set topLevelParentJoin value
     * @param \StructType\CustomerSearchBasic $topLevelParentJoin
     * @return \StructType\CustomerSearch
     */
    public function setTopLevelParentJoin(\StructType\CustomerSearchBasic $topLevelParentJoin = null)
    {
        $this->topLevelParentJoin = $topLevelParentJoin;
        return $this;
    }
    /**
     * Get transactionJoin value
     * @return \StructType\TransactionSearchBasic|null
     */
    public function getTransactionJoin()
    {
        return $this->transactionJoin;
    }
    /**
     * Set transactionJoin value
     * @param \StructType\TransactionSearchBasic $transactionJoin
     * @return \StructType\CustomerSearch
     */
    public function setTransactionJoin(\StructType\TransactionSearchBasic $transactionJoin = null)
    {
        $this->transactionJoin = $transactionJoin;
        return $this;
    }
    /**
     * Get upsellItemJoin value
     * @return \StructType\ItemSearchBasic|null
     */
    public function getUpsellItemJoin()
    {
        return $this->upsellItemJoin;
    }
    /**
     * Set upsellItemJoin value
     * @param \StructType\ItemSearchBasic $upsellItemJoin
     * @return \StructType\CustomerSearch
     */
    public function setUpsellItemJoin(\StructType\ItemSearchBasic $upsellItemJoin = null)
    {
        $this->upsellItemJoin = $upsellItemJoin;
        return $this;
    }
    /**
     * Get userJoin value
     * @return \StructType\EmployeeSearchBasic|null
     */
    public function getUserJoin()
    {
        return $this->userJoin;
    }
    /**
     * Set userJoin value
     * @param \StructType\EmployeeSearchBasic $userJoin
     * @return \StructType\CustomerSearch
     */
    public function setUserJoin(\StructType\EmployeeSearchBasic $userJoin = null)
    {
        $this->userJoin = $userJoin;
        return $this;
    }
    /**
     * Get userNotesJoin value
     * @return \StructType\NoteSearchBasic|null
     */
    public function getUserNotesJoin()
    {
        return $this->userNotesJoin;
    }
    /**
     * Set userNotesJoin value
     * @param \StructType\NoteSearchBasic $userNotesJoin
     * @return \StructType\CustomerSearch
     */
    public function setUserNotesJoin(\StructType\NoteSearchBasic $userNotesJoin = null)
    {
        $this->userNotesJoin = $userNotesJoin;
        return $this;
    }
    /**
     * Get webSiteCategoryJoin value
     * @return \StructType\SiteCategorySearchBasic|null
     */
    public function getWebSiteCategoryJoin()
    {
        return $this->webSiteCategoryJoin;
    }
    /**
     * Set webSiteCategoryJoin value
     * @param \StructType\SiteCategorySearchBasic $webSiteCategoryJoin
     * @return \StructType\CustomerSearch
     */
    public function setWebSiteCategoryJoin(\StructType\SiteCategorySearchBasic $webSiteCategoryJoin = null)
    {
        $this->webSiteCategoryJoin = $webSiteCategoryJoin;
        return $this;
    }
    /**
     * Get webSiteItemJoin value
     * @return \StructType\ItemSearchBasic|null
     */
    public function getWebSiteItemJoin()
    {
        return $this->webSiteItemJoin;
    }
    /**
     * Set webSiteItemJoin value
     * @param \StructType\ItemSearchBasic $webSiteItemJoin
     * @return \StructType\CustomerSearch
     */
    public function setWebSiteItemJoin(\StructType\ItemSearchBasic $webSiteItemJoin = null)
    {
        $this->webSiteItemJoin = $webSiteItemJoin;
        return $this;
    }
    /**
     * Get customSearchJoin value
     * @return \StructType\CustomSearchJoin[]|null
     */
    public function getCustomSearchJoin()
    {
        return $this->customSearchJoin;
    }
    /**
     * This method is responsible for validating the values passed to the setCustomSearchJoin method
     * This method is willingly generated in order to preserve the one-line inline validation within the setCustomSearchJoin method
     * @param array $values
     * @return string A non-empty message if the values does not match the validation rules
     */
    public static function validateCustomSearchJoinForArrayConstraintsFromSetCustomSearchJoin(array $values = array())
    {
        $message = '';
        $invalidValues = [];
        foreach ($values as $customerSearchCustomSearchJoinItem) {
            // validation for constraint: itemType
            if (!$customerSearchCustomSearchJoinItem instanceof \StructType\CustomSearchJoin) {
                $invalidValues[] = is_object($customerSearchCustomSearchJoinItem) ? get_class($customerSearchCustomSearchJoinItem) : sprintf('%s(%s)', gettype($customerSearchCustomSearchJoinItem), var_export($customerSearchCustomSearchJoinItem, true));
            }
        }
        if (!empty($invalidValues)) {
            $message = sprintf('The customSearchJoin property can only contain items of type \StructType\CustomSearchJoin, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));
        }
        unset($invalidValues);
        return $message;
    }
    /**
     * Set customSearchJoin value
     * @throws \InvalidArgumentException
     * @param \StructType\CustomSearchJoin[] $customSearchJoin
     * @return \StructType\CustomerSearch
     */
    public function setCustomSearchJoin(array $customSearchJoin = array())
    {
        // validation for constraint: array
        if ('' !== ($customSearchJoinArrayErrorMessage = self::validateCustomSearchJoinForArrayConstraintsFromSetCustomSearchJoin($customSearchJoin))) {
            throw new \InvalidArgumentException($customSearchJoinArrayErrorMessage, __LINE__);
        }
        $this->customSearchJoin = $customSearchJoin;
        return $this;
    }
    /**
     * Add item to customSearchJoin value
     * @throws \InvalidArgumentException
     * @param \StructType\CustomSearchJoin $item
     * @return \StructType\CustomerSearch
     */
    public function addToCustomSearchJoin(\StructType\CustomSearchJoin $item)
    {
        // validation for constraint: itemType
        if (!$item instanceof \StructType\CustomSearchJoin) {
            throw new \InvalidArgumentException(sprintf('The customSearchJoin property can only contain items of type \StructType\CustomSearchJoin, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
        }
        $this->customSearchJoin[] = $item;
        return $this;
    }
}
