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

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

There is a newer version: 6.5.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.github.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RepositoryPullRequestState Empty = new RepositoryPullRequestState();

    /**
     * Name of the branch serving as the base of the Pull Request.
     * 
     */
    @Import(name="baseRef")
    private @Nullable Output baseRef;

    /**
     * @return Name of the branch serving as the base of the Pull Request.
     * 
     */
    public Optional> baseRef() {
        return Optional.ofNullable(this.baseRef);
    }

    /**
     * Name of the base repository to retrieve the Pull Requests from.
     * 
     */
    @Import(name="baseRepository")
    private @Nullable Output baseRepository;

    /**
     * @return Name of the base repository to retrieve the Pull Requests from.
     * 
     */
    public Optional> baseRepository() {
        return Optional.ofNullable(this.baseRepository);
    }

    /**
     * Head commit SHA of the Pull Request base.
     * 
     */
    @Import(name="baseSha")
    private @Nullable Output baseSha;

    /**
     * @return Head commit SHA of the Pull Request base.
     * 
     */
    public Optional> baseSha() {
        return Optional.ofNullable(this.baseSha);
    }

    /**
     * Body of the Pull Request.
     * 
     */
    @Import(name="body")
    private @Nullable Output body;

    /**
     * @return Body of the Pull Request.
     * 
     */
    public Optional> body() {
        return Optional.ofNullable(this.body);
    }

    /**
     * Indicates Whether this Pull Request is a draft.
     * 
     */
    @Import(name="draft")
    private @Nullable Output draft;

    /**
     * @return Indicates Whether this Pull Request is a draft.
     * 
     */
    public Optional> draft() {
        return Optional.ofNullable(this.draft);
    }

    /**
     * Name of the branch serving as the head of the Pull Request.
     * 
     */
    @Import(name="headRef")
    private @Nullable Output headRef;

    /**
     * @return Name of the branch serving as the head of the Pull Request.
     * 
     */
    public Optional> headRef() {
        return Optional.ofNullable(this.headRef);
    }

    /**
     * Head commit SHA of the Pull Request head.
     * 
     */
    @Import(name="headSha")
    private @Nullable Output headSha;

    /**
     * @return Head commit SHA of the Pull Request head.
     * 
     */
    public Optional> headSha() {
        return Optional.ofNullable(this.headSha);
    }

    /**
     * List of label names set on the Pull Request.
     * 
     */
    @Import(name="labels")
    private @Nullable Output> labels;

    /**
     * @return List of label names set on the Pull Request.
     * 
     */
    public Optional>> labels() {
        return Optional.ofNullable(this.labels);
    }

    /**
     * Controls whether the base repository maintainers can modify the Pull Request. Default: false.
     * 
     */
    @Import(name="maintainerCanModify")
    private @Nullable Output maintainerCanModify;

    /**
     * @return Controls whether the base repository maintainers can modify the Pull Request. Default: false.
     * 
     */
    public Optional> maintainerCanModify() {
        return Optional.ofNullable(this.maintainerCanModify);
    }

    /**
     * The number of the Pull Request within the repository.
     * 
     */
    @Import(name="number")
    private @Nullable Output number;

    /**
     * @return The number of the Pull Request within the repository.
     * 
     */
    public Optional> number() {
        return Optional.ofNullable(this.number);
    }

    /**
     * Unix timestamp indicating the Pull Request creation time.
     * 
     */
    @Import(name="openedAt")
    private @Nullable Output openedAt;

    /**
     * @return Unix timestamp indicating the Pull Request creation time.
     * 
     */
    public Optional> openedAt() {
        return Optional.ofNullable(this.openedAt);
    }

    /**
     * GitHub login of the user who opened the Pull Request.
     * 
     */
    @Import(name="openedBy")
    private @Nullable Output openedBy;

    /**
     * @return GitHub login of the user who opened the Pull Request.
     * 
     */
    public Optional> openedBy() {
        return Optional.ofNullable(this.openedBy);
    }

    /**
     * Owner of the repository. If not provided, the provider's default owner is used.
     * 
     */
    @Import(name="owner")
    private @Nullable Output owner;

    /**
     * @return Owner of the repository. If not provided, the provider's default owner is used.
     * 
     */
    public Optional> owner() {
        return Optional.ofNullable(this.owner);
    }

    /**
     * the current Pull Request state - can be "open", "closed" or "merged".
     * 
     */
    @Import(name="state")
    private @Nullable Output state;

    /**
     * @return the current Pull Request state - can be "open", "closed" or "merged".
     * 
     */
    public Optional> state() {
        return Optional.ofNullable(this.state);
    }

    /**
     * The title of the Pull Request.
     * 
     */
    @Import(name="title")
    private @Nullable Output title;

    /**
     * @return The title of the Pull Request.
     * 
     */
    public Optional> title() {
        return Optional.ofNullable(this.title);
    }

    /**
     * The timestamp of the last Pull Request update.
     * 
     */
    @Import(name="updatedAt")
    private @Nullable Output updatedAt;

    /**
     * @return The timestamp of the last Pull Request update.
     * 
     */
    public Optional> updatedAt() {
        return Optional.ofNullable(this.updatedAt);
    }

    private RepositoryPullRequestState() {}

    private RepositoryPullRequestState(RepositoryPullRequestState $) {
        this.baseRef = $.baseRef;
        this.baseRepository = $.baseRepository;
        this.baseSha = $.baseSha;
        this.body = $.body;
        this.draft = $.draft;
        this.headRef = $.headRef;
        this.headSha = $.headSha;
        this.labels = $.labels;
        this.maintainerCanModify = $.maintainerCanModify;
        this.number = $.number;
        this.openedAt = $.openedAt;
        this.openedBy = $.openedBy;
        this.owner = $.owner;
        this.state = $.state;
        this.title = $.title;
        this.updatedAt = $.updatedAt;
    }

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

    public static final class Builder {
        private RepositoryPullRequestState $;

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

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

        /**
         * @param baseRef Name of the branch serving as the base of the Pull Request.
         * 
         * @return builder
         * 
         */
        public Builder baseRef(@Nullable Output baseRef) {
            $.baseRef = baseRef;
            return this;
        }

        /**
         * @param baseRef Name of the branch serving as the base of the Pull Request.
         * 
         * @return builder
         * 
         */
        public Builder baseRef(String baseRef) {
            return baseRef(Output.of(baseRef));
        }

        /**
         * @param baseRepository Name of the base repository to retrieve the Pull Requests from.
         * 
         * @return builder
         * 
         */
        public Builder baseRepository(@Nullable Output baseRepository) {
            $.baseRepository = baseRepository;
            return this;
        }

        /**
         * @param baseRepository Name of the base repository to retrieve the Pull Requests from.
         * 
         * @return builder
         * 
         */
        public Builder baseRepository(String baseRepository) {
            return baseRepository(Output.of(baseRepository));
        }

        /**
         * @param baseSha Head commit SHA of the Pull Request base.
         * 
         * @return builder
         * 
         */
        public Builder baseSha(@Nullable Output baseSha) {
            $.baseSha = baseSha;
            return this;
        }

        /**
         * @param baseSha Head commit SHA of the Pull Request base.
         * 
         * @return builder
         * 
         */
        public Builder baseSha(String baseSha) {
            return baseSha(Output.of(baseSha));
        }

        /**
         * @param body Body of the Pull Request.
         * 
         * @return builder
         * 
         */
        public Builder body(@Nullable Output body) {
            $.body = body;
            return this;
        }

        /**
         * @param body Body of the Pull Request.
         * 
         * @return builder
         * 
         */
        public Builder body(String body) {
            return body(Output.of(body));
        }

        /**
         * @param draft Indicates Whether this Pull Request is a draft.
         * 
         * @return builder
         * 
         */
        public Builder draft(@Nullable Output draft) {
            $.draft = draft;
            return this;
        }

        /**
         * @param draft Indicates Whether this Pull Request is a draft.
         * 
         * @return builder
         * 
         */
        public Builder draft(Boolean draft) {
            return draft(Output.of(draft));
        }

        /**
         * @param headRef Name of the branch serving as the head of the Pull Request.
         * 
         * @return builder
         * 
         */
        public Builder headRef(@Nullable Output headRef) {
            $.headRef = headRef;
            return this;
        }

        /**
         * @param headRef Name of the branch serving as the head of the Pull Request.
         * 
         * @return builder
         * 
         */
        public Builder headRef(String headRef) {
            return headRef(Output.of(headRef));
        }

        /**
         * @param headSha Head commit SHA of the Pull Request head.
         * 
         * @return builder
         * 
         */
        public Builder headSha(@Nullable Output headSha) {
            $.headSha = headSha;
            return this;
        }

        /**
         * @param headSha Head commit SHA of the Pull Request head.
         * 
         * @return builder
         * 
         */
        public Builder headSha(String headSha) {
            return headSha(Output.of(headSha));
        }

        /**
         * @param labels List of label names set on the Pull Request.
         * 
         * @return builder
         * 
         */
        public Builder labels(@Nullable Output> labels) {
            $.labels = labels;
            return this;
        }

        /**
         * @param labels List of label names set on the Pull Request.
         * 
         * @return builder
         * 
         */
        public Builder labels(List labels) {
            return labels(Output.of(labels));
        }

        /**
         * @param labels List of label names set on the Pull Request.
         * 
         * @return builder
         * 
         */
        public Builder labels(String... labels) {
            return labels(List.of(labels));
        }

        /**
         * @param maintainerCanModify Controls whether the base repository maintainers can modify the Pull Request. Default: false.
         * 
         * @return builder
         * 
         */
        public Builder maintainerCanModify(@Nullable Output maintainerCanModify) {
            $.maintainerCanModify = maintainerCanModify;
            return this;
        }

        /**
         * @param maintainerCanModify Controls whether the base repository maintainers can modify the Pull Request. Default: false.
         * 
         * @return builder
         * 
         */
        public Builder maintainerCanModify(Boolean maintainerCanModify) {
            return maintainerCanModify(Output.of(maintainerCanModify));
        }

        /**
         * @param number The number of the Pull Request within the repository.
         * 
         * @return builder
         * 
         */
        public Builder number(@Nullable Output number) {
            $.number = number;
            return this;
        }

        /**
         * @param number The number of the Pull Request within the repository.
         * 
         * @return builder
         * 
         */
        public Builder number(Integer number) {
            return number(Output.of(number));
        }

        /**
         * @param openedAt Unix timestamp indicating the Pull Request creation time.
         * 
         * @return builder
         * 
         */
        public Builder openedAt(@Nullable Output openedAt) {
            $.openedAt = openedAt;
            return this;
        }

        /**
         * @param openedAt Unix timestamp indicating the Pull Request creation time.
         * 
         * @return builder
         * 
         */
        public Builder openedAt(Integer openedAt) {
            return openedAt(Output.of(openedAt));
        }

        /**
         * @param openedBy GitHub login of the user who opened the Pull Request.
         * 
         * @return builder
         * 
         */
        public Builder openedBy(@Nullable Output openedBy) {
            $.openedBy = openedBy;
            return this;
        }

        /**
         * @param openedBy GitHub login of the user who opened the Pull Request.
         * 
         * @return builder
         * 
         */
        public Builder openedBy(String openedBy) {
            return openedBy(Output.of(openedBy));
        }

        /**
         * @param owner Owner of the repository. If not provided, the provider's default owner is used.
         * 
         * @return builder
         * 
         */
        public Builder owner(@Nullable Output owner) {
            $.owner = owner;
            return this;
        }

        /**
         * @param owner Owner of the repository. If not provided, the provider's default owner is used.
         * 
         * @return builder
         * 
         */
        public Builder owner(String owner) {
            return owner(Output.of(owner));
        }

        /**
         * @param state the current Pull Request state - can be "open", "closed" or "merged".
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output state) {
            $.state = state;
            return this;
        }

        /**
         * @param state the current Pull Request state - can be "open", "closed" or "merged".
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Output.of(state));
        }

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

        /**
         * @param title The title of the Pull Request.
         * 
         * @return builder
         * 
         */
        public Builder title(String title) {
            return title(Output.of(title));
        }

        /**
         * @param updatedAt The timestamp of the last Pull Request update.
         * 
         * @return builder
         * 
         */
        public Builder updatedAt(@Nullable Output updatedAt) {
            $.updatedAt = updatedAt;
            return this;
        }

        /**
         * @param updatedAt The timestamp of the last Pull Request update.
         * 
         * @return builder
         * 
         */
        public Builder updatedAt(Integer updatedAt) {
            return updatedAt(Output.of(updatedAt));
        }

        public RepositoryPullRequestState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy