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

com.pulumi.azuread.inputs.GroupRoleManagementPolicyEligibleAssignmentRulesArgs 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.inputs;

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


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

    public static final GroupRoleManagementPolicyEligibleAssignmentRulesArgs Empty = new GroupRoleManagementPolicyEligibleAssignmentRulesArgs();

    /**
     * Must an assignment have an expiry date. `false` allows permanent assignment.
     * 
     */
    @Import(name="expirationRequired")
    private @Nullable Output expirationRequired;

    /**
     * @return Must an assignment have an expiry date. `false` allows permanent assignment.
     * 
     */
    public Optional> expirationRequired() {
        return Optional.ofNullable(this.expirationRequired);
    }

    /**
     * The maximum length of time an assignment can be valid, as an ISO8601 duration. Permitted values: `P15D`, `P30D`, `P90D`, `P180D`, or `P365D`.
     * 
     * One of `expiration_required` or `expire_after` must be provided.
     * 
     */
    @Import(name="expireAfter")
    private @Nullable Output expireAfter;

    /**
     * @return The maximum length of time an assignment can be valid, as an ISO8601 duration. Permitted values: `P15D`, `P30D`, `P90D`, `P180D`, or `P365D`.
     * 
     * One of `expiration_required` or `expire_after` must be provided.
     * 
     */
    public Optional> expireAfter() {
        return Optional.ofNullable(this.expireAfter);
    }

    private GroupRoleManagementPolicyEligibleAssignmentRulesArgs() {}

    private GroupRoleManagementPolicyEligibleAssignmentRulesArgs(GroupRoleManagementPolicyEligibleAssignmentRulesArgs $) {
        this.expirationRequired = $.expirationRequired;
        this.expireAfter = $.expireAfter;
    }

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

    public static final class Builder {
        private GroupRoleManagementPolicyEligibleAssignmentRulesArgs $;

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

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

        /**
         * @param expirationRequired Must an assignment have an expiry date. `false` allows permanent assignment.
         * 
         * @return builder
         * 
         */
        public Builder expirationRequired(@Nullable Output expirationRequired) {
            $.expirationRequired = expirationRequired;
            return this;
        }

        /**
         * @param expirationRequired Must an assignment have an expiry date. `false` allows permanent assignment.
         * 
         * @return builder
         * 
         */
        public Builder expirationRequired(Boolean expirationRequired) {
            return expirationRequired(Output.of(expirationRequired));
        }

        /**
         * @param expireAfter The maximum length of time an assignment can be valid, as an ISO8601 duration. Permitted values: `P15D`, `P30D`, `P90D`, `P180D`, or `P365D`.
         * 
         * One of `expiration_required` or `expire_after` must be provided.
         * 
         * @return builder
         * 
         */
        public Builder expireAfter(@Nullable Output expireAfter) {
            $.expireAfter = expireAfter;
            return this;
        }

        /**
         * @param expireAfter The maximum length of time an assignment can be valid, as an ISO8601 duration. Permitted values: `P15D`, `P30D`, `P90D`, `P180D`, or `P365D`.
         * 
         * One of `expiration_required` or `expire_after` must be provided.
         * 
         * @return builder
         * 
         */
        public Builder expireAfter(String expireAfter) {
            return expireAfter(Output.of(expireAfter));
        }

        public GroupRoleManagementPolicyEligibleAssignmentRulesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy