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

package com.azure.resourcemanager.cognitiveservices.implementation;

import com.azure.resourcemanager.cognitiveservices.fluent.models.DomainAvailabilityInner;
import com.azure.resourcemanager.cognitiveservices.models.DomainAvailability;

public final class DomainAvailabilityImpl implements DomainAvailability {
    private DomainAvailabilityInner innerObject;

    private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager;

    DomainAvailabilityImpl(
        DomainAvailabilityInner innerObject,
        com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

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

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

    private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() {
        return this.serviceManager;
    }
}
