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

com.pulumi.gitlab.IntegrationJenkinsArgs Maven / Gradle / Ivy

There is a newer version: 8.7.0-alpha.1732772606
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.gitlab;

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


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

    public static final IntegrationJenkinsArgs Empty = new IntegrationJenkinsArgs();

    /**
     * Enable SSL verification. Defaults to `true` (enabled).
     * 
     */
    @Import(name="enableSslVerification")
    private @Nullable Output enableSslVerification;

    /**
     * @return Enable SSL verification. Defaults to `true` (enabled).
     * 
     */
    public Optional> enableSslVerification() {
        return Optional.ofNullable(this.enableSslVerification);
    }

    /**
     * Jenkins URL like `http://jenkins.example.com`
     * 
     */
    @Import(name="jenkinsUrl", required=true)
    private Output jenkinsUrl;

    /**
     * @return Jenkins URL like `http://jenkins.example.com`
     * 
     */
    public Output jenkinsUrl() {
        return this.jenkinsUrl;
    }

    /**
     * Enable notifications for merge request events.
     * 
     */
    @Import(name="mergeRequestEvents")
    private @Nullable Output mergeRequestEvents;

    /**
     * @return Enable notifications for merge request events.
     * 
     */
    public Optional> mergeRequestEvents() {
        return Optional.ofNullable(this.mergeRequestEvents);
    }

    /**
     * Password for authentication with the Jenkins server, if authentication is required by the server.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return Password for authentication with the Jenkins server, if authentication is required by the server.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * ID of the project you want to activate integration on.
     * 
     */
    @Import(name="project", required=true)
    private Output project;

    /**
     * @return ID of the project you want to activate integration on.
     * 
     */
    public Output project() {
        return this.project;
    }

    /**
     * The URL-friendly project name. Example: `my_project_name`.
     * 
     */
    @Import(name="projectName", required=true)
    private Output projectName;

    /**
     * @return The URL-friendly project name. Example: `my_project_name`.
     * 
     */
    public Output projectName() {
        return this.projectName;
    }

    /**
     * Enable notifications for push events.
     * 
     */
    @Import(name="pushEvents")
    private @Nullable Output pushEvents;

    /**
     * @return Enable notifications for push events.
     * 
     */
    public Optional> pushEvents() {
        return Optional.ofNullable(this.pushEvents);
    }

    /**
     * Enable notifications for tag push events.
     * 
     */
    @Import(name="tagPushEvents")
    private @Nullable Output tagPushEvents;

    /**
     * @return Enable notifications for tag push events.
     * 
     */
    public Optional> tagPushEvents() {
        return Optional.ofNullable(this.tagPushEvents);
    }

    /**
     * Username for authentication with the Jenkins server, if authentication is required by the server.
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return Username for authentication with the Jenkins server, if authentication is required by the server.
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private IntegrationJenkinsArgs() {}

    private IntegrationJenkinsArgs(IntegrationJenkinsArgs $) {
        this.enableSslVerification = $.enableSslVerification;
        this.jenkinsUrl = $.jenkinsUrl;
        this.mergeRequestEvents = $.mergeRequestEvents;
        this.password = $.password;
        this.project = $.project;
        this.projectName = $.projectName;
        this.pushEvents = $.pushEvents;
        this.tagPushEvents = $.tagPushEvents;
        this.username = $.username;
    }

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

    public static final class Builder {
        private IntegrationJenkinsArgs $;

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

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

        /**
         * @param enableSslVerification Enable SSL verification. Defaults to `true` (enabled).
         * 
         * @return builder
         * 
         */
        public Builder enableSslVerification(@Nullable Output enableSslVerification) {
            $.enableSslVerification = enableSslVerification;
            return this;
        }

        /**
         * @param enableSslVerification Enable SSL verification. Defaults to `true` (enabled).
         * 
         * @return builder
         * 
         */
        public Builder enableSslVerification(Boolean enableSslVerification) {
            return enableSslVerification(Output.of(enableSslVerification));
        }

        /**
         * @param jenkinsUrl Jenkins URL like `http://jenkins.example.com`
         * 
         * @return builder
         * 
         */
        public Builder jenkinsUrl(Output jenkinsUrl) {
            $.jenkinsUrl = jenkinsUrl;
            return this;
        }

        /**
         * @param jenkinsUrl Jenkins URL like `http://jenkins.example.com`
         * 
         * @return builder
         * 
         */
        public Builder jenkinsUrl(String jenkinsUrl) {
            return jenkinsUrl(Output.of(jenkinsUrl));
        }

        /**
         * @param mergeRequestEvents Enable notifications for merge request events.
         * 
         * @return builder
         * 
         */
        public Builder mergeRequestEvents(@Nullable Output mergeRequestEvents) {
            $.mergeRequestEvents = mergeRequestEvents;
            return this;
        }

        /**
         * @param mergeRequestEvents Enable notifications for merge request events.
         * 
         * @return builder
         * 
         */
        public Builder mergeRequestEvents(Boolean mergeRequestEvents) {
            return mergeRequestEvents(Output.of(mergeRequestEvents));
        }

        /**
         * @param password Password for authentication with the Jenkins server, if authentication is required by the server.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password Password for authentication with the Jenkins server, if authentication is required by the server.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param project ID of the project you want to activate integration on.
         * 
         * @return builder
         * 
         */
        public Builder project(Output project) {
            $.project = project;
            return this;
        }

        /**
         * @param project ID of the project you want to activate integration on.
         * 
         * @return builder
         * 
         */
        public Builder project(String project) {
            return project(Output.of(project));
        }

        /**
         * @param projectName The URL-friendly project name. Example: `my_project_name`.
         * 
         * @return builder
         * 
         */
        public Builder projectName(Output projectName) {
            $.projectName = projectName;
            return this;
        }

        /**
         * @param projectName The URL-friendly project name. Example: `my_project_name`.
         * 
         * @return builder
         * 
         */
        public Builder projectName(String projectName) {
            return projectName(Output.of(projectName));
        }

        /**
         * @param pushEvents Enable notifications for push events.
         * 
         * @return builder
         * 
         */
        public Builder pushEvents(@Nullable Output pushEvents) {
            $.pushEvents = pushEvents;
            return this;
        }

        /**
         * @param pushEvents Enable notifications for push events.
         * 
         * @return builder
         * 
         */
        public Builder pushEvents(Boolean pushEvents) {
            return pushEvents(Output.of(pushEvents));
        }

        /**
         * @param tagPushEvents Enable notifications for tag push events.
         * 
         * @return builder
         * 
         */
        public Builder tagPushEvents(@Nullable Output tagPushEvents) {
            $.tagPushEvents = tagPushEvents;
            return this;
        }

        /**
         * @param tagPushEvents Enable notifications for tag push events.
         * 
         * @return builder
         * 
         */
        public Builder tagPushEvents(Boolean tagPushEvents) {
            return tagPushEvents(Output.of(tagPushEvents));
        }

        /**
         * @param username Username for authentication with the Jenkins server, if authentication is required by the server.
         * 
         * @return builder
         * 
         */
        public Builder username(@Nullable Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username Username for authentication with the Jenkins server, if authentication is required by the server.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public IntegrationJenkinsArgs build() {
            if ($.jenkinsUrl == null) {
                throw new MissingRequiredPropertyException("IntegrationJenkinsArgs", "jenkinsUrl");
            }
            if ($.project == null) {
                throw new MissingRequiredPropertyException("IntegrationJenkinsArgs", "project");
            }
            if ($.projectName == null) {
                throw new MissingRequiredPropertyException("IntegrationJenkinsArgs", "projectName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy