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

com.pulumi.azure.management.LockArgs 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.management;

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

    public static final LockArgs Empty = new LockArgs();

    /**
     * Specifies the Level to be used for this Lock. Possible values are `CanNotDelete` and `ReadOnly`. Changing this forces a new resource to be created.
     * 
     * > **Note:** `CanNotDelete` means authorized users are able to read and modify the resources, but not delete. `ReadOnly` means authorized users can only read from a resource, but they can't modify or delete it.
     * 
     */
    @Import(name="lockLevel", required=true)
    private Output lockLevel;

    /**
     * @return Specifies the Level to be used for this Lock. Possible values are `CanNotDelete` and `ReadOnly`. Changing this forces a new resource to be created.
     * 
     * > **Note:** `CanNotDelete` means authorized users are able to read and modify the resources, but not delete. `ReadOnly` means authorized users can only read from a resource, but they can't modify or delete it.
     * 
     */
    public Output lockLevel() {
        return this.lockLevel;
    }

    /**
     * Specifies the name of the Management Lock. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of the Management Lock. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="notes")
    private @Nullable Output notes;

    /**
     * @return Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created.
     * 
     */
    public Optional> notes() {
        return Optional.ofNullable(this.notes);
    }

    /**
     * Specifies the scope at which the Management Lock should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="scope", required=true)
    private Output scope;

    /**
     * @return Specifies the scope at which the Management Lock should be created. Changing this forces a new resource to be created.
     * 
     */
    public Output scope() {
        return this.scope;
    }

    private LockArgs() {}

    private LockArgs(LockArgs $) {
        this.lockLevel = $.lockLevel;
        this.name = $.name;
        this.notes = $.notes;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private LockArgs $;

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

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

        /**
         * @param lockLevel Specifies the Level to be used for this Lock. Possible values are `CanNotDelete` and `ReadOnly`. Changing this forces a new resource to be created.
         * 
         * > **Note:** `CanNotDelete` means authorized users are able to read and modify the resources, but not delete. `ReadOnly` means authorized users can only read from a resource, but they can't modify or delete it.
         * 
         * @return builder
         * 
         */
        public Builder lockLevel(Output lockLevel) {
            $.lockLevel = lockLevel;
            return this;
        }

        /**
         * @param lockLevel Specifies the Level to be used for this Lock. Possible values are `CanNotDelete` and `ReadOnly`. Changing this forces a new resource to be created.
         * 
         * > **Note:** `CanNotDelete` means authorized users are able to read and modify the resources, but not delete. `ReadOnly` means authorized users can only read from a resource, but they can't modify or delete it.
         * 
         * @return builder
         * 
         */
        public Builder lockLevel(String lockLevel) {
            return lockLevel(Output.of(lockLevel));
        }

        /**
         * @param name Specifies the name of the Management Lock. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the Management Lock. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param notes Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder notes(@Nullable Output notes) {
            $.notes = notes;
            return this;
        }

        /**
         * @param notes Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder notes(String notes) {
            return notes(Output.of(notes));
        }

        /**
         * @param scope Specifies the scope at which the Management Lock should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder scope(Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope Specifies the scope at which the Management Lock should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        public LockArgs build() {
            if ($.lockLevel == null) {
                throw new MissingRequiredPropertyException("LockArgs", "lockLevel");
            }
            if ($.scope == null) {
                throw new MissingRequiredPropertyException("LockArgs", "scope");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy