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

com.pulumi.azurenative.devtestlab.ArtifactSourceArgs 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.devtestlab;

import com.pulumi.azurenative.devtestlab.enums.EnableStatus;
import com.pulumi.azurenative.devtestlab.enums.SourceControlType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ArtifactSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final ArtifactSourceArgs Empty = new ArtifactSourceArgs();

    /**
     * The folder containing Azure Resource Manager templates.
     * 
     */
    @Import(name="armTemplateFolderPath")
    private @Nullable Output armTemplateFolderPath;

    /**
     * @return The folder containing Azure Resource Manager templates.
     * 
     */
    public Optional> armTemplateFolderPath() {
        return Optional.ofNullable(this.armTemplateFolderPath);
    }

    /**
     * The artifact source's branch reference.
     * 
     */
    @Import(name="branchRef")
    private @Nullable Output branchRef;

    /**
     * @return The artifact source's branch reference.
     * 
     */
    public Optional> branchRef() {
        return Optional.ofNullable(this.branchRef);
    }

    /**
     * The artifact source's display name.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return The artifact source's display name.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The folder containing artifacts.
     * 
     */
    @Import(name="folderPath")
    private @Nullable Output folderPath;

    /**
     * @return The folder containing artifacts.
     * 
     */
    public Optional> folderPath() {
        return Optional.ofNullable(this.folderPath);
    }

    /**
     * The name of the lab.
     * 
     */
    @Import(name="labName", required=true)
    private Output labName;

    /**
     * @return The name of the lab.
     * 
     */
    public Output labName() {
        return this.labName;
    }

    /**
     * The location of the resource.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The location of the resource.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of the artifact source.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the artifact source.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The security token to authenticate to the artifact source.
     * 
     */
    @Import(name="securityToken")
    private @Nullable Output securityToken;

    /**
     * @return The security token to authenticate to the artifact source.
     * 
     */
    public Optional> securityToken() {
        return Optional.ofNullable(this.securityToken);
    }

    /**
     * The artifact source's type.
     * 
     */
    @Import(name="sourceType")
    private @Nullable Output> sourceType;

    /**
     * @return The artifact source's type.
     * 
     */
    public Optional>> sourceType() {
        return Optional.ofNullable(this.sourceType);
    }

    /**
     * Indicates if the artifact source is enabled (values: Enabled, Disabled).
     * 
     */
    @Import(name="status")
    private @Nullable Output> status;

    /**
     * @return Indicates if the artifact source is enabled (values: Enabled, Disabled).
     * 
     */
    public Optional>> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * The tags of the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The tags of the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The artifact source's URI.
     * 
     */
    @Import(name="uri")
    private @Nullable Output uri;

    /**
     * @return The artifact source's URI.
     * 
     */
    public Optional> uri() {
        return Optional.ofNullable(this.uri);
    }

    private ArtifactSourceArgs() {}

    private ArtifactSourceArgs(ArtifactSourceArgs $) {
        this.armTemplateFolderPath = $.armTemplateFolderPath;
        this.branchRef = $.branchRef;
        this.displayName = $.displayName;
        this.folderPath = $.folderPath;
        this.labName = $.labName;
        this.location = $.location;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.securityToken = $.securityToken;
        this.sourceType = $.sourceType;
        this.status = $.status;
        this.tags = $.tags;
        this.uri = $.uri;
    }

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

    public static final class Builder {
        private ArtifactSourceArgs $;

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

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

        /**
         * @param armTemplateFolderPath The folder containing Azure Resource Manager templates.
         * 
         * @return builder
         * 
         */
        public Builder armTemplateFolderPath(@Nullable Output armTemplateFolderPath) {
            $.armTemplateFolderPath = armTemplateFolderPath;
            return this;
        }

        /**
         * @param armTemplateFolderPath The folder containing Azure Resource Manager templates.
         * 
         * @return builder
         * 
         */
        public Builder armTemplateFolderPath(String armTemplateFolderPath) {
            return armTemplateFolderPath(Output.of(armTemplateFolderPath));
        }

        /**
         * @param branchRef The artifact source's branch reference.
         * 
         * @return builder
         * 
         */
        public Builder branchRef(@Nullable Output branchRef) {
            $.branchRef = branchRef;
            return this;
        }

        /**
         * @param branchRef The artifact source's branch reference.
         * 
         * @return builder
         * 
         */
        public Builder branchRef(String branchRef) {
            return branchRef(Output.of(branchRef));
        }

        /**
         * @param displayName The artifact source's display name.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName The artifact source's display name.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param folderPath The folder containing artifacts.
         * 
         * @return builder
         * 
         */
        public Builder folderPath(@Nullable Output folderPath) {
            $.folderPath = folderPath;
            return this;
        }

        /**
         * @param folderPath The folder containing artifacts.
         * 
         * @return builder
         * 
         */
        public Builder folderPath(String folderPath) {
            return folderPath(Output.of(folderPath));
        }

        /**
         * @param labName The name of the lab.
         * 
         * @return builder
         * 
         */
        public Builder labName(Output labName) {
            $.labName = labName;
            return this;
        }

        /**
         * @param labName The name of the lab.
         * 
         * @return builder
         * 
         */
        public Builder labName(String labName) {
            return labName(Output.of(labName));
        }

        /**
         * @param location The location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name The name of the artifact source.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the artifact source.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param securityToken The security token to authenticate to the artifact source.
         * 
         * @return builder
         * 
         */
        public Builder securityToken(@Nullable Output securityToken) {
            $.securityToken = securityToken;
            return this;
        }

        /**
         * @param securityToken The security token to authenticate to the artifact source.
         * 
         * @return builder
         * 
         */
        public Builder securityToken(String securityToken) {
            return securityToken(Output.of(securityToken));
        }

        /**
         * @param sourceType The artifact source's type.
         * 
         * @return builder
         * 
         */
        public Builder sourceType(@Nullable Output> sourceType) {
            $.sourceType = sourceType;
            return this;
        }

        /**
         * @param sourceType The artifact source's type.
         * 
         * @return builder
         * 
         */
        public Builder sourceType(Either sourceType) {
            return sourceType(Output.of(sourceType));
        }

        /**
         * @param sourceType The artifact source's type.
         * 
         * @return builder
         * 
         */
        public Builder sourceType(String sourceType) {
            return sourceType(Either.ofLeft(sourceType));
        }

        /**
         * @param sourceType The artifact source's type.
         * 
         * @return builder
         * 
         */
        public Builder sourceType(SourceControlType sourceType) {
            return sourceType(Either.ofRight(sourceType));
        }

        /**
         * @param status Indicates if the artifact source is enabled (values: Enabled, Disabled).
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Indicates if the artifact source is enabled (values: Enabled, Disabled).
         * 
         * @return builder
         * 
         */
        public Builder status(Either status) {
            return status(Output.of(status));
        }

        /**
         * @param status Indicates if the artifact source is enabled (values: Enabled, Disabled).
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        /**
         * @param status Indicates if the artifact source is enabled (values: Enabled, Disabled).
         * 
         * @return builder
         * 
         */
        public Builder status(EnableStatus status) {
            return status(Either.ofRight(status));
        }

        /**
         * @param tags The tags of the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags The tags of the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param uri The artifact source's URI.
         * 
         * @return builder
         * 
         */
        public Builder uri(@Nullable Output uri) {
            $.uri = uri;
            return this;
        }

        /**
         * @param uri The artifact source's URI.
         * 
         * @return builder
         * 
         */
        public Builder uri(String uri) {
            return uri(Output.of(uri));
        }

        public ArtifactSourceArgs build() {
            if ($.labName == null) {
                throw new MissingRequiredPropertyException("ArtifactSourceArgs", "labName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ArtifactSourceArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy