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

package com.azure.resourcemanager.managementgroups.implementation;

import com.azure.resourcemanager.managementgroups.fluent.models.SubscriptionUnderManagementGroupInner;
import com.azure.resourcemanager.managementgroups.models.DescendantParentGroupInfo;
import com.azure.resourcemanager.managementgroups.models.SubscriptionUnderManagementGroup;

public final class SubscriptionUnderManagementGroupImpl implements SubscriptionUnderManagementGroup {
    private SubscriptionUnderManagementGroupInner innerObject;

    private final com.azure.resourcemanager.managementgroups.ManagementGroupsManager serviceManager;

    SubscriptionUnderManagementGroupImpl(
        SubscriptionUnderManagementGroupInner innerObject,
        com.azure.resourcemanager.managementgroups.ManagementGroupsManager 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 tenant() {
        return this.innerModel().tenant();
    }

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

    public DescendantParentGroupInfo parent() {
        return this.innerModel().parent();
    }

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

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

    private com.azure.resourcemanager.managementgroups.ManagementGroupsManager manager() {
        return this.serviceManager;
    }
}
