<?php

declare(strict_types=1);

namespace Drupal\netforum\xWeb\Generated\StructType;

use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetQuery StructType
 * @subpackage Structs
 * @author Drupal NetForum xWeb PHP SDK Generator
 * @version 1.0.0
 * @license GPL-2.0-or-later https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * @see https://www.drupal.org/project/netforum
 * @generatedDate 2025-08-05
 * @generatedRelease Official
 * @generatedNetForumVersion 37
 */
#[\AllowDynamicProperties]
class GetQuery extends AbstractStructBase
{
    /**
     * The szWhereClause
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $szWhereClause = null;
    /**
     * The szOrderBy
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string|null
     */
    protected ?string $szOrderBy = null;
    /**
     * The szObjectName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: true
     * @var string|null
     */
    protected ?string $szObjectName;
    /**
     * The szColumnList
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: true
     * @var string|null
     */
    protected ?string $szColumnList;
    /**
     * Constructor method for GetQuery
     * @uses GetQuery::setSzWhereClause()
     * @uses GetQuery::setSzOrderBy()
     * @uses GetQuery::setSzObjectName()
     * @uses GetQuery::setSzColumnList()
     * @param string $szWhereClause
     * @param string $szOrderBy
     * @param string $szObjectName
     * @param string $szColumnList
     */
    public function __construct(?string $szWhereClause = null, ?string $szOrderBy = null, ?string $szObjectName, ?string $szColumnList)
    {
        $this
            ->setSzWhereClause($szWhereClause)
            ->setSzOrderBy($szOrderBy)
            ->setSzObjectName($szObjectName)
            ->setSzColumnList($szColumnList);
    }
    /**
     * Get szWhereClause value
     * @return string|null
     */
    public function getSzWhereClause(): ?string
    {
        return $this->szWhereClause;
    }
    /**
     * Set szWhereClause value
     * @param string $szWhereClause
     * @return \Drupal\netforum\xWeb\Generated\StructType\GetQuery
     */
    public function setSzWhereClause(?string $szWhereClause = null): self
    {
        // validation for constraint: string
        if (!is_null($szWhereClause) && !is_string($szWhereClause)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($szWhereClause, true), gettype($szWhereClause)), __LINE__);
        }
        $this->szWhereClause = $szWhereClause;
        
        return $this;
    }
    /**
     * Get szOrderBy value
     * @return string|null
     */
    public function getSzOrderBy(): ?string
    {
        return $this->szOrderBy;
    }
    /**
     * Set szOrderBy value
     * @param string $szOrderBy
     * @return \Drupal\netforum\xWeb\Generated\StructType\GetQuery
     */
    public function setSzOrderBy(?string $szOrderBy = null): self
    {
        // validation for constraint: string
        if (!is_null($szOrderBy) && !is_string($szOrderBy)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($szOrderBy, true), gettype($szOrderBy)), __LINE__);
        }
        $this->szOrderBy = $szOrderBy;
        
        return $this;
    }
    /**
     * Get szObjectName value
     * @return string|null
     */
    public function getSzObjectName(): ?string
    {
        return $this->szObjectName;
    }
    /**
     * Set szObjectName value
     * @param string $szObjectName
     * @return \Drupal\netforum\xWeb\Generated\StructType\GetQuery
     */
    public function setSzObjectName(?string $szObjectName): self
    {
        // validation for constraint: string
        if (!is_null($szObjectName) && !is_string($szObjectName)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($szObjectName, true), gettype($szObjectName)), __LINE__);
        }
        $this->szObjectName = $szObjectName;
        
        return $this;
    }
    /**
     * Get szColumnList value
     * @return string|null
     */
    public function getSzColumnList(): ?string
    {
        return $this->szColumnList;
    }
    /**
     * Set szColumnList value
     * @param string $szColumnList
     * @return \Drupal\netforum\xWeb\Generated\StructType\GetQuery
     */
    public function setSzColumnList(?string $szColumnList): self
    {
        // validation for constraint: string
        if (!is_null($szColumnList) && !is_string($szColumnList)) {
            throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($szColumnList, true), gettype($szColumnList)), __LINE__);
        }
        $this->szColumnList = $szColumnList;
        
        return $this;
    }
}
