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

com.pulumi.azure.pim.ActiveRoleAssignmentArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.pim;

import com.pulumi.azure.pim.inputs.ActiveRoleAssignmentScheduleArgs;
import com.pulumi.azure.pim.inputs.ActiveRoleAssignmentTicketArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ActiveRoleAssignmentArgs Empty = new ActiveRoleAssignmentArgs();

    /**
     * The justification for the role assignment. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="justification")
    private @Nullable Output justification;

    /**
     * @return The justification for the role assignment. Changing this forces a new resource to be created.
     * 
     */
    public Optional> justification() {
        return Optional.ofNullable(this.justification);
    }

    /**
     * Object ID of the principal for this role assignment. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="principalId", required=true)
    private Output principalId;

    /**
     * @return Object ID of the principal for this role assignment. Changing this forces a new resource to be created.
     * 
     */
    public Output principalId() {
        return this.principalId;
    }

    /**
     * The role definition ID for this role assignment. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="roleDefinitionId", required=true)
    private Output roleDefinitionId;

    /**
     * @return The role definition ID for this role assignment. Changing this forces a new resource to be created.
     * 
     */
    public Output roleDefinitionId() {
        return this.roleDefinitionId;
    }

    /**
     * A `schedule` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="schedule")
    private @Nullable Output schedule;

    /**
     * @return A `schedule` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    public Optional> schedule() {
        return Optional.ofNullable(this.schedule);
    }

    /**
     * The scope for this role assignment, should be a valid resource ID. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="scope", required=true)
    private Output scope;

    /**
     * @return The scope for this role assignment, should be a valid resource ID. Changing this forces a new resource to be created.
     * 
     */
    public Output scope() {
        return this.scope;
    }

    /**
     * A `ticket` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="ticket")
    private @Nullable Output ticket;

    /**
     * @return A `ticket` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    public Optional> ticket() {
        return Optional.ofNullable(this.ticket);
    }

    private ActiveRoleAssignmentArgs() {}

    private ActiveRoleAssignmentArgs(ActiveRoleAssignmentArgs $) {
        this.justification = $.justification;
        this.principalId = $.principalId;
        this.roleDefinitionId = $.roleDefinitionId;
        this.schedule = $.schedule;
        this.scope = $.scope;
        this.ticket = $.ticket;
    }

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

    public static final class Builder {
        private ActiveRoleAssignmentArgs $;

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

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

        /**
         * @param justification The justification for the role assignment. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder justification(@Nullable Output justification) {
            $.justification = justification;
            return this;
        }

        /**
         * @param justification The justification for the role assignment. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder justification(String justification) {
            return justification(Output.of(justification));
        }

        /**
         * @param principalId Object ID of the principal for this role assignment. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder principalId(Output principalId) {
            $.principalId = principalId;
            return this;
        }

        /**
         * @param principalId Object ID of the principal for this role assignment. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder principalId(String principalId) {
            return principalId(Output.of(principalId));
        }

        /**
         * @param roleDefinitionId The role definition ID for this role assignment. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder roleDefinitionId(Output roleDefinitionId) {
            $.roleDefinitionId = roleDefinitionId;
            return this;
        }

        /**
         * @param roleDefinitionId The role definition ID for this role assignment. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder roleDefinitionId(String roleDefinitionId) {
            return roleDefinitionId(Output.of(roleDefinitionId));
        }

        /**
         * @param schedule A `schedule` block as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder schedule(@Nullable Output schedule) {
            $.schedule = schedule;
            return this;
        }

        /**
         * @param schedule A `schedule` block as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder schedule(ActiveRoleAssignmentScheduleArgs schedule) {
            return schedule(Output.of(schedule));
        }

        /**
         * @param scope The scope for this role assignment, should be a valid resource ID. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder scope(Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The scope for this role assignment, should be a valid resource ID. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        /**
         * @param ticket A `ticket` block as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder ticket(@Nullable Output ticket) {
            $.ticket = ticket;
            return this;
        }

        /**
         * @param ticket A `ticket` block as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder ticket(ActiveRoleAssignmentTicketArgs ticket) {
            return ticket(Output.of(ticket));
        }

        public ActiveRoleAssignmentArgs build() {
            if ($.principalId == null) {
                throw new MissingRequiredPropertyException("ActiveRoleAssignmentArgs", "principalId");
            }
            if ($.roleDefinitionId == null) {
                throw new MissingRequiredPropertyException("ActiveRoleAssignmentArgs", "roleDefinitionId");
            }
            if ($.scope == null) {
                throw new MissingRequiredPropertyException("ActiveRoleAssignmentArgs", "scope");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy