sdk/java/src/main/java/com/pulumi/ovh/CloudProject/outputs/GetUserRole.java
<filename>sdk/java/src/main/java/com/pulumi/ovh/CloudProject/outputs/GetUserRole.java// *** 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.ovh.CloudProject.outputs;

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

@CustomType
public final class GetUserRole {
    /**
     * @return description of the role
     * 
     */
    private String description;
    /**
     * @return id of the role
     * 
     */
    private String id;
    /**
     * @return name of the role
     * 
     */
    private String name;
    /**
     * @return list of permissions associated with the role
     * 
     */
    private List<String> permissions;

    private GetUserRole() {}
    /**
     * @return description of the role
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return id of the role
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return name of the role
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return list of permissions associated with the role
     * 
     */
    public List<String> permissions() {
        return this.permissions;
    }

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

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

        @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<String> permissions) {
            this.permissions = Objects.requireNonNull(permissions);
            return this;
        }
        public Builder permissions(String... permissions) {
            return permissions(List.of(permissions));
        }
        public GetUserRole build() {
            final var o = new GetUserRole();
            o.description = description;
            o.id = id;
            o.name = name;
            o.permissions = permissions;
            return o;
        }
    }
}
