<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\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 CloudFoundryAccessInput
 * This object contains information about the CloudFoundry instance access information. * @property null|AccountInputInputType $account = null The CloudFoundry service account access token when a token based access is used
 * @property null|string $comment = null A CloudFoundry access configuration comment
 * @property null|bool $enabled = null Is the discovery for this cluster 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 $ipOrHostname = null The CloudFoundry cluster IP or hostname when ServiceAccount token access is used..
 * @property null|string $name = null The CloudFoundry access configuration name
 * @property null|int $port = null The CloudFoundry cluster TCP/IP port when ServiceAccount token access is used. Otherwise, the port is part of the .conf file.
 */
final class CloudFoundryAccessInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}