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

com.pulumi.azurenative.videoanalyzer.inputs.UnsecuredEndpointArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.inputs;

import com.pulumi.azurenative.videoanalyzer.inputs.SecureIotDeviceRemoteTunnelArgs;
import com.pulumi.azurenative.videoanalyzer.inputs.UsernamePasswordCredentialsArgs;
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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Unsecured endpoint describes an endpoint that the pipeline can connect to over clear transport (no encryption in transit).
 * 
 */
public final class UnsecuredEndpointArgs extends com.pulumi.resources.ResourceArgs {

    public static final UnsecuredEndpointArgs Empty = new UnsecuredEndpointArgs();

    /**
     * Credentials to be presented to the endpoint.
     * 
     */
    @Import(name="credentials", required=true)
    private Output credentials;

    /**
     * @return Credentials to be presented to the endpoint.
     * 
     */
    public Output credentials() {
        return this.credentials;
    }

    /**
     * Describes the tunnel through which Video Analyzer can connect to the endpoint URL. This is an optional property, typically used when the endpoint is behind a firewall.
     * 
     */
    @Import(name="tunnel")
    private @Nullable Output tunnel;

    /**
     * @return Describes the tunnel through which Video Analyzer can connect to the endpoint URL. This is an optional property, typically used when the endpoint is behind a firewall.
     * 
     */
    public Optional> tunnel() {
        return Optional.ofNullable(this.tunnel);
    }

    /**
     * The discriminator for derived types.
     * Expected value is '#Microsoft.VideoAnalyzer.UnsecuredEndpoint'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The discriminator for derived types.
     * Expected value is '#Microsoft.VideoAnalyzer.UnsecuredEndpoint'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * The endpoint URL for Video Analyzer to connect to.
     * 
     */
    @Import(name="url", required=true)
    private Output url;

    /**
     * @return The endpoint URL for Video Analyzer to connect to.
     * 
     */
    public Output url() {
        return this.url;
    }

    private UnsecuredEndpointArgs() {}

    private UnsecuredEndpointArgs(UnsecuredEndpointArgs $) {
        this.credentials = $.credentials;
        this.tunnel = $.tunnel;
        this.type = $.type;
        this.url = $.url;
    }

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

    public static final class Builder {
        private UnsecuredEndpointArgs $;

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

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

        /**
         * @param credentials Credentials to be presented to the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder credentials(Output credentials) {
            $.credentials = credentials;
            return this;
        }

        /**
         * @param credentials Credentials to be presented to the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder credentials(UsernamePasswordCredentialsArgs credentials) {
            return credentials(Output.of(credentials));
        }

        /**
         * @param tunnel Describes the tunnel through which Video Analyzer can connect to the endpoint URL. This is an optional property, typically used when the endpoint is behind a firewall.
         * 
         * @return builder
         * 
         */
        public Builder tunnel(@Nullable Output tunnel) {
            $.tunnel = tunnel;
            return this;
        }

        /**
         * @param tunnel Describes the tunnel through which Video Analyzer can connect to the endpoint URL. This is an optional property, typically used when the endpoint is behind a firewall.
         * 
         * @return builder
         * 
         */
        public Builder tunnel(SecureIotDeviceRemoteTunnelArgs tunnel) {
            return tunnel(Output.of(tunnel));
        }

        /**
         * @param type The discriminator for derived types.
         * Expected value is '#Microsoft.VideoAnalyzer.UnsecuredEndpoint'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The discriminator for derived types.
         * Expected value is '#Microsoft.VideoAnalyzer.UnsecuredEndpoint'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param url The endpoint URL for Video Analyzer to connect to.
         * 
         * @return builder
         * 
         */
        public Builder url(Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url The endpoint URL for Video Analyzer to connect to.
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy