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

com.pulumi.aws.codecatalyst.SourceRepositoryArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.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.aws.codecatalyst;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SourceRepositoryArgs Empty = new SourceRepositoryArgs();

    /**
     * The description of the project. This description will be displayed to all users of the project. We recommend providing a brief description of the project and its intended purpose.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the project. This description will be displayed to all users of the project. We recommend providing a brief description of the project and its intended purpose.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the source repository. For more information about name requirements, see [Quotas for source repositories](https://docs.aws.amazon.com/codecatalyst/latest/userguide/source-quotas.html).
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the source repository. For more information about name requirements, see [Quotas for source repositories](https://docs.aws.amazon.com/codecatalyst/latest/userguide/source-quotas.html).
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the project in the CodeCatalyst space.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="projectName", required=true)
    private Output projectName;

    /**
     * @return The name of the project in the CodeCatalyst space.
     * 
     * The following arguments are optional:
     * 
     */
    public Output projectName() {
        return this.projectName;
    }

    /**
     * The name of the CodeCatalyst space.
     * 
     */
    @Import(name="spaceName", required=true)
    private Output spaceName;

    /**
     * @return The name of the CodeCatalyst space.
     * 
     */
    public Output spaceName() {
        return this.spaceName;
    }

    private SourceRepositoryArgs() {}

    private SourceRepositoryArgs(SourceRepositoryArgs $) {
        this.description = $.description;
        this.name = $.name;
        this.projectName = $.projectName;
        this.spaceName = $.spaceName;
    }

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

    public static final class Builder {
        private SourceRepositoryArgs $;

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

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

        /**
         * @param description The description of the project. This description will be displayed to all users of the project. We recommend providing a brief description of the project and its intended purpose.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the project. This description will be displayed to all users of the project. We recommend providing a brief description of the project and its intended purpose.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name The name of the source repository. For more information about name requirements, see [Quotas for source repositories](https://docs.aws.amazon.com/codecatalyst/latest/userguide/source-quotas.html).
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the source repository. For more information about name requirements, see [Quotas for source repositories](https://docs.aws.amazon.com/codecatalyst/latest/userguide/source-quotas.html).
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param projectName The name of the project in the CodeCatalyst space.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder projectName(Output projectName) {
            $.projectName = projectName;
            return this;
        }

        /**
         * @param projectName The name of the project in the CodeCatalyst space.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder projectName(String projectName) {
            return projectName(Output.of(projectName));
        }

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

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

        public SourceRepositoryArgs build() {
            if ($.projectName == null) {
                throw new MissingRequiredPropertyException("SourceRepositoryArgs", "projectName");
            }
            if ($.spaceName == null) {
                throw new MissingRequiredPropertyException("SourceRepositoryArgs", "spaceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy