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

com.pulumi.azuread.outputs.GetApplicationAppRole Maven / Gradle / Ivy

// *** 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.azuread.outputs;

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

@CustomType
public final class GetApplicationAppRole {
    /**
     * @return Specifies whether this app role definition can be assigned to users and groups, or to other applications (that are accessing this application in a standalone scenario). Possible values are `User` or `Application`, or both.
     * 
     */
    private List allowedMemberTypes;
    /**
     * @return Description of the app role that appears when the role is being assigned and, if the role functions as an application permissions, during the consent experiences.
     * 
     */
    private String description;
    /**
     * @return Specifies the display name of the application.
     * 
     */
    private String displayName;
    /**
     * @return Determines if the app role is enabled.
     * 
     */
    private Boolean enabled;
    /**
     * @return The unique identifier for an app role or OAuth2 permission scope published by the resource application.
     * 
     */
    private String id;
    /**
     * @return The value that is used for the `roles` claim in ID tokens and OAuth 2.0 access tokens that are authenticating an assigned service or user principal.
     * 
     */
    private String value;

    private GetApplicationAppRole() {}
    /**
     * @return Specifies whether this app role definition can be assigned to users and groups, or to other applications (that are accessing this application in a standalone scenario). Possible values are `User` or `Application`, or both.
     * 
     */
    public List allowedMemberTypes() {
        return this.allowedMemberTypes;
    }
    /**
     * @return Description of the app role that appears when the role is being assigned and, if the role functions as an application permissions, during the consent experiences.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return Specifies the display name of the application.
     * 
     */
    public String displayName() {
        return this.displayName;
    }
    /**
     * @return Determines if the app role is enabled.
     * 
     */
    public Boolean enabled() {
        return this.enabled;
    }
    /**
     * @return The unique identifier for an app role or OAuth2 permission scope published by the resource application.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The value that is used for the `roles` claim in ID tokens and OAuth 2.0 access tokens that are authenticating an assigned service or user principal.
     * 
     */
    public String value() {
        return this.value;
    }

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

    public static Builder builder(GetApplicationAppRole defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List allowedMemberTypes;
        private String description;
        private String displayName;
        private Boolean enabled;
        private String id;
        private String value;
        public Builder() {}
        public Builder(GetApplicationAppRole defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowedMemberTypes = defaults.allowedMemberTypes;
    	      this.description = defaults.description;
    	      this.displayName = defaults.displayName;
    	      this.enabled = defaults.enabled;
    	      this.id = defaults.id;
    	      this.value = defaults.value;
        }

        @CustomType.Setter
        public Builder allowedMemberTypes(List allowedMemberTypes) {
            if (allowedMemberTypes == null) {
              throw new MissingRequiredPropertyException("GetApplicationAppRole", "allowedMemberTypes");
            }
            this.allowedMemberTypes = allowedMemberTypes;
            return this;
        }
        public Builder allowedMemberTypes(String... allowedMemberTypes) {
            return allowedMemberTypes(List.of(allowedMemberTypes));
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetApplicationAppRole", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(String displayName) {
            if (displayName == null) {
              throw new MissingRequiredPropertyException("GetApplicationAppRole", "displayName");
            }
            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder enabled(Boolean enabled) {
            if (enabled == null) {
              throw new MissingRequiredPropertyException("GetApplicationAppRole", "enabled");
            }
            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetApplicationAppRole", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder value(String value) {
            if (value == null) {
              throw new MissingRequiredPropertyException("GetApplicationAppRole", "value");
            }
            this.value = value;
            return this;
        }
        public GetApplicationAppRole build() {
            final var _resultValue = new GetApplicationAppRole();
            _resultValue.allowedMemberTypes = allowedMemberTypes;
            _resultValue.description = description;
            _resultValue.displayName = displayName;
            _resultValue.enabled = enabled;
            _resultValue.id = id;
            _resultValue.value = value;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy