<?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 CloudDiscoveryConfigurationInput
 * This object contains information about the CloudDiscovery Server. * @property null|AccountInputInputType $account = null The account with cloud keys of the server.
 * @property bool $changed The variable showing that the cloud account enabled has changed.
 * @property null|CloudApiKeyInputInputType $cloudApiKey = null The CloudApiKey for the Account.
 * @property bool $enabled The variable showing that the cloud account is enabled.
 * @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 $serverAddress = null The serverAddress of the local server.
 * @property null|string $serverName = null The name of the local server.
 * @property null|int $serverPort = null The port of the local server.
 */
final class CloudDiscoveryConfigurationInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'account') {
            return new AccountInputInputType($value);
        }

        if ($name === 'cloudApiKey') {
            return new CloudApiKeyInputInputType($value);
        }

        return $value;
    }
}