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

com.pulumi.github.outputs.RepositoryPagesSource 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.github.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RepositoryPagesSource {
    /**
     * @return The repository branch used to publish the site's source files. (i.e. `main` or `gh-pages`.
     * 
     */
    private String branch;
    /**
     * @return The repository directory from which the site publishes (Default: `/`).
     * 
     */
    private @Nullable String path;

    private RepositoryPagesSource() {}
    /**
     * @return The repository branch used to publish the site's source files. (i.e. `main` or `gh-pages`.
     * 
     */
    public String branch() {
        return this.branch;
    }
    /**
     * @return The repository directory from which the site publishes (Default: `/`).
     * 
     */
    public Optional path() {
        return Optional.ofNullable(this.path);
    }

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

    public static Builder builder(RepositoryPagesSource defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String branch;
        private @Nullable String path;
        public Builder() {}
        public Builder(RepositoryPagesSource defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.branch = defaults.branch;
    	      this.path = defaults.path;
        }

        @CustomType.Setter
        public Builder branch(String branch) {
            this.branch = Objects.requireNonNull(branch);
            return this;
        }
        @CustomType.Setter
        public Builder path(@Nullable String path) {
            this.path = path;
            return this;
        }
        public RepositoryPagesSource build() {
            final var o = new RepositoryPagesSource();
            o.branch = branch;
            o.path = path;
            return o;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy