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

com.pulumi.dbtcloud.ProjectRepositoryArgs 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.dbtcloud;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;


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

    public static final ProjectRepositoryArgs Empty = new ProjectRepositoryArgs();

    /**
     * Project ID
     * 
     */
    @Import(name="projectId", required=true)
    private Output projectId;

    /**
     * @return Project ID
     * 
     */
    public Output projectId() {
        return this.projectId;
    }

    /**
     * Repository ID
     * 
     */
    @Import(name="repositoryId", required=true)
    private Output repositoryId;

    /**
     * @return Repository ID
     * 
     */
    public Output repositoryId() {
        return this.repositoryId;
    }

    private ProjectRepositoryArgs() {}

    private ProjectRepositoryArgs(ProjectRepositoryArgs $) {
        this.projectId = $.projectId;
        this.repositoryId = $.repositoryId;
    }

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

    public static final class Builder {
        private ProjectRepositoryArgs $;

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

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

        /**
         * @param projectId Project ID
         * 
         * @return builder
         * 
         */
        public Builder projectId(Output projectId) {
            $.projectId = projectId;
            return this;
        }

        /**
         * @param projectId Project ID
         * 
         * @return builder
         * 
         */
        public Builder projectId(Integer projectId) {
            return projectId(Output.of(projectId));
        }

        /**
         * @param repositoryId Repository ID
         * 
         * @return builder
         * 
         */
        public Builder repositoryId(Output repositoryId) {
            $.repositoryId = repositoryId;
            return this;
        }

        /**
         * @param repositoryId Repository ID
         * 
         * @return builder
         * 
         */
        public Builder repositoryId(Integer repositoryId) {
            return repositoryId(Output.of(repositoryId));
        }

        public ProjectRepositoryArgs build() {
            if ($.projectId == null) {
                throw new MissingRequiredPropertyException("ProjectRepositoryArgs", "projectId");
            }
            if ($.repositoryId == null) {
                throw new MissingRequiredPropertyException("ProjectRepositoryArgs", "repositoryId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy