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

com.pulumi.gitlab.inputs.GroupShareGroupState Maven / Gradle / Ivy

There is a newer version: 8.7.1
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.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 GroupShareGroupState extends com.pulumi.resources.ResourceArgs {

    public static final GroupShareGroupState Empty = new GroupShareGroupState();

    /**
     * Share expiration date. Format: `YYYY-MM-DD`
     * 
     */
    @Import(name="expiresAt")
    private @Nullable Output expiresAt;

    /**
     * @return Share expiration date. Format: `YYYY-MM-DD`
     * 
     */
    public Optional> expiresAt() {
        return Optional.ofNullable(this.expiresAt);
    }

    /**
     * The access level to grant the group. Valid values are: `no one`, `minimal`, `guest`, `reporter`, `developer`, `maintainer`, `owner`
     * 
     */
    @Import(name="groupAccess")
    private @Nullable Output groupAccess;

    /**
     * @return The access level to grant the group. Valid values are: `no one`, `minimal`, `guest`, `reporter`, `developer`, `maintainer`, `owner`
     * 
     */
    public Optional> groupAccess() {
        return Optional.ofNullable(this.groupAccess);
    }

    /**
     * The id of the main group to be shared.
     * 
     */
    @Import(name="groupId")
    private @Nullable Output groupId;

    /**
     * @return The id of the main group to be shared.
     * 
     */
    public Optional> groupId() {
        return Optional.ofNullable(this.groupId);
    }

    /**
     * The id of the additional group with which the main group will be shared.
     * 
     */
    @Import(name="shareGroupId")
    private @Nullable Output shareGroupId;

    /**
     * @return The id of the additional group with which the main group will be shared.
     * 
     */
    public Optional> shareGroupId() {
        return Optional.ofNullable(this.shareGroupId);
    }

    private GroupShareGroupState() {}

    private GroupShareGroupState(GroupShareGroupState $) {
        this.expiresAt = $.expiresAt;
        this.groupAccess = $.groupAccess;
        this.groupId = $.groupId;
        this.shareGroupId = $.shareGroupId;
    }

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

    public static final class Builder {
        private GroupShareGroupState $;

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

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

        /**
         * @param expiresAt Share expiration date. Format: `YYYY-MM-DD`
         * 
         * @return builder
         * 
         */
        public Builder expiresAt(@Nullable Output expiresAt) {
            $.expiresAt = expiresAt;
            return this;
        }

        /**
         * @param expiresAt Share expiration date. Format: `YYYY-MM-DD`
         * 
         * @return builder
         * 
         */
        public Builder expiresAt(String expiresAt) {
            return expiresAt(Output.of(expiresAt));
        }

        /**
         * @param groupAccess The access level to grant the group. Valid values are: `no one`, `minimal`, `guest`, `reporter`, `developer`, `maintainer`, `owner`
         * 
         * @return builder
         * 
         */
        public Builder groupAccess(@Nullable Output groupAccess) {
            $.groupAccess = groupAccess;
            return this;
        }

        /**
         * @param groupAccess The access level to grant the group. Valid values are: `no one`, `minimal`, `guest`, `reporter`, `developer`, `maintainer`, `owner`
         * 
         * @return builder
         * 
         */
        public Builder groupAccess(String groupAccess) {
            return groupAccess(Output.of(groupAccess));
        }

        /**
         * @param groupId The id of the main group to be shared.
         * 
         * @return builder
         * 
         */
        public Builder groupId(@Nullable Output groupId) {
            $.groupId = groupId;
            return this;
        }

        /**
         * @param groupId The id of the main group to be shared.
         * 
         * @return builder
         * 
         */
        public Builder groupId(String groupId) {
            return groupId(Output.of(groupId));
        }

        /**
         * @param shareGroupId The id of the additional group with which the main group will be shared.
         * 
         * @return builder
         * 
         */
        public Builder shareGroupId(@Nullable Output shareGroupId) {
            $.shareGroupId = shareGroupId;
            return this;
        }

        /**
         * @param shareGroupId The id of the additional group with which the main group will be shared.
         * 
         * @return builder
         * 
         */
        public Builder shareGroupId(Integer shareGroupId) {
            return shareGroupId(Output.of(shareGroupId));
        }

        public GroupShareGroupState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy