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

com.pulumi.azurenative.authorization.inputs.GetManagementLockByScopePlainArgs Maven / Gradle / Ivy

// *** 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.azurenative.authorization.inputs;

import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetManagementLockByScopePlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetManagementLockByScopePlainArgs Empty = new GetManagementLockByScopePlainArgs();

    /**
     * The name of lock.
     * 
     */
    @Import(name="lockName", required=true)
    private String lockName;

    /**
     * @return The name of lock.
     * 
     */
    public String lockName() {
        return this.lockName;
    }

    /**
     * The scope for the lock.
     * 
     */
    @Import(name="scope", required=true)
    private String scope;

    /**
     * @return The scope for the lock.
     * 
     */
    public String scope() {
        return this.scope;
    }

    private GetManagementLockByScopePlainArgs() {}

    private GetManagementLockByScopePlainArgs(GetManagementLockByScopePlainArgs $) {
        this.lockName = $.lockName;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private GetManagementLockByScopePlainArgs $;

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

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

        /**
         * @param lockName The name of lock.
         * 
         * @return builder
         * 
         */
        public Builder lockName(String lockName) {
            $.lockName = lockName;
            return this;
        }

        /**
         * @param scope The scope for the lock.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            $.scope = scope;
            return this;
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy