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

com.pulumi.azurenative.datafactory.inputs.WebAnonymousAuthenticationArgs 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.datafactory.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;


/**
 * A WebLinkedService that uses anonymous authentication to communicate with an HTTP endpoint.
 * 
 */
public final class WebAnonymousAuthenticationArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebAnonymousAuthenticationArgs Empty = new WebAnonymousAuthenticationArgs();

    /**
     * Type of authentication used to connect to the web table source.
     * Expected value is 'Anonymous'.
     * 
     */
    @Import(name="authenticationType", required=true)
    private Output authenticationType;

    /**
     * @return Type of authentication used to connect to the web table source.
     * Expected value is 'Anonymous'.
     * 
     */
    public Output authenticationType() {
        return this.authenticationType;
    }

    /**
     * The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="url", required=true)
    private Output url;

    /**
     * @return The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType string).
     * 
     */
    public Output url() {
        return this.url;
    }

    private WebAnonymousAuthenticationArgs() {}

    private WebAnonymousAuthenticationArgs(WebAnonymousAuthenticationArgs $) {
        this.authenticationType = $.authenticationType;
        this.url = $.url;
    }

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

    public static final class Builder {
        private WebAnonymousAuthenticationArgs $;

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

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

        /**
         * @param authenticationType Type of authentication used to connect to the web table source.
         * Expected value is 'Anonymous'.
         * 
         * @return builder
         * 
         */
        public Builder authenticationType(Output authenticationType) {
            $.authenticationType = authenticationType;
            return this;
        }

        /**
         * @param authenticationType Type of authentication used to connect to the web table source.
         * Expected value is 'Anonymous'.
         * 
         * @return builder
         * 
         */
        public Builder authenticationType(String authenticationType) {
            return authenticationType(Output.of(authenticationType));
        }

        /**
         * @param url The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder url(Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder url(Object url) {
            return url(Output.of(url));
        }

        public WebAnonymousAuthenticationArgs build() {
            $.authenticationType = Codegen.stringProp("authenticationType").output().arg($.authenticationType).require();
            if ($.url == null) {
                throw new MissingRequiredPropertyException("WebAnonymousAuthenticationArgs", "url");
            }
            return $;
        }
    }

}