public async Task <Response <SessionHostData> > GetAsync(string subscriptionId, string resourceGroupName, string hostPoolName, string sessionHostName, CancellationToken cancellationToken = default)
        {
            if (subscriptionId == null)
            {
                throw new ArgumentNullException(nameof(subscriptionId));
            }
            if (resourceGroupName == null)
            {
                throw new ArgumentNullException(nameof(resourceGroupName));
            }
            if (hostPoolName == null)
            {
                throw new ArgumentNullException(nameof(hostPoolName));
            }
            if (sessionHostName == null)
            {
                throw new ArgumentNullException(nameof(sessionHostName));
            }

            using var message = CreateGetRequest(subscriptionId, resourceGroupName, hostPoolName, sessionHostName);
            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);

            switch (message.Response.Status)
            {
            case 200:
            {
                SessionHostData value = default;
                using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);

                value = SessionHostData.DeserializeSessionHostData(document.RootElement);
                return(Response.FromValue(value, message.Response));
            }
 internal SessionHostResource(ArmClient client, SessionHostData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }