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

com.pulumi.gitlab.outputs.BranchCommit 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.outputs;

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

@CustomType
public final class BranchCommit {
    /**
     * @return The email of the author.
     * 
     */
    private @Nullable String authorEmail;
    /**
     * @return The name of the author.
     * 
     */
    private @Nullable String authorName;
    /**
     * @return The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
     * 
     */
    private @Nullable String authoredDate;
    /**
     * @return The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
     * 
     */
    private @Nullable String committedDate;
    /**
     * @return The email of the user that committed.
     * 
     */
    private @Nullable String committerEmail;
    /**
     * @return The name of the user that committed.
     * 
     */
    private @Nullable String committerName;
    /**
     * @return The unique id assigned to the commit by Gitlab.
     * 
     */
    private @Nullable String id;
    /**
     * @return The commit message
     * 
     */
    private @Nullable String message;
    /**
     * @return The id of the parents of the commit
     * 
     */
    private @Nullable List parentIds;
    /**
     * @return The short id assigned to the commit by Gitlab.
     * 
     */
    private @Nullable String shortId;
    /**
     * @return The title of the commit
     * 
     */
    private @Nullable String title;

    private BranchCommit() {}
    /**
     * @return The email of the author.
     * 
     */
    public Optional authorEmail() {
        return Optional.ofNullable(this.authorEmail);
    }
    /**
     * @return The name of the author.
     * 
     */
    public Optional authorName() {
        return Optional.ofNullable(this.authorName);
    }
    /**
     * @return The date which the commit was authored (format: yyyy-MM-ddTHH:mm:ssZ).
     * 
     */
    public Optional authoredDate() {
        return Optional.ofNullable(this.authoredDate);
    }
    /**
     * @return The date at which the commit was pushed (format: yyyy-MM-ddTHH:mm:ssZ).
     * 
     */
    public Optional committedDate() {
        return Optional.ofNullable(this.committedDate);
    }
    /**
     * @return The email of the user that committed.
     * 
     */
    public Optional committerEmail() {
        return Optional.ofNullable(this.committerEmail);
    }
    /**
     * @return The name of the user that committed.
     * 
     */
    public Optional committerName() {
        return Optional.ofNullable(this.committerName);
    }
    /**
     * @return The unique id assigned to the commit by Gitlab.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return The commit message
     * 
     */
    public Optional message() {
        return Optional.ofNullable(this.message);
    }
    /**
     * @return The id of the parents of the commit
     * 
     */
    public List parentIds() {
        return this.parentIds == null ? List.of() : this.parentIds;
    }
    /**
     * @return The short id assigned to the commit by Gitlab.
     * 
     */
    public Optional shortId() {
        return Optional.ofNullable(this.shortId);
    }
    /**
     * @return The title of the commit
     * 
     */
    public Optional title() {
        return Optional.ofNullable(this.title);
    }

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

    public static Builder builder(BranchCommit defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String authorEmail;
        private @Nullable String authorName;
        private @Nullable String authoredDate;
        private @Nullable String committedDate;
        private @Nullable String committerEmail;
        private @Nullable String committerName;
        private @Nullable String id;
        private @Nullable String message;
        private @Nullable List parentIds;
        private @Nullable String shortId;
        private @Nullable String title;
        public Builder() {}
        public Builder(BranchCommit defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authorEmail = defaults.authorEmail;
    	      this.authorName = defaults.authorName;
    	      this.authoredDate = defaults.authoredDate;
    	      this.committedDate = defaults.committedDate;
    	      this.committerEmail = defaults.committerEmail;
    	      this.committerName = defaults.committerName;
    	      this.id = defaults.id;
    	      this.message = defaults.message;
    	      this.parentIds = defaults.parentIds;
    	      this.shortId = defaults.shortId;
    	      this.title = defaults.title;
        }

        @CustomType.Setter
        public Builder authorEmail(@Nullable String authorEmail) {

            this.authorEmail = authorEmail;
            return this;
        }
        @CustomType.Setter
        public Builder authorName(@Nullable String authorName) {

            this.authorName = authorName;
            return this;
        }
        @CustomType.Setter
        public Builder authoredDate(@Nullable String authoredDate) {

            this.authoredDate = authoredDate;
            return this;
        }
        @CustomType.Setter
        public Builder committedDate(@Nullable String committedDate) {

            this.committedDate = committedDate;
            return this;
        }
        @CustomType.Setter
        public Builder committerEmail(@Nullable String committerEmail) {

            this.committerEmail = committerEmail;
            return this;
        }
        @CustomType.Setter
        public Builder committerName(@Nullable String committerName) {

            this.committerName = committerName;
            return this;
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder message(@Nullable String message) {

            this.message = message;
            return this;
        }
        @CustomType.Setter
        public Builder parentIds(@Nullable List parentIds) {

            this.parentIds = parentIds;
            return this;
        }
        public Builder parentIds(String... parentIds) {
            return parentIds(List.of(parentIds));
        }
        @CustomType.Setter
        public Builder shortId(@Nullable String shortId) {

            this.shortId = shortId;
            return this;
        }
        @CustomType.Setter
        public Builder title(@Nullable String title) {

            this.title = title;
            return this;
        }
        public BranchCommit build() {
            final var _resultValue = new BranchCommit();
            _resultValue.authorEmail = authorEmail;
            _resultValue.authorName = authorName;
            _resultValue.authoredDate = authoredDate;
            _resultValue.committedDate = committedDate;
            _resultValue.committerEmail = committerEmail;
            _resultValue.committerName = committerName;
            _resultValue.id = id;
            _resultValue.message = message;
            _resultValue.parentIds = parentIds;
            _resultValue.shortId = shortId;
            _resultValue.title = title;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy