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

com.pulumi.azurenative.network.ExpressRouteCircuitAuthorizationArgs 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.network;

import com.pulumi.azurenative.network.enums.AuthorizationUseStatus;
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 ExpressRouteCircuitAuthorizationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExpressRouteCircuitAuthorizationArgs Empty = new ExpressRouteCircuitAuthorizationArgs();

    /**
     * The authorization key.
     * 
     */
    @Import(name="authorizationKey")
    private @Nullable Output authorizationKey;

    /**
     * @return The authorization key.
     * 
     */
    public Optional> authorizationKey() {
        return Optional.ofNullable(this.authorizationKey);
    }

    /**
     * The name of the authorization.
     * 
     */
    @Import(name="authorizationName")
    private @Nullable Output authorizationName;

    /**
     * @return The name of the authorization.
     * 
     */
    public Optional> authorizationName() {
        return Optional.ofNullable(this.authorizationName);
    }

    /**
     * The authorization use status.
     * 
     */
    @Import(name="authorizationUseStatus")
    private @Nullable Output> authorizationUseStatus;

    /**
     * @return The authorization use status.
     * 
     */
    public Optional>> authorizationUseStatus() {
        return Optional.ofNullable(this.authorizationUseStatus);
    }

    /**
     * The name of the express route circuit.
     * 
     */
    @Import(name="circuitName", required=true)
    private Output circuitName;

    /**
     * @return The name of the express route circuit.
     * 
     */
    public Output circuitName() {
        return this.circuitName;
    }

    /**
     * Resource ID.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Resource ID.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * The name of the resource that is unique within a resource group. This name can be used to access the resource.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the resource that is unique within a resource group. This name can be used to access the resource.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

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

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

    private ExpressRouteCircuitAuthorizationArgs() {}

    private ExpressRouteCircuitAuthorizationArgs(ExpressRouteCircuitAuthorizationArgs $) {
        this.authorizationKey = $.authorizationKey;
        this.authorizationName = $.authorizationName;
        this.authorizationUseStatus = $.authorizationUseStatus;
        this.circuitName = $.circuitName;
        this.id = $.id;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private ExpressRouteCircuitAuthorizationArgs $;

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

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

        /**
         * @param authorizationKey The authorization key.
         * 
         * @return builder
         * 
         */
        public Builder authorizationKey(@Nullable Output authorizationKey) {
            $.authorizationKey = authorizationKey;
            return this;
        }

        /**
         * @param authorizationKey The authorization key.
         * 
         * @return builder
         * 
         */
        public Builder authorizationKey(String authorizationKey) {
            return authorizationKey(Output.of(authorizationKey));
        }

        /**
         * @param authorizationName The name of the authorization.
         * 
         * @return builder
         * 
         */
        public Builder authorizationName(@Nullable Output authorizationName) {
            $.authorizationName = authorizationName;
            return this;
        }

        /**
         * @param authorizationName The name of the authorization.
         * 
         * @return builder
         * 
         */
        public Builder authorizationName(String authorizationName) {
            return authorizationName(Output.of(authorizationName));
        }

        /**
         * @param authorizationUseStatus The authorization use status.
         * 
         * @return builder
         * 
         */
        public Builder authorizationUseStatus(@Nullable Output> authorizationUseStatus) {
            $.authorizationUseStatus = authorizationUseStatus;
            return this;
        }

        /**
         * @param authorizationUseStatus The authorization use status.
         * 
         * @return builder
         * 
         */
        public Builder authorizationUseStatus(Either authorizationUseStatus) {
            return authorizationUseStatus(Output.of(authorizationUseStatus));
        }

        /**
         * @param authorizationUseStatus The authorization use status.
         * 
         * @return builder
         * 
         */
        public Builder authorizationUseStatus(String authorizationUseStatus) {
            return authorizationUseStatus(Either.ofLeft(authorizationUseStatus));
        }

        /**
         * @param authorizationUseStatus The authorization use status.
         * 
         * @return builder
         * 
         */
        public Builder authorizationUseStatus(AuthorizationUseStatus authorizationUseStatus) {
            return authorizationUseStatus(Either.ofRight(authorizationUseStatus));
        }

        /**
         * @param circuitName The name of the express route circuit.
         * 
         * @return builder
         * 
         */
        public Builder circuitName(Output circuitName) {
            $.circuitName = circuitName;
            return this;
        }

        /**
         * @param circuitName The name of the express route circuit.
         * 
         * @return builder
         * 
         */
        public Builder circuitName(String circuitName) {
            return circuitName(Output.of(circuitName));
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy