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

com.pulumi.gitlab.outputs.GetGroupMembershipResult 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.gitlab.outputs.GetGroupMembershipMember;
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;

@CustomType
public final class GetGroupMembershipResult {
    /**
     * @return Only return members with the desired access level. Acceptable values are: `guest`, `reporter`, `developer`, `maintainer`, `owner`.
     * 
     */
    private String accessLevel;
    /**
     * @return The full path of the group.
     * 
     */
    private String fullPath;
    /**
     * @return The ID of the group.
     * 
     */
    private Integer groupId;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return Return all project members including members through ancestor groups.
     * 
     */
    private @Nullable Boolean inherited;
    /**
     * @return The list of group members.
     * 
     */
    private List members;

    private GetGroupMembershipResult() {}
    /**
     * @return Only return members with the desired access level. Acceptable values are: `guest`, `reporter`, `developer`, `maintainer`, `owner`.
     * 
     */
    public String accessLevel() {
        return this.accessLevel;
    }
    /**
     * @return The full path of the group.
     * 
     */
    public String fullPath() {
        return this.fullPath;
    }
    /**
     * @return The ID of the group.
     * 
     */
    public Integer groupId() {
        return this.groupId;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Return all project members including members through ancestor groups.
     * 
     */
    public Optional inherited() {
        return Optional.ofNullable(this.inherited);
    }
    /**
     * @return The list of group members.
     * 
     */
    public List members() {
        return this.members;
    }

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

    public static Builder builder(GetGroupMembershipResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String accessLevel;
        private String fullPath;
        private Integer groupId;
        private String id;
        private @Nullable Boolean inherited;
        private List members;
        public Builder() {}
        public Builder(GetGroupMembershipResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accessLevel = defaults.accessLevel;
    	      this.fullPath = defaults.fullPath;
    	      this.groupId = defaults.groupId;
    	      this.id = defaults.id;
    	      this.inherited = defaults.inherited;
    	      this.members = defaults.members;
        }

        @CustomType.Setter
        public Builder accessLevel(String accessLevel) {
            if (accessLevel == null) {
              throw new MissingRequiredPropertyException("GetGroupMembershipResult", "accessLevel");
            }
            this.accessLevel = accessLevel;
            return this;
        }
        @CustomType.Setter
        public Builder fullPath(String fullPath) {
            if (fullPath == null) {
              throw new MissingRequiredPropertyException("GetGroupMembershipResult", "fullPath");
            }
            this.fullPath = fullPath;
            return this;
        }
        @CustomType.Setter
        public Builder groupId(Integer groupId) {
            if (groupId == null) {
              throw new MissingRequiredPropertyException("GetGroupMembershipResult", "groupId");
            }
            this.groupId = groupId;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetGroupMembershipResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder inherited(@Nullable Boolean inherited) {

            this.inherited = inherited;
            return this;
        }
        @CustomType.Setter
        public Builder members(List members) {
            if (members == null) {
              throw new MissingRequiredPropertyException("GetGroupMembershipResult", "members");
            }
            this.members = members;
            return this;
        }
        public Builder members(GetGroupMembershipMember... members) {
            return members(List.of(members));
        }
        public GetGroupMembershipResult build() {
            final var _resultValue = new GetGroupMembershipResult();
            _resultValue.accessLevel = accessLevel;
            _resultValue.fullPath = fullPath;
            _resultValue.groupId = groupId;
            _resultValue.id = id;
            _resultValue.inherited = inherited;
            _resultValue.members = members;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy