// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.deviceupdate.implementation;

import com.azure.resourcemanager.deviceupdate.fluent.models.CheckNameAvailabilityResponseInner;
import com.azure.resourcemanager.deviceupdate.models.CheckNameAvailabilityReason;
import com.azure.resourcemanager.deviceupdate.models.CheckNameAvailabilityResponse;

public final class CheckNameAvailabilityResponseImpl implements CheckNameAvailabilityResponse {
    private CheckNameAvailabilityResponseInner innerObject;

    private final com.azure.resourcemanager.deviceupdate.DeviceUpdateManager serviceManager;

    CheckNameAvailabilityResponseImpl(
        CheckNameAvailabilityResponseInner innerObject,
        com.azure.resourcemanager.deviceupdate.DeviceUpdateManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public Boolean nameAvailable() {
        return this.innerModel().nameAvailable();
    }

    public CheckNameAvailabilityReason reason() {
        return this.innerModel().reason();
    }

    public String message() {
        return this.innerModel().message();
    }

    public CheckNameAvailabilityResponseInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.deviceupdate.DeviceUpdateManager manager() {
        return this.serviceManager;
    }
}
