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

package com.azure.resourcemanager.resourcehealth.implementation;

import com.azure.resourcemanager.resourcehealth.fluent.models.AvailabilityStatusInner;
import com.azure.resourcemanager.resourcehealth.models.AvailabilityStatus;
import com.azure.resourcemanager.resourcehealth.models.AvailabilityStatusProperties;

public final class AvailabilityStatusImpl implements AvailabilityStatus {
    private AvailabilityStatusInner innerObject;

    private final com.azure.resourcemanager.resourcehealth.ResourceHealthManager serviceManager;

    AvailabilityStatusImpl(
        AvailabilityStatusInner innerObject,
        com.azure.resourcemanager.resourcehealth.ResourceHealthManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

    public AvailabilityStatusProperties properties() {
        return this.innerModel().properties();
    }

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

    private com.azure.resourcemanager.resourcehealth.ResourceHealthManager manager() {
        return this.serviceManager;
    }
}
