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

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 IssueArgs extends com.pulumi.resources.ResourceArgs {

    public static final IssueArgs Empty = new IssueArgs();

    /**
     * List of Logins to assign the to the issue
     * 
     */
    @Import(name="assignees")
    private @Nullable Output> assignees;

    /**
     * @return List of Logins to assign the to the issue
     * 
     */
    public Optional>> assignees() {
        return Optional.ofNullable(this.assignees);
    }

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

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

    /**
     * List of labels to attach to the issue
     * 
     */
    @Import(name="labels")
    private @Nullable Output> labels;

    /**
     * @return List of labels to attach to the issue
     * 
     */
    public Optional>> labels() {
        return Optional.ofNullable(this.labels);
    }

    /**
     * Milestone number to assign to the issue
     * 
     */
    @Import(name="milestoneNumber")
    private @Nullable Output milestoneNumber;

    /**
     * @return Milestone number to assign to the issue
     * 
     */
    public Optional> milestoneNumber() {
        return Optional.ofNullable(this.milestoneNumber);
    }

    /**
     * The GitHub repository name
     * 
     */
    @Import(name="repository", required=true)
    private Output repository;

    /**
     * @return The GitHub repository name
     * 
     */
    public Output repository() {
        return this.repository;
    }

    /**
     * Title of the issue
     * 
     */
    @Import(name="title", required=true)
    private Output title;

    /**
     * @return Title of the issue
     * 
     */
    public Output title() {
        return this.title;
    }

    private IssueArgs() {}

    private IssueArgs(IssueArgs $) {
        this.assignees = $.assignees;
        this.body = $.body;
        this.labels = $.labels;
        this.milestoneNumber = $.milestoneNumber;
        this.repository = $.repository;
        this.title = $.title;
    }

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

    public static final class Builder {
        private IssueArgs $;

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

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

        /**
         * @param assignees List of Logins to assign the to the issue
         * 
         * @return builder
         * 
         */
        public Builder assignees(@Nullable Output> assignees) {
            $.assignees = assignees;
            return this;
        }

        /**
         * @param assignees List of Logins to assign the to the issue
         * 
         * @return builder
         * 
         */
        public Builder assignees(List assignees) {
            return assignees(Output.of(assignees));
        }

        /**
         * @param assignees List of Logins to assign the to the issue
         * 
         * @return builder
         * 
         */
        public Builder assignees(String... assignees) {
            return assignees(List.of(assignees));
        }

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

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

        /**
         * @param labels List of labels to attach to the issue
         * 
         * @return builder
         * 
         */
        public Builder labels(@Nullable Output> labels) {
            $.labels = labels;
            return this;
        }

        /**
         * @param labels List of labels to attach to the issue
         * 
         * @return builder
         * 
         */
        public Builder labels(List labels) {
            return labels(Output.of(labels));
        }

        /**
         * @param labels List of labels to attach to the issue
         * 
         * @return builder
         * 
         */
        public Builder labels(String... labels) {
            return labels(List.of(labels));
        }

        /**
         * @param milestoneNumber Milestone number to assign to the issue
         * 
         * @return builder
         * 
         */
        public Builder milestoneNumber(@Nullable Output milestoneNumber) {
            $.milestoneNumber = milestoneNumber;
            return this;
        }

        /**
         * @param milestoneNumber Milestone number to assign to the issue
         * 
         * @return builder
         * 
         */
        public Builder milestoneNumber(Integer milestoneNumber) {
            return milestoneNumber(Output.of(milestoneNumber));
        }

        /**
         * @param repository The GitHub repository name
         * 
         * @return builder
         * 
         */
        public Builder repository(Output repository) {
            $.repository = repository;
            return this;
        }

        /**
         * @param repository The GitHub repository name
         * 
         * @return builder
         * 
         */
        public Builder repository(String repository) {
            return repository(Output.of(repository));
        }

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

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

        public IssueArgs build() {
            if ($.repository == null) {
                throw new MissingRequiredPropertyException("IssueArgs", "repository");
            }
            if ($.title == null) {
                throw new MissingRequiredPropertyException("IssueArgs", "title");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy