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

com.pulumi.gitlab.inputs.RunnerState 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.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 RunnerState extends com.pulumi.resources.ResourceArgs {

    public static final RunnerState Empty = new RunnerState();

    /**
     * The access_level of the runner. Valid values are: `not_protected`, `ref_protected`.
     * 
     */
    @Import(name="accessLevel")
    private @Nullable Output accessLevel;

    /**
     * @return The access_level of the runner. Valid values are: `not_protected`, `ref_protected`.
     * 
     */
    public Optional> accessLevel() {
        return Optional.ofNullable(this.accessLevel);
    }

    /**
     * The authentication token used for building a config.toml file. This value is not present when imported.
     * 
     */
    @Import(name="authenticationToken")
    private @Nullable Output authenticationToken;

    /**
     * @return The authentication token used for building a config.toml file. This value is not present when imported.
     * 
     */
    public Optional> authenticationToken() {
        return Optional.ofNullable(this.authenticationToken);
    }

    /**
     * The runner's description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The runner's description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Whether the runner should be locked for current project.
     * 
     */
    @Import(name="locked")
    private @Nullable Output locked;

    /**
     * @return Whether the runner should be locked for current project.
     * 
     */
    public Optional> locked() {
        return Optional.ofNullable(this.locked);
    }

    /**
     * Maximum timeout set when this runner handles the job.
     * 
     */
    @Import(name="maximumTimeout")
    private @Nullable Output maximumTimeout;

    /**
     * @return Maximum timeout set when this runner handles the job.
     * 
     */
    public Optional> maximumTimeout() {
        return Optional.ofNullable(this.maximumTimeout);
    }

    /**
     * Whether the runner should ignore new jobs.
     * 
     */
    @Import(name="paused")
    private @Nullable Output paused;

    /**
     * @return Whether the runner should ignore new jobs.
     * 
     */
    public Optional> paused() {
        return Optional.ofNullable(this.paused);
    }

    /**
     * The registration token used to register the runner.
     * 
     */
    @Import(name="registrationToken")
    private @Nullable Output registrationToken;

    /**
     * @return The registration token used to register the runner.
     * 
     */
    public Optional> registrationToken() {
        return Optional.ofNullable(this.registrationToken);
    }

    /**
     * Whether the runner should handle untagged jobs.
     * 
     */
    @Import(name="runUntagged")
    private @Nullable Output runUntagged;

    /**
     * @return Whether the runner should handle untagged jobs.
     * 
     */
    public Optional> runUntagged() {
        return Optional.ofNullable(this.runUntagged);
    }

    /**
     * The status of runners to show, one of: online and offline. active and paused are also possible values
     * 			              which were deprecated in GitLab 14.8 and will be removed in GitLab 16.0.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The status of runners to show, one of: online and offline. active and paused are also possible values
     * 			              which were deprecated in GitLab 14.8 and will be removed in GitLab 16.0.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * List of runner’s tags.
     * 
     */
    @Import(name="tagLists")
    private @Nullable Output> tagLists;

    /**
     * @return List of runner’s tags.
     * 
     */
    public Optional>> tagLists() {
        return Optional.ofNullable(this.tagLists);
    }

    private RunnerState() {}

    private RunnerState(RunnerState $) {
        this.accessLevel = $.accessLevel;
        this.authenticationToken = $.authenticationToken;
        this.description = $.description;
        this.locked = $.locked;
        this.maximumTimeout = $.maximumTimeout;
        this.paused = $.paused;
        this.registrationToken = $.registrationToken;
        this.runUntagged = $.runUntagged;
        this.status = $.status;
        this.tagLists = $.tagLists;
    }

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

    public static final class Builder {
        private RunnerState $;

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

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

        /**
         * @param accessLevel The access_level of the runner. Valid values are: `not_protected`, `ref_protected`.
         * 
         * @return builder
         * 
         */
        public Builder accessLevel(@Nullable Output accessLevel) {
            $.accessLevel = accessLevel;
            return this;
        }

        /**
         * @param accessLevel The access_level of the runner. Valid values are: `not_protected`, `ref_protected`.
         * 
         * @return builder
         * 
         */
        public Builder accessLevel(String accessLevel) {
            return accessLevel(Output.of(accessLevel));
        }

        /**
         * @param authenticationToken The authentication token used for building a config.toml file. This value is not present when imported.
         * 
         * @return builder
         * 
         */
        public Builder authenticationToken(@Nullable Output authenticationToken) {
            $.authenticationToken = authenticationToken;
            return this;
        }

        /**
         * @param authenticationToken The authentication token used for building a config.toml file. This value is not present when imported.
         * 
         * @return builder
         * 
         */
        public Builder authenticationToken(String authenticationToken) {
            return authenticationToken(Output.of(authenticationToken));
        }

        /**
         * @param description The runner's description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The runner's description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param locked Whether the runner should be locked for current project.
         * 
         * @return builder
         * 
         */
        public Builder locked(@Nullable Output locked) {
            $.locked = locked;
            return this;
        }

        /**
         * @param locked Whether the runner should be locked for current project.
         * 
         * @return builder
         * 
         */
        public Builder locked(Boolean locked) {
            return locked(Output.of(locked));
        }

        /**
         * @param maximumTimeout Maximum timeout set when this runner handles the job.
         * 
         * @return builder
         * 
         */
        public Builder maximumTimeout(@Nullable Output maximumTimeout) {
            $.maximumTimeout = maximumTimeout;
            return this;
        }

        /**
         * @param maximumTimeout Maximum timeout set when this runner handles the job.
         * 
         * @return builder
         * 
         */
        public Builder maximumTimeout(Integer maximumTimeout) {
            return maximumTimeout(Output.of(maximumTimeout));
        }

        /**
         * @param paused Whether the runner should ignore new jobs.
         * 
         * @return builder
         * 
         */
        public Builder paused(@Nullable Output paused) {
            $.paused = paused;
            return this;
        }

        /**
         * @param paused Whether the runner should ignore new jobs.
         * 
         * @return builder
         * 
         */
        public Builder paused(Boolean paused) {
            return paused(Output.of(paused));
        }

        /**
         * @param registrationToken The registration token used to register the runner.
         * 
         * @return builder
         * 
         */
        public Builder registrationToken(@Nullable Output registrationToken) {
            $.registrationToken = registrationToken;
            return this;
        }

        /**
         * @param registrationToken The registration token used to register the runner.
         * 
         * @return builder
         * 
         */
        public Builder registrationToken(String registrationToken) {
            return registrationToken(Output.of(registrationToken));
        }

        /**
         * @param runUntagged Whether the runner should handle untagged jobs.
         * 
         * @return builder
         * 
         */
        public Builder runUntagged(@Nullable Output runUntagged) {
            $.runUntagged = runUntagged;
            return this;
        }

        /**
         * @param runUntagged Whether the runner should handle untagged jobs.
         * 
         * @return builder
         * 
         */
        public Builder runUntagged(Boolean runUntagged) {
            return runUntagged(Output.of(runUntagged));
        }

        /**
         * @param status The status of runners to show, one of: online and offline. active and paused are also possible values
         * 			              which were deprecated in GitLab 14.8 and will be removed in GitLab 16.0.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of runners to show, one of: online and offline. active and paused are also possible values
         * 			              which were deprecated in GitLab 14.8 and will be removed in GitLab 16.0.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param tagLists List of runner’s tags.
         * 
         * @return builder
         * 
         */
        public Builder tagLists(@Nullable Output> tagLists) {
            $.tagLists = tagLists;
            return this;
        }

        /**
         * @param tagLists List of runner’s tags.
         * 
         * @return builder
         * 
         */
        public Builder tagLists(List tagLists) {
            return tagLists(Output.of(tagLists));
        }

        /**
         * @param tagLists List of runner’s tags.
         * 
         * @return builder
         * 
         */
        public Builder tagLists(String... tagLists) {
            return tagLists(List.of(tagLists));
        }

        public RunnerState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy