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

package com.azure.resourcemanager.azureadexternalidentities.implementation;

import com.azure.resourcemanager.azureadexternalidentities.fluent.models.NameAvailabilityResponseInner;
import com.azure.resourcemanager.azureadexternalidentities.models.NameAvailabilityReasonType;
import com.azure.resourcemanager.azureadexternalidentities.models.NameAvailabilityResponse;

public final class NameAvailabilityResponseImpl implements NameAvailabilityResponse {
    private NameAvailabilityResponseInner innerObject;

    private final com.azure.resourcemanager.azureadexternalidentities.ExternalIdentitiesConfigurationManager
        serviceManager;

    NameAvailabilityResponseImpl(
        NameAvailabilityResponseInner innerObject,
        com.azure.resourcemanager.azureadexternalidentities.ExternalIdentitiesConfigurationManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

    private com.azure.resourcemanager.azureadexternalidentities.ExternalIdentitiesConfigurationManager manager() {
        return this.serviceManager;
    }
}
