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

com.azure.resourcemanager.managementgroups.fluent.models.CreateOrUpdateSettingsProperties 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.fluent.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The properties of the request to create or update Management Group settings. */
@Fluent
public final class CreateOrUpdateSettingsProperties {
    /*
     * Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true,
     * user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order
     * to create new Groups directly under the root. This will prevent new users from creating new Management Groups,
     * unless they are given access.
     */
    @JsonProperty(value = "requireAuthorizationForGroupCreation")
    private Boolean requireAuthorizationForGroupCreation;

    /*
     * Settings that sets the default Management Group under which new subscriptions get added in this tenant. For
     * example, /providers/Microsoft.Management/managementGroups/defaultGroup
     */
    @JsonProperty(value = "defaultManagementGroup")
    private String defaultManagementGroup;

    /** Creates an instance of CreateOrUpdateSettingsProperties class. */
    public CreateOrUpdateSettingsProperties() {
    }

    /**
     * Get the requireAuthorizationForGroupCreation property: Indicates whether RBAC access is required upon group
     * creation under the root Management Group. If set to true, user will require
     * Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new
     * Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are
     * given access.
     *
     * @return the requireAuthorizationForGroupCreation value.
     */
    public Boolean requireAuthorizationForGroupCreation() {
        return this.requireAuthorizationForGroupCreation;
    }

    /**
     * Set the requireAuthorizationForGroupCreation property: Indicates whether RBAC access is required upon group
     * creation under the root Management Group. If set to true, user will require
     * Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new
     * Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are
     * given access.
     *
     * @param requireAuthorizationForGroupCreation the requireAuthorizationForGroupCreation value to set.
     * @return the CreateOrUpdateSettingsProperties object itself.
     */
    public CreateOrUpdateSettingsProperties withRequireAuthorizationForGroupCreation(
        Boolean requireAuthorizationForGroupCreation) {
        this.requireAuthorizationForGroupCreation = requireAuthorizationForGroupCreation;
        return this;
    }

    /**
     * Get the defaultManagementGroup property: Settings that sets the default Management Group under which new
     * subscriptions get added in this tenant. For example,
     * /providers/Microsoft.Management/managementGroups/defaultGroup.
     *
     * @return the defaultManagementGroup value.
     */
    public String defaultManagementGroup() {
        return this.defaultManagementGroup;
    }

    /**
     * Set the defaultManagementGroup property: Settings that sets the default Management Group under which new
     * subscriptions get added in this tenant. For example,
     * /providers/Microsoft.Management/managementGroups/defaultGroup.
     *
     * @param defaultManagementGroup the defaultManagementGroup value to set.
     * @return the CreateOrUpdateSettingsProperties object itself.
     */
    public CreateOrUpdateSettingsProperties withDefaultManagementGroup(String defaultManagementGroup) {
        this.defaultManagementGroup = defaultManagementGroup;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy