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

com.pulumi.azurenative.media.inputs.MediaGraphClearEndpointArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.media.inputs.MediaGraphUsernamePasswordCredentialsArgs;
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;


/**
 * An endpoint to connect to with no encryption in transit.
 * 
 */
public final class MediaGraphClearEndpointArgs extends com.pulumi.resources.ResourceArgs {

    public static final MediaGraphClearEndpointArgs Empty = new MediaGraphClearEndpointArgs();

    /**
     * Polymorphic credentials to present to the endpoint.
     * 
     */
    @Import(name="credentials")
    private @Nullable Output credentials;

    /**
     * @return Polymorphic credentials to present to the endpoint.
     * 
     */
    public Optional> credentials() {
        return Optional.ofNullable(this.credentials);
    }

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

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

    /**
     * Url for the endpoint.
     * 
     */
    @Import(name="url", required=true)
    private Output url;

    /**
     * @return Url for the endpoint.
     * 
     */
    public Output url() {
        return this.url;
    }

    private MediaGraphClearEndpointArgs() {}

    private MediaGraphClearEndpointArgs(MediaGraphClearEndpointArgs $) {
        this.credentials = $.credentials;
        this.odataType = $.odataType;
        this.url = $.url;
    }

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

    public static final class Builder {
        private MediaGraphClearEndpointArgs $;

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

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

        /**
         * @param credentials Polymorphic credentials to present to the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder credentials(@Nullable Output credentials) {
            $.credentials = credentials;
            return this;
        }

        /**
         * @param credentials Polymorphic credentials to present to the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder credentials(MediaGraphUsernamePasswordCredentialsArgs credentials) {
            return credentials(Output.of(credentials));
        }

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

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

        /**
         * @param url Url for the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder url(Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url Url for the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy