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

com.pulumi.gitlab.inputs.BranchCommitArgs 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.gitlab.inputs;

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


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

    public static final BranchCommitArgs Empty = new BranchCommitArgs();

    /**
     * The email of the author.
     * 
     */
    @Import(name="authorEmail")
    private @Nullable Output authorEmail;

    /**
     * @return The email of the author.
     * 
     */
    public Optional> authorEmail() {
        return Optional.ofNullable(this.authorEmail);
    }

    /**
     * The name of the author.
     * 
     */
    @Import(name="authorName")
    private @Nullable Output authorName;

    /**
     * @return The name of the author.
     * 
     */
    public Optional> authorName() {
        return Optional.ofNullable(this.authorName);
    }

    /**
     * The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
     * 
     */
    @Import(name="authoredDate")
    private @Nullable Output authoredDate;

    /**
     * @return The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
     * 
     */
    public Optional> authoredDate() {
        return Optional.ofNullable(this.authoredDate);
    }

    /**
     * The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
     * 
     */
    @Import(name="committedDate")
    private @Nullable Output committedDate;

    /**
     * @return The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
     * 
     */
    public Optional> committedDate() {
        return Optional.ofNullable(this.committedDate);
    }

    /**
     * The email of the user that committed.
     * 
     */
    @Import(name="committerEmail")
    private @Nullable Output committerEmail;

    /**
     * @return The email of the user that committed.
     * 
     */
    public Optional> committerEmail() {
        return Optional.ofNullable(this.committerEmail);
    }

    /**
     * The name of the user that committed.
     * 
     */
    @Import(name="committerName")
    private @Nullable Output committerName;

    /**
     * @return The name of the user that committed.
     * 
     */
    public Optional> committerName() {
        return Optional.ofNullable(this.committerName);
    }

    /**
     * The unique id assigned to the commit by Gitlab.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The unique id assigned to the commit by Gitlab.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * The commit message
     * 
     */
    @Import(name="message")
    private @Nullable Output message;

    /**
     * @return The commit message
     * 
     */
    public Optional> message() {
        return Optional.ofNullable(this.message);
    }

    /**
     * The id of the parents of the commit
     * 
     */
    @Import(name="parentIds")
    private @Nullable Output> parentIds;

    /**
     * @return The id of the parents of the commit
     * 
     */
    public Optional>> parentIds() {
        return Optional.ofNullable(this.parentIds);
    }

    /**
     * The short id assigned to the commit by Gitlab.
     * 
     */
    @Import(name="shortId")
    private @Nullable Output shortId;

    /**
     * @return The short id assigned to the commit by Gitlab.
     * 
     */
    public Optional> shortId() {
        return Optional.ofNullable(this.shortId);
    }

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

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

    private BranchCommitArgs() {}

    private BranchCommitArgs(BranchCommitArgs $) {
        this.authorEmail = $.authorEmail;
        this.authorName = $.authorName;
        this.authoredDate = $.authoredDate;
        this.committedDate = $.committedDate;
        this.committerEmail = $.committerEmail;
        this.committerName = $.committerName;
        this.id = $.id;
        this.message = $.message;
        this.parentIds = $.parentIds;
        this.shortId = $.shortId;
        this.title = $.title;
    }

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

    public static final class Builder {
        private BranchCommitArgs $;

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

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

        /**
         * @param authorEmail The email of the author.
         * 
         * @return builder
         * 
         */
        public Builder authorEmail(@Nullable Output authorEmail) {
            $.authorEmail = authorEmail;
            return this;
        }

        /**
         * @param authorEmail The email of the author.
         * 
         * @return builder
         * 
         */
        public Builder authorEmail(String authorEmail) {
            return authorEmail(Output.of(authorEmail));
        }

        /**
         * @param authorName The name of the author.
         * 
         * @return builder
         * 
         */
        public Builder authorName(@Nullable Output authorName) {
            $.authorName = authorName;
            return this;
        }

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

        /**
         * @param authoredDate The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
         * 
         * @return builder
         * 
         */
        public Builder authoredDate(@Nullable Output authoredDate) {
            $.authoredDate = authoredDate;
            return this;
        }

        /**
         * @param authoredDate The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
         * 
         * @return builder
         * 
         */
        public Builder authoredDate(String authoredDate) {
            return authoredDate(Output.of(authoredDate));
        }

        /**
         * @param committedDate The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
         * 
         * @return builder
         * 
         */
        public Builder committedDate(@Nullable Output committedDate) {
            $.committedDate = committedDate;
            return this;
        }

        /**
         * @param committedDate The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
         * 
         * @return builder
         * 
         */
        public Builder committedDate(String committedDate) {
            return committedDate(Output.of(committedDate));
        }

        /**
         * @param committerEmail The email of the user that committed.
         * 
         * @return builder
         * 
         */
        public Builder committerEmail(@Nullable Output committerEmail) {
            $.committerEmail = committerEmail;
            return this;
        }

        /**
         * @param committerEmail The email of the user that committed.
         * 
         * @return builder
         * 
         */
        public Builder committerEmail(String committerEmail) {
            return committerEmail(Output.of(committerEmail));
        }

        /**
         * @param committerName The name of the user that committed.
         * 
         * @return builder
         * 
         */
        public Builder committerName(@Nullable Output committerName) {
            $.committerName = committerName;
            return this;
        }

        /**
         * @param committerName The name of the user that committed.
         * 
         * @return builder
         * 
         */
        public Builder committerName(String committerName) {
            return committerName(Output.of(committerName));
        }

        /**
         * @param id The unique id assigned to the commit by Gitlab.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The unique id assigned to the commit by Gitlab.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param message The commit message
         * 
         * @return builder
         * 
         */
        public Builder message(@Nullable Output message) {
            $.message = message;
            return this;
        }

        /**
         * @param message The commit message
         * 
         * @return builder
         * 
         */
        public Builder message(String message) {
            return message(Output.of(message));
        }

        /**
         * @param parentIds The id of the parents of the commit
         * 
         * @return builder
         * 
         */
        public Builder parentIds(@Nullable Output> parentIds) {
            $.parentIds = parentIds;
            return this;
        }

        /**
         * @param parentIds The id of the parents of the commit
         * 
         * @return builder
         * 
         */
        public Builder parentIds(List parentIds) {
            return parentIds(Output.of(parentIds));
        }

        /**
         * @param parentIds The id of the parents of the commit
         * 
         * @return builder
         * 
         */
        public Builder parentIds(String... parentIds) {
            return parentIds(List.of(parentIds));
        }

        /**
         * @param shortId The short id assigned to the commit by Gitlab.
         * 
         * @return builder
         * 
         */
        public Builder shortId(@Nullable Output shortId) {
            $.shortId = shortId;
            return this;
        }

        /**
         * @param shortId The short id assigned to the commit by Gitlab.
         * 
         * @return builder
         * 
         */
        public Builder shortId(String shortId) {
            return shortId(Output.of(shortId));
        }

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

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

        public BranchCommitArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy