<?php

declare (strict_types=1);
namespace idoit\Module\SyneticsJdisc\Graphql\Schema\Model;

use Axtiva\FlexibleGraphql\Type\InputType;

/**
 * This code is @generated by axtiva/flexible-graphql-php do not edit it
 * PHP representation of graphql type AWSRegionInput
 * The Region from Amazon AWS. * @property null|string $id = null The internal id this entity. Note that the id might change when the entity gets deleted and recreated.
 * @property null|string $name = null The region name.
 * @property null|string $regionId = null The region id.
 * @property null|TenantInputInputType $tenant = null The tenant for the region.
 */
final class AWSRegionInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'tenant') {
            return new TenantInputInputType($value);
        }

        return $value;
    }
}