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

com.pulumi.github.outputs.GetOrganizationCustomRoleResult Maven / Gradle / Ivy

There is a newer version: 6.5.0
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.github.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetOrganizationCustomRoleResult {
    /**
     * @return The system role from which the role inherits permissions.
     * 
     */
    private String baseRole;
    /**
     * @return The description for the custom role.
     * 
     */
    private String description;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private String name;
    /**
     * @return A list of additional permissions included in this role.
     * 
     */
    private List permissions;

    private GetOrganizationCustomRoleResult() {}
    /**
     * @return The system role from which the role inherits permissions.
     * 
     */
    public String baseRole() {
        return this.baseRole;
    }
    /**
     * @return The description for the custom role.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public String name() {
        return this.name;
    }
    /**
     * @return A list of additional permissions included in this role.
     * 
     */
    public List permissions() {
        return this.permissions;
    }

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

    public static Builder builder(GetOrganizationCustomRoleResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String baseRole;
        private String description;
        private String id;
        private String name;
        private List permissions;
        public Builder() {}
        public Builder(GetOrganizationCustomRoleResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.baseRole = defaults.baseRole;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.permissions = defaults.permissions;
        }

        @CustomType.Setter
        public Builder baseRole(String baseRole) {
            this.baseRole = Objects.requireNonNull(baseRole);
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            this.description = Objects.requireNonNull(description);
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder permissions(List permissions) {
            this.permissions = Objects.requireNonNull(permissions);
            return this;
        }
        public Builder permissions(String... permissions) {
            return permissions(List.of(permissions));
        }
        public GetOrganizationCustomRoleResult build() {
            final var o = new GetOrganizationCustomRoleResult();
            o.baseRole = baseRole;
            o.description = description;
            o.id = id;
            o.name = name;
            o.permissions = permissions;
            return o;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy