All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.managementgroups.implementation.EntityInfoImpl Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for ManagementGroups Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Azure Management Groups API enables consolidation of multiple subscriptions/resources into an organizational hierarchy and centrally manage access control, policies, alerting and reporting for those resources. . Package tag package-2021-04.

There is a newer version: 1.0.0-beta.2
Show newest version
// 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.EntityInfoInner;
import com.azure.resourcemanager.managementgroups.models.EntityInfo;
import com.azure.resourcemanager.managementgroups.models.EntityParentGroupInfo;
import com.azure.resourcemanager.managementgroups.models.Permissions;
import java.util.Collections;
import java.util.List;

public final class EntityInfoImpl implements EntityInfo {
    private EntityInfoInner innerObject;

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

    EntityInfoImpl(
        EntityInfoInner innerObject,
        com.azure.resourcemanager.managementgroups.ManagementGroupsManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

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

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

    public Permissions permissions() {
        return this.innerModel().permissions();
    }

    public Permissions inheritedPermissions() {
        return this.innerModel().inheritedPermissions();
    }

    public Integer numberOfDescendants() {
        return this.innerModel().numberOfDescendants();
    }

    public Integer numberOfChildren() {
        return this.innerModel().numberOfChildren();
    }

    public Integer numberOfChildGroups() {
        return this.innerModel().numberOfChildGroups();
    }

    public List parentDisplayNameChain() {
        List inner = this.innerModel().parentDisplayNameChain();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public List parentNameChain() {
        List inner = this.innerModel().parentNameChain();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy