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

com.pulumi.gitlab.inputs.BranchProtectionAllowedToUnprotectArgs 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.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BranchProtectionAllowedToUnprotectArgs Empty = new BranchProtectionAllowedToUnprotectArgs();

    /**
     * Access levels allowed to unprotect push to protected branch. Valid values are: `developer`, `maintainer`, `admin`.
     * 
     */
    @Import(name="accessLevel")
    private @Nullable Output accessLevel;

    /**
     * @return Access levels allowed to unprotect push to protected branch. Valid values are: `developer`, `maintainer`, `admin`.
     * 
     */
    public Optional> accessLevel() {
        return Optional.ofNullable(this.accessLevel);
    }

    /**
     * Readable description of access level.
     * 
     */
    @Import(name="accessLevelDescription")
    private @Nullable Output accessLevelDescription;

    /**
     * @return Readable description of access level.
     * 
     */
    public Optional> accessLevelDescription() {
        return Optional.ofNullable(this.accessLevelDescription);
    }

    /**
     * The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`.
     * 
     */
    @Import(name="groupId")
    private @Nullable Output groupId;

    /**
     * @return The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`.
     * 
     */
    public Optional> groupId() {
        return Optional.ofNullable(this.groupId);
    }

    /**
     * The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`.
     * 
     */
    @Import(name="userId")
    private @Nullable Output userId;

    /**
     * @return The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`.
     * 
     */
    public Optional> userId() {
        return Optional.ofNullable(this.userId);
    }

    private BranchProtectionAllowedToUnprotectArgs() {}

    private BranchProtectionAllowedToUnprotectArgs(BranchProtectionAllowedToUnprotectArgs $) {
        this.accessLevel = $.accessLevel;
        this.accessLevelDescription = $.accessLevelDescription;
        this.groupId = $.groupId;
        this.userId = $.userId;
    }

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

    public static final class Builder {
        private BranchProtectionAllowedToUnprotectArgs $;

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

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

        /**
         * @param accessLevel Access levels allowed to unprotect push to protected branch. Valid values are: `developer`, `maintainer`, `admin`.
         * 
         * @return builder
         * 
         */
        public Builder accessLevel(@Nullable Output accessLevel) {
            $.accessLevel = accessLevel;
            return this;
        }

        /**
         * @param accessLevel Access levels allowed to unprotect push to protected branch. Valid values are: `developer`, `maintainer`, `admin`.
         * 
         * @return builder
         * 
         */
        public Builder accessLevel(String accessLevel) {
            return accessLevel(Output.of(accessLevel));
        }

        /**
         * @param accessLevelDescription Readable description of access level.
         * 
         * @return builder
         * 
         */
        public Builder accessLevelDescription(@Nullable Output accessLevelDescription) {
            $.accessLevelDescription = accessLevelDescription;
            return this;
        }

        /**
         * @param accessLevelDescription Readable description of access level.
         * 
         * @return builder
         * 
         */
        public Builder accessLevelDescription(String accessLevelDescription) {
            return accessLevelDescription(Output.of(accessLevelDescription));
        }

        /**
         * @param groupId The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`.
         * 
         * @return builder
         * 
         */
        public Builder groupId(@Nullable Output groupId) {
            $.groupId = groupId;
            return this;
        }

        /**
         * @param groupId The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`.
         * 
         * @return builder
         * 
         */
        public Builder groupId(Integer groupId) {
            return groupId(Output.of(groupId));
        }

        /**
         * @param userId The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`.
         * 
         * @return builder
         * 
         */
        public Builder userId(@Nullable Output userId) {
            $.userId = userId;
            return this;
        }

        /**
         * @param userId The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`.
         * 
         * @return builder
         * 
         */
        public Builder userId(Integer userId) {
            return userId(Output.of(userId));
        }

        public BranchProtectionAllowedToUnprotectArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy