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

com.pulumi.azuread.outputs.ServicePrincipalAppRole 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 java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ServicePrincipalAppRole {
    /**
     * @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` and `Application`, or both.
     * 
     */
    private @Nullable List allowedMemberTypes;
    /**
     * @return A description of the service principal provided for internal end-users.
     * 
     */
    private @Nullable String description;
    /**
     * @return Display name for the app role that appears during app role assignment and in consent experiences.
     * 
     */
    private @Nullable String displayName;
    /**
     * @return Specifies whether the permission scope is enabled.
     * 
     */
    private @Nullable Boolean enabled;
    /**
     * @return The unique identifier of the delegated permission.
     * 
     */
    private @Nullable String id;
    /**
     * @return The value that is used for the `scp` claim in OAuth 2.0 access tokens.
     * 
     */
    private @Nullable String value;

    private ServicePrincipalAppRole() {}
    /**
     * @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` and `Application`, or both.
     * 
     */
    public List allowedMemberTypes() {
        return this.allowedMemberTypes == null ? List.of() : this.allowedMemberTypes;
    }
    /**
     * @return A description of the service principal provided for internal end-users.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Display name for the app role that appears during app role assignment and in consent experiences.
     * 
     */
    public Optional displayName() {
        return Optional.ofNullable(this.displayName);
    }
    /**
     * @return Specifies whether the permission scope is enabled.
     * 
     */
    public Optional enabled() {
        return Optional.ofNullable(this.enabled);
    }
    /**
     * @return The unique identifier of the delegated permission.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return The value that is used for the `scp` claim in OAuth 2.0 access tokens.
     * 
     */
    public Optional value() {
        return Optional.ofNullable(this.value);
    }

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

    public static Builder builder(ServicePrincipalAppRole defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List allowedMemberTypes;
        private @Nullable String description;
        private @Nullable String displayName;
        private @Nullable Boolean enabled;
        private @Nullable String id;
        private @Nullable String value;
        public Builder() {}
        public Builder(ServicePrincipalAppRole 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(@Nullable List allowedMemberTypes) {

            this.allowedMemberTypes = allowedMemberTypes;
            return this;
        }
        public Builder allowedMemberTypes(String... allowedMemberTypes) {
            return allowedMemberTypes(List.of(allowedMemberTypes));
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(@Nullable String displayName) {

            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {

            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder value(@Nullable String value) {

            this.value = value;
            return this;
        }
        public ServicePrincipalAppRole build() {
            final var _resultValue = new ServicePrincipalAppRole();
            _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