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

com.pulumi.azure.management.inputs.GroupPolicyAssignmentIdentityArgs Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.management.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GroupPolicyAssignmentIdentityArgs extends com.pulumi.resources.ResourceArgs {

    public static final GroupPolicyAssignmentIdentityArgs Empty = new GroupPolicyAssignmentIdentityArgs();

    /**
     * A list of User Managed Identity IDs which should be assigned to the Policy Definition.
     * 
     * > **NOTE:** This is required when `type` is set to `UserAssigned`.
     * 
     */
    @Import(name="identityIds")
    private @Nullable Output> identityIds;

    /**
     * @return A list of User Managed Identity IDs which should be assigned to the Policy Definition.
     * 
     * > **NOTE:** This is required when `type` is set to `UserAssigned`.
     * 
     */
    public Optional>> identityIds() {
        return Optional.ofNullable(this.identityIds);
    }

    /**
     * The Principal ID of the Policy Assignment for this Management Group.
     * 
     */
    @Import(name="principalId")
    private @Nullable Output principalId;

    /**
     * @return The Principal ID of the Policy Assignment for this Management Group.
     * 
     */
    public Optional> principalId() {
        return Optional.ofNullable(this.principalId);
    }

    /**
     * The Tenant ID of the Policy Assignment for this Management Group.
     * 
     */
    @Import(name="tenantId")
    private @Nullable Output tenantId;

    /**
     * @return The Tenant ID of the Policy Assignment for this Management Group.
     * 
     */
    public Optional> tenantId() {
        return Optional.ofNullable(this.tenantId);
    }

    /**
     * The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.
     * 
     */
    public Output type() {
        return this.type;
    }

    private GroupPolicyAssignmentIdentityArgs() {}

    private GroupPolicyAssignmentIdentityArgs(GroupPolicyAssignmentIdentityArgs $) {
        this.identityIds = $.identityIds;
        this.principalId = $.principalId;
        this.tenantId = $.tenantId;
        this.type = $.type;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(GroupPolicyAssignmentIdentityArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GroupPolicyAssignmentIdentityArgs $;

        public Builder() {
            $ = new GroupPolicyAssignmentIdentityArgs();
        }

        public Builder(GroupPolicyAssignmentIdentityArgs defaults) {
            $ = new GroupPolicyAssignmentIdentityArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param identityIds A list of User Managed Identity IDs which should be assigned to the Policy Definition.
         * 
         * > **NOTE:** This is required when `type` is set to `UserAssigned`.
         * 
         * @return builder
         * 
         */
        public Builder identityIds(@Nullable Output> identityIds) {
            $.identityIds = identityIds;
            return this;
        }

        /**
         * @param identityIds A list of User Managed Identity IDs which should be assigned to the Policy Definition.
         * 
         * > **NOTE:** This is required when `type` is set to `UserAssigned`.
         * 
         * @return builder
         * 
         */
        public Builder identityIds(List identityIds) {
            return identityIds(Output.of(identityIds));
        }

        /**
         * @param identityIds A list of User Managed Identity IDs which should be assigned to the Policy Definition.
         * 
         * > **NOTE:** This is required when `type` is set to `UserAssigned`.
         * 
         * @return builder
         * 
         */
        public Builder identityIds(String... identityIds) {
            return identityIds(List.of(identityIds));
        }

        /**
         * @param principalId The Principal ID of the Policy Assignment for this Management Group.
         * 
         * @return builder
         * 
         */
        public Builder principalId(@Nullable Output principalId) {
            $.principalId = principalId;
            return this;
        }

        /**
         * @param principalId The Principal ID of the Policy Assignment for this Management Group.
         * 
         * @return builder
         * 
         */
        public Builder principalId(String principalId) {
            return principalId(Output.of(principalId));
        }

        /**
         * @param tenantId The Tenant ID of the Policy Assignment for this Management Group.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(@Nullable Output tenantId) {
            $.tenantId = tenantId;
            return this;
        }

        /**
         * @param tenantId The Tenant ID of the Policy Assignment for this Management Group.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(String tenantId) {
            return tenantId(Output.of(tenantId));
        }

        /**
         * @param type The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The Type of Managed Identity which should be added to this Policy Definition. Possible values are `SystemAssigned` and `UserAssigned`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public GroupPolicyAssignmentIdentityArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("GroupPolicyAssignmentIdentityArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy