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

com.pulumi.azure.keyvault.inputs.ManagedHardwareSecurityModuleRoleAssignmentState 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.keyvault.inputs;

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 ManagedHardwareSecurityModuleRoleAssignmentState extends com.pulumi.resources.ResourceArgs {

    public static final ManagedHardwareSecurityModuleRoleAssignmentState Empty = new ManagedHardwareSecurityModuleRoleAssignmentState();

    /**
     * The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created.
     * *
     * 
     */
    @Import(name="managedHsmId")
    private @Nullable Output managedHsmId;

    /**
     * @return The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created.
     * *
     * 
     */
    public Optional> managedHsmId() {
        return Optional.ofNullable(this.managedHsmId);
    }

    /**
     * The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    @Import(name="principalId")
    private @Nullable Output principalId;

    /**
     * @return The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    public Optional> principalId() {
        return Optional.ofNullable(this.principalId);
    }

    /**
     * (Deprecated) The resource id of created assignment resource.
     * 
     */
    @Import(name="resourceId")
    private @Nullable Output resourceId;

    /**
     * @return (Deprecated) The resource id of created assignment resource.
     * 
     */
    public Optional> resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

    /**
     * The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    @Import(name="roleDefinitionId")
    private @Nullable Output roleDefinitionId;

    /**
     * @return The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    public Optional> roleDefinitionId() {
        return Optional.ofNullable(this.roleDefinitionId);
    }

    /**
     * Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    @Import(name="scope")
    private @Nullable Output scope;

    /**
     * @return Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
     * 
     */
    public Optional> scope() {
        return Optional.ofNullable(this.scope);
    }

    private ManagedHardwareSecurityModuleRoleAssignmentState() {}

    private ManagedHardwareSecurityModuleRoleAssignmentState(ManagedHardwareSecurityModuleRoleAssignmentState $) {
        this.managedHsmId = $.managedHsmId;
        this.name = $.name;
        this.principalId = $.principalId;
        this.resourceId = $.resourceId;
        this.roleDefinitionId = $.roleDefinitionId;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private ManagedHardwareSecurityModuleRoleAssignmentState $;

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

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

        /**
         * @param managedHsmId The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created.
         * *
         * 
         * @return builder
         * 
         */
        public Builder managedHsmId(@Nullable Output managedHsmId) {
            $.managedHsmId = managedHsmId;
            return this;
        }

        /**
         * @param managedHsmId The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created.
         * *
         * 
         * @return builder
         * 
         */
        public Builder managedHsmId(String managedHsmId) {
            return managedHsmId(Output.of(managedHsmId));
        }

        /**
         * @param name The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param principalId The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder principalId(@Nullable Output principalId) {
            $.principalId = principalId;
            return this;
        }

        /**
         * @param principalId The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder principalId(String principalId) {
            return principalId(Output.of(principalId));
        }

        /**
         * @param resourceId (Deprecated) The resource id of created assignment resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(@Nullable Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId (Deprecated) The resource id of created assignment resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        /**
         * @param roleDefinitionId The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder roleDefinitionId(@Nullable Output roleDefinitionId) {
            $.roleDefinitionId = roleDefinitionId;
            return this;
        }

        /**
         * @param roleDefinitionId The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder roleDefinitionId(String roleDefinitionId) {
            return roleDefinitionId(Output.of(roleDefinitionId));
        }

        /**
         * @param scope Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        public ManagedHardwareSecurityModuleRoleAssignmentState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy