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

com.pulumi.azure.pim.inputs.ActiveRoleAssignmentState 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.inputs;

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 java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ActiveRoleAssignmentState Empty = new ActiveRoleAssignmentState();

    /**
     * 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")
    private @Nullable Output principalId;

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

    /**
     * Type of principal to which the role will be assigned.
     * 
     */
    @Import(name="principalType")
    private @Nullable Output principalType;

    /**
     * @return Type of principal to which the role will be assigned.
     * 
     */
    public Optional> principalType() {
        return Optional.ofNullable(this.principalType);
    }

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

    /**
     * @return The role definition ID for this role assignment. Changing this forces a new resource to be created.
     * 
     */
    public Optional> roleDefinitionId() {
        return Optional.ofNullable(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")
    private @Nullable 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 Optional> scope() {
        return Optional.ofNullable(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 ActiveRoleAssignmentState() {}

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

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

    public static final class Builder {
        private ActiveRoleAssignmentState $;

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

        public Builder(ActiveRoleAssignmentState defaults) {
            $ = new ActiveRoleAssignmentState(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(@Nullable 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 principalType Type of principal to which the role will be assigned.
         * 
         * @return builder
         * 
         */
        public Builder principalType(@Nullable Output principalType) {
            $.principalType = principalType;
            return this;
        }

        /**
         * @param principalType Type of principal to which the role will be assigned.
         * 
         * @return builder
         * 
         */
        public Builder principalType(String principalType) {
            return principalType(Output.of(principalType));
        }

        /**
         * @param roleDefinitionId The role definition ID for this role assignment. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder roleDefinitionId(@Nullable 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(@Nullable 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 ActiveRoleAssignmentState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy