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

com.pulumi.azure.apimanagement.inputs.BackendProxyArgs 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.apimanagement.inputs;

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

    public static final BackendProxyArgs Empty = new BackendProxyArgs();

    /**
     * The password to connect to the proxy server.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return The password to connect to the proxy server.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * The URL of the proxy server.
     * 
     */
    @Import(name="url", required=true)
    private Output url;

    /**
     * @return The URL of the proxy server.
     * 
     */
    public Output url() {
        return this.url;
    }

    /**
     * The username to connect to the proxy server.
     * 
     */
    @Import(name="username", required=true)
    private Output username;

    /**
     * @return The username to connect to the proxy server.
     * 
     */
    public Output username() {
        return this.username;
    }

    private BackendProxyArgs() {}

    private BackendProxyArgs(BackendProxyArgs $) {
        this.password = $.password;
        this.url = $.url;
        this.username = $.username;
    }

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

    public static final class Builder {
        private BackendProxyArgs $;

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

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

        /**
         * @param password The password to connect to the proxy server.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The password to connect to the proxy server.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param url The URL of the proxy server.
         * 
         * @return builder
         * 
         */
        public Builder url(Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url The URL of the proxy server.
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

        /**
         * @param username The username to connect to the proxy server.
         * 
         * @return builder
         * 
         */
        public Builder username(Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username The username to connect to the proxy server.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public BackendProxyArgs build() {
            if ($.url == null) {
                throw new MissingRequiredPropertyException("BackendProxyArgs", "url");
            }
            if ($.username == null) {
                throw new MissingRequiredPropertyException("BackendProxyArgs", "username");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy