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

com.pulumi.github.inputs.RepositoryPagesArgs Maven / Gradle / Ivy

The 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.github.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.github.inputs.RepositoryPagesSourceArgs;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RepositoryPagesArgs Empty = new RepositoryPagesArgs();

    /**
     * The type of GitHub Pages site to build. Can be `legacy` or `workflow`. If you use `legacy` as build type you need to set the option `source`.
     * 
     */
    @Import(name="buildType")
    private @Nullable Output buildType;

    /**
     * @return The type of GitHub Pages site to build. Can be `legacy` or `workflow`. If you use `legacy` as build type you need to set the option `source`.
     * 
     */
    public Optional> buildType() {
        return Optional.ofNullable(this.buildType);
    }

    /**
     * The custom domain for the repository. This can only be set after the repository has been created.
     * 
     */
    @Import(name="cname")
    private @Nullable Output cname;

    /**
     * @return The custom domain for the repository. This can only be set after the repository has been created.
     * 
     */
    public Optional> cname() {
        return Optional.ofNullable(this.cname);
    }

    /**
     * Whether the rendered GitHub Pages site has a custom 404 page.
     * 
     */
    @Import(name="custom404")
    private @Nullable Output custom404;

    /**
     * @return Whether the rendered GitHub Pages site has a custom 404 page.
     * 
     */
    public Optional> custom404() {
        return Optional.ofNullable(this.custom404);
    }

    /**
     * The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
     * 
     */
    @Import(name="htmlUrl")
    private @Nullable Output htmlUrl;

    /**
     * @return The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
     * 
     */
    public Optional> htmlUrl() {
        return Optional.ofNullable(this.htmlUrl);
    }

    /**
     * The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.
     * 
     */
    @Import(name="source")
    private @Nullable Output source;

    /**
     * @return The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.
     * 
     */
    public Optional> source() {
        return Optional.ofNullable(this.source);
    }

    /**
     * The GitHub Pages site's build status e.g. `building` or `built`.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The GitHub Pages site's build status e.g. `building` or `built`.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    @Import(name="url")
    private @Nullable Output url;

    public Optional> url() {
        return Optional.ofNullable(this.url);
    }

    private RepositoryPagesArgs() {}

    private RepositoryPagesArgs(RepositoryPagesArgs $) {
        this.buildType = $.buildType;
        this.cname = $.cname;
        this.custom404 = $.custom404;
        this.htmlUrl = $.htmlUrl;
        this.source = $.source;
        this.status = $.status;
        this.url = $.url;
    }

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

    public static final class Builder {
        private RepositoryPagesArgs $;

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

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

        /**
         * @param buildType The type of GitHub Pages site to build. Can be `legacy` or `workflow`. If you use `legacy` as build type you need to set the option `source`.
         * 
         * @return builder
         * 
         */
        public Builder buildType(@Nullable Output buildType) {
            $.buildType = buildType;
            return this;
        }

        /**
         * @param buildType The type of GitHub Pages site to build. Can be `legacy` or `workflow`. If you use `legacy` as build type you need to set the option `source`.
         * 
         * @return builder
         * 
         */
        public Builder buildType(String buildType) {
            return buildType(Output.of(buildType));
        }

        /**
         * @param cname The custom domain for the repository. This can only be set after the repository has been created.
         * 
         * @return builder
         * 
         */
        public Builder cname(@Nullable Output cname) {
            $.cname = cname;
            return this;
        }

        /**
         * @param cname The custom domain for the repository. This can only be set after the repository has been created.
         * 
         * @return builder
         * 
         */
        public Builder cname(String cname) {
            return cname(Output.of(cname));
        }

        /**
         * @param custom404 Whether the rendered GitHub Pages site has a custom 404 page.
         * 
         * @return builder
         * 
         */
        public Builder custom404(@Nullable Output custom404) {
            $.custom404 = custom404;
            return this;
        }

        /**
         * @param custom404 Whether the rendered GitHub Pages site has a custom 404 page.
         * 
         * @return builder
         * 
         */
        public Builder custom404(Boolean custom404) {
            return custom404(Output.of(custom404));
        }

        /**
         * @param htmlUrl The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
         * 
         * @return builder
         * 
         */
        public Builder htmlUrl(@Nullable Output htmlUrl) {
            $.htmlUrl = htmlUrl;
            return this;
        }

        /**
         * @param htmlUrl The absolute URL (including scheme) of the rendered GitHub Pages site e.g. `https://username.github.io`.
         * 
         * @return builder
         * 
         */
        public Builder htmlUrl(String htmlUrl) {
            return htmlUrl(Output.of(htmlUrl));
        }

        /**
         * @param source The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.
         * 
         * @return builder
         * 
         */
        public Builder source(@Nullable Output source) {
            $.source = source;
            return this;
        }

        /**
         * @param source The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.
         * 
         * @return builder
         * 
         */
        public Builder source(RepositoryPagesSourceArgs source) {
            return source(Output.of(source));
        }

        /**
         * @param status The GitHub Pages site's build status e.g. `building` or `built`.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The GitHub Pages site's build status e.g. `building` or `built`.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        public Builder url(@Nullable Output url) {
            $.url = url;
            return this;
        }

        public Builder url(String url) {
            return url(Output.of(url));
        }

        public RepositoryPagesArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy