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

com.pulumi.azure.keyvault.inputs.ManagedHardwareSecurityModuleRoleDefinitionState 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.azure.keyvault.inputs.ManagedHardwareSecurityModuleRoleDefinitionPermissionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ManagedHardwareSecurityModuleRoleDefinitionState Empty = new ManagedHardwareSecurityModuleRoleDefinitionState();

    /**
     * Specifies a text description about this KeyVault Role Definition.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Specifies a text description about this KeyVault Role Definition.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    @Import(name="managedHsmId")
    private @Nullable Output managedHsmId;

    public Optional> managedHsmId() {
        return Optional.ofNullable(this.managedHsmId);
    }

    /**
     * The name which should be used for this KeyVault Role Definition. Changing this forces a new KeyVault Role Definition to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this KeyVault Role Definition. Changing this forces a new KeyVault Role Definition to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * One or more `permission` blocks as defined below.
     * 
     */
    @Import(name="permissions")
    private @Nullable Output> permissions;

    /**
     * @return One or more `permission` blocks as defined below.
     * 
     */
    public Optional>> permissions() {
        return Optional.ofNullable(this.permissions);
    }

    /**
     * The ID of the role definition resource without Key Vault base URL.
     * 
     */
    @Import(name="resourceManagerId")
    private @Nullable Output resourceManagerId;

    /**
     * @return The ID of the role definition resource without Key Vault base URL.
     * 
     */
    public Optional> resourceManagerId() {
        return Optional.ofNullable(this.resourceManagerId);
    }

    /**
     * Specify a name for this KeyVault Role Definition.
     * 
     */
    @Import(name="roleName")
    private @Nullable Output roleName;

    /**
     * @return Specify a name for this KeyVault Role Definition.
     * 
     */
    public Optional> roleName() {
        return Optional.ofNullable(this.roleName);
    }

    /**
     * The type of the role definition. Possible values are `AKVBuiltInRole` and `CustomRole`.
     * 
     */
    @Import(name="roleType")
    private @Nullable Output roleType;

    /**
     * @return The type of the role definition. Possible values are `AKVBuiltInRole` and `CustomRole`.
     * 
     */
    public Optional> roleType() {
        return Optional.ofNullable(this.roleType);
    }

    private ManagedHardwareSecurityModuleRoleDefinitionState() {}

    private ManagedHardwareSecurityModuleRoleDefinitionState(ManagedHardwareSecurityModuleRoleDefinitionState $) {
        this.description = $.description;
        this.managedHsmId = $.managedHsmId;
        this.name = $.name;
        this.permissions = $.permissions;
        this.resourceManagerId = $.resourceManagerId;
        this.roleName = $.roleName;
        this.roleType = $.roleType;
    }

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

    public static final class Builder {
        private ManagedHardwareSecurityModuleRoleDefinitionState $;

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

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

        /**
         * @param description Specifies a text description about this KeyVault Role Definition.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Specifies a text description about this KeyVault Role Definition.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        public Builder managedHsmId(@Nullable Output managedHsmId) {
            $.managedHsmId = managedHsmId;
            return this;
        }

        public Builder managedHsmId(String managedHsmId) {
            return managedHsmId(Output.of(managedHsmId));
        }

        /**
         * @param name The name which should be used for this KeyVault Role Definition. Changing this forces a new KeyVault Role Definition to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this KeyVault Role Definition. Changing this forces a new KeyVault Role Definition to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param permissions One or more `permission` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder permissions(@Nullable Output> permissions) {
            $.permissions = permissions;
            return this;
        }

        /**
         * @param permissions One or more `permission` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder permissions(List permissions) {
            return permissions(Output.of(permissions));
        }

        /**
         * @param permissions One or more `permission` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder permissions(ManagedHardwareSecurityModuleRoleDefinitionPermissionArgs... permissions) {
            return permissions(List.of(permissions));
        }

        /**
         * @param resourceManagerId The ID of the role definition resource without Key Vault base URL.
         * 
         * @return builder
         * 
         */
        public Builder resourceManagerId(@Nullable Output resourceManagerId) {
            $.resourceManagerId = resourceManagerId;
            return this;
        }

        /**
         * @param resourceManagerId The ID of the role definition resource without Key Vault base URL.
         * 
         * @return builder
         * 
         */
        public Builder resourceManagerId(String resourceManagerId) {
            return resourceManagerId(Output.of(resourceManagerId));
        }

        /**
         * @param roleName Specify a name for this KeyVault Role Definition.
         * 
         * @return builder
         * 
         */
        public Builder roleName(@Nullable Output roleName) {
            $.roleName = roleName;
            return this;
        }

        /**
         * @param roleName Specify a name for this KeyVault Role Definition.
         * 
         * @return builder
         * 
         */
        public Builder roleName(String roleName) {
            return roleName(Output.of(roleName));
        }

        /**
         * @param roleType The type of the role definition. Possible values are `AKVBuiltInRole` and `CustomRole`.
         * 
         * @return builder
         * 
         */
        public Builder roleType(@Nullable Output roleType) {
            $.roleType = roleType;
            return this;
        }

        /**
         * @param roleType The type of the role definition. Possible values are `AKVBuiltInRole` and `CustomRole`.
         * 
         * @return builder
         * 
         */
        public Builder roleType(String roleType) {
            return roleType(Output.of(roleType));
        }

        public ManagedHardwareSecurityModuleRoleDefinitionState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy