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

com.pulumi.okta.app.inputs.GroupAssignmentState Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1732774005
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.okta.app.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GroupAssignmentState extends com.pulumi.resources.ResourceArgs {

    public static final GroupAssignmentState Empty = new GroupAssignmentState();

    /**
     * App to associate group with
     * 
     */
    @Import(name="appId")
    private @Nullable Output appId;

    /**
     * @return App to associate group with
     * 
     */
    public Optional> appId() {
        return Optional.ofNullable(this.appId);
    }

    /**
     * Group associated with the application
     * 
     */
    @Import(name="groupId")
    private @Nullable Output groupId;

    /**
     * @return Group associated with the application
     * 
     */
    public Optional> groupId() {
        return Optional.ofNullable(this.groupId);
    }

    /**
     * Priority of group assignment.
     * 
     */
    @Import(name="priority")
    private @Nullable Output priority;

    /**
     * @return Priority of group assignment.
     * 
     */
    public Optional> priority() {
        return Optional.ofNullable(this.priority);
    }

    /**
     * JSON document containing [application profile](https://developer.okta.com/docs/reference/api/apps/#profile-object)
     * 
     */
    @Import(name="profile")
    private @Nullable Output profile;

    /**
     * @return JSON document containing [application profile](https://developer.okta.com/docs/reference/api/apps/#profile-object)
     * 
     */
    public Optional> profile() {
        return Optional.ofNullable(this.profile);
    }

    /**
     * Retain the group assignment on destroy. If set to true, the resource will be removed from state but not from the Okta app.
     * 
     */
    @Import(name="retainAssignment")
    private @Nullable Output retainAssignment;

    /**
     * @return Retain the group assignment on destroy. If set to true, the resource will be removed from state but not from the Okta app.
     * 
     */
    public Optional> retainAssignment() {
        return Optional.ofNullable(this.retainAssignment);
    }

    private GroupAssignmentState() {}

    private GroupAssignmentState(GroupAssignmentState $) {
        this.appId = $.appId;
        this.groupId = $.groupId;
        this.priority = $.priority;
        this.profile = $.profile;
        this.retainAssignment = $.retainAssignment;
    }

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

    public static final class Builder {
        private GroupAssignmentState $;

        public Builder() {
            $ = new GroupAssignmentState();
        }

        public Builder(GroupAssignmentState defaults) {
            $ = new GroupAssignmentState(Objects.requireNonNull(defaults));
        }

        /**
         * @param appId App to associate group with
         * 
         * @return builder
         * 
         */
        public Builder appId(@Nullable Output appId) {
            $.appId = appId;
            return this;
        }

        /**
         * @param appId App to associate group with
         * 
         * @return builder
         * 
         */
        public Builder appId(String appId) {
            return appId(Output.of(appId));
        }

        /**
         * @param groupId Group associated with the application
         * 
         * @return builder
         * 
         */
        public Builder groupId(@Nullable Output groupId) {
            $.groupId = groupId;
            return this;
        }

        /**
         * @param groupId Group associated with the application
         * 
         * @return builder
         * 
         */
        public Builder groupId(String groupId) {
            return groupId(Output.of(groupId));
        }

        /**
         * @param priority Priority of group assignment.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority Priority of group assignment.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

        /**
         * @param profile JSON document containing [application profile](https://developer.okta.com/docs/reference/api/apps/#profile-object)
         * 
         * @return builder
         * 
         */
        public Builder profile(@Nullable Output profile) {
            $.profile = profile;
            return this;
        }

        /**
         * @param profile JSON document containing [application profile](https://developer.okta.com/docs/reference/api/apps/#profile-object)
         * 
         * @return builder
         * 
         */
        public Builder profile(String profile) {
            return profile(Output.of(profile));
        }

        /**
         * @param retainAssignment Retain the group assignment on destroy. If set to true, the resource will be removed from state but not from the Okta app.
         * 
         * @return builder
         * 
         */
        public Builder retainAssignment(@Nullable Output retainAssignment) {
            $.retainAssignment = retainAssignment;
            return this;
        }

        /**
         * @param retainAssignment Retain the group assignment on destroy. If set to true, the resource will be removed from state but not from the Okta app.
         * 
         * @return builder
         * 
         */
        public Builder retainAssignment(Boolean retainAssignment) {
            return retainAssignment(Output.of(retainAssignment));
        }

        public GroupAssignmentState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy