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

com.pulumi.azurenative.awsconnector.inputs.SourceAuthArgs 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.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.SourceAuthTypeEnumValueArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of SourceAuth
 * 
 */
public final class SourceAuthArgs extends com.pulumi.resources.ResourceArgs {

    public static final SourceAuthArgs Empty = new SourceAuthArgs();

    /**
     * <p>The resource value that applies to the specified authorization type.</p>
     * 
     */
    @Import(name="resource")
    private @Nullable Output resource;

    /**
     * @return <p>The resource value that applies to the specified authorization type.</p>
     * 
     */
    public Optional> resource() {
        return Optional.ofNullable(this.resource);
    }

    /**
     * <p>The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.</p>
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return <p>The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.</p>
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private SourceAuthArgs() {}

    private SourceAuthArgs(SourceAuthArgs $) {
        this.resource = $.resource;
        this.type = $.type;
    }

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

    public static final class Builder {
        private SourceAuthArgs $;

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

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

        /**
         * @param resource <p>The resource value that applies to the specified authorization type.</p>
         * 
         * @return builder
         * 
         */
        public Builder resource(@Nullable Output resource) {
            $.resource = resource;
            return this;
        }

        /**
         * @param resource <p>The resource value that applies to the specified authorization type.</p>
         * 
         * @return builder
         * 
         */
        public Builder resource(String resource) {
            return resource(Output.of(resource));
        }

        /**
         * @param type <p>The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.</p>
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type <p>The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.</p>
         * 
         * @return builder
         * 
         */
        public Builder type(SourceAuthTypeEnumValueArgs type) {
            return type(Output.of(type));
        }

        public SourceAuthArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy