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

com.pulumi.azurenative.apimanagement.inputs.BackendProxyContractArgs 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.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;


/**
 * Details of the Backend WebProxy Server to use in the Request to Backend.
 * 
 */
public final class BackendProxyContractArgs extends com.pulumi.resources.ResourceArgs {

    public static final BackendProxyContractArgs Empty = new BackendProxyContractArgs();

    /**
     * Password to connect to the WebProxy Server
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return Password to connect to the WebProxy Server
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
     * 
     */
    @Import(name="url", required=true)
    private Output url;

    /**
     * @return WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
     * 
     */
    public Output url() {
        return this.url;
    }

    /**
     * Username to connect to the WebProxy server
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return Username to connect to the WebProxy server
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private BackendProxyContractArgs() {}

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

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

    public static final class Builder {
        private BackendProxyContractArgs $;

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

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

        /**
         * @param password Password to connect to the WebProxy Server
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password Password to connect to the WebProxy Server
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param url WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
         * 
         * @return builder
         * 
         */
        public Builder url(Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy