<?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 AWSDeviceRegionAssignmentInput
 * The device aws assignment is mapping table for device and aws region * @property null|AWSRegionInputInputType $awsRegion = null The device region.
 * @property null|ConnectorStateEnum $state = null The AWSDeviceRegionAssignment state.
 */
final class AWSDeviceRegionAssignmentInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'awsRegion') {
            return new AWSRegionInputInputType($value);
        }

        if ($name === 'state') {
            return new ConnectorStateEnum($value);
        }

        return $value;
    }
}