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

com.pulumi.azurenative.videoanalyzer.AccessPolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.videoanalyzer;

import com.pulumi.azurenative.videoanalyzer.enums.AccessPolicyRole;
import com.pulumi.azurenative.videoanalyzer.inputs.JwtAuthenticationArgs;
import com.pulumi.core.Either;
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 AccessPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final AccessPolicyArgs Empty = new AccessPolicyArgs();

    /**
     * The Access Policy name.
     * 
     */
    @Import(name="accessPolicyName")
    private @Nullable Output accessPolicyName;

    /**
     * @return The Access Policy name.
     * 
     */
    public Optional> accessPolicyName() {
        return Optional.ofNullable(this.accessPolicyName);
    }

    /**
     * The Azure Video Analyzer account name.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The Azure Video Analyzer account name.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * Authentication method to be used when validating client API access.
     * 
     */
    @Import(name="authentication")
    private @Nullable Output authentication;

    /**
     * @return Authentication method to be used when validating client API access.
     * 
     */
    public Optional> authentication() {
        return Optional.ofNullable(this.authentication);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Defines the access level granted by this policy.
     * 
     */
    @Import(name="role")
    private @Nullable Output> role;

    /**
     * @return Defines the access level granted by this policy.
     * 
     */
    public Optional>> role() {
        return Optional.ofNullable(this.role);
    }

    private AccessPolicyArgs() {}

    private AccessPolicyArgs(AccessPolicyArgs $) {
        this.accessPolicyName = $.accessPolicyName;
        this.accountName = $.accountName;
        this.authentication = $.authentication;
        this.resourceGroupName = $.resourceGroupName;
        this.role = $.role;
    }

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

    public static final class Builder {
        private AccessPolicyArgs $;

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

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

        /**
         * @param accessPolicyName The Access Policy name.
         * 
         * @return builder
         * 
         */
        public Builder accessPolicyName(@Nullable Output accessPolicyName) {
            $.accessPolicyName = accessPolicyName;
            return this;
        }

        /**
         * @param accessPolicyName The Access Policy name.
         * 
         * @return builder
         * 
         */
        public Builder accessPolicyName(String accessPolicyName) {
            return accessPolicyName(Output.of(accessPolicyName));
        }

        /**
         * @param accountName The Azure Video Analyzer account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The Azure Video Analyzer account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param authentication Authentication method to be used when validating client API access.
         * 
         * @return builder
         * 
         */
        public Builder authentication(@Nullable Output authentication) {
            $.authentication = authentication;
            return this;
        }

        /**
         * @param authentication Authentication method to be used when validating client API access.
         * 
         * @return builder
         * 
         */
        public Builder authentication(JwtAuthenticationArgs authentication) {
            return authentication(Output.of(authentication));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param role Defines the access level granted by this policy.
         * 
         * @return builder
         * 
         */
        public Builder role(@Nullable Output> role) {
            $.role = role;
            return this;
        }

        /**
         * @param role Defines the access level granted by this policy.
         * 
         * @return builder
         * 
         */
        public Builder role(Either role) {
            return role(Output.of(role));
        }

        /**
         * @param role Defines the access level granted by this policy.
         * 
         * @return builder
         * 
         */
        public Builder role(String role) {
            return role(Either.ofLeft(role));
        }

        /**
         * @param role Defines the access level granted by this policy.
         * 
         * @return builder
         * 
         */
        public Builder role(AccessPolicyRole role) {
            return role(Either.ofRight(role));
        }

        public AccessPolicyArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("AccessPolicyArgs", "accountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AccessPolicyArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy