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

package com.azure.resourcemanager.operationsmanagement.implementation;

import com.azure.resourcemanager.operationsmanagement.fluent.models.ManagementAssociationInner;
import com.azure.resourcemanager.operationsmanagement.models.ManagementAssociation;
import com.azure.resourcemanager.operationsmanagement.models.ManagementAssociationProperties;

public final class ManagementAssociationImpl implements ManagementAssociation {
    private ManagementAssociationInner innerObject;

    private final com.azure.resourcemanager.operationsmanagement.OperationsManagementManager serviceManager;

    ManagementAssociationImpl(
        ManagementAssociationInner innerObject,
        com.azure.resourcemanager.operationsmanagement.OperationsManagementManager 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 ManagementAssociationProperties properties() {
        return this.innerModel().properties();
    }

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

    private com.azure.resourcemanager.operationsmanagement.OperationsManagementManager manager() {
        return this.serviceManager;
    }
}
