<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UpsertRequest StructType
 * @subpackage Structs
 */
class UpsertRequest extends AbstractStructBase
{
    /**
     * The record
     * @var \StructType\Record
     */
    public $record;
    /**
     * Constructor method for UpsertRequest
     * @uses UpsertRequest::setRecord()
     * @param \StructType\Record $record
     */
    public function __construct(\StructType\Record $record = null)
    {
        $this
            ->setRecord($record);
    }
    /**
     * Get record value
     * @return \StructType\Record|null
     */
    public function getRecord()
    {
        return $this->record;
    }
    /**
     * Set record value
     * @param \StructType\Record $record
     * @return \StructType\UpsertRequest
     */
    public function setRecord(\StructType\Record $record = null)
    {
        $this->record = $record;
        return $this;
    }
}
