// *** 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.azure.pim.inputs;

import com.pulumi.azure.pim.inputs.EligibleRoleAssignmentScheduleExpirationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EligibleRoleAssignmentScheduleArgs Empty = new EligibleRoleAssignmentScheduleArgs();

    /**
     * A `expiration` block as defined above.
     * 
     */
    @Import(name="expiration")
    private @Nullable Output<EligibleRoleAssignmentScheduleExpirationArgs> expiration;

    /**
     * @return A `expiration` block as defined above.
     * 
     */
    public Optional<Output<EligibleRoleAssignmentScheduleExpirationArgs>> expiration() {
        return Optional.ofNullable(this.expiration);
    }

    /**
     * The start date time of the role assignment. Changing this forces a new Pim Eligible Role Assignment to be created.
     * 
     */
    @Import(name="startDateTime")
    private @Nullable Output<String> startDateTime;

    /**
     * @return The start date time of the role assignment. Changing this forces a new Pim Eligible Role Assignment to be created.
     * 
     */
    public Optional<Output<String>> startDateTime() {
        return Optional.ofNullable(this.startDateTime);
    }

    private EligibleRoleAssignmentScheduleArgs() {}

    private EligibleRoleAssignmentScheduleArgs(EligibleRoleAssignmentScheduleArgs $) {
        this.expiration = $.expiration;
        this.startDateTime = $.startDateTime;
    }

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

    public static final class Builder {
        private EligibleRoleAssignmentScheduleArgs $;

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

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

        /**
         * @param expiration A `expiration` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder expiration(@Nullable Output<EligibleRoleAssignmentScheduleExpirationArgs> expiration) {
            $.expiration = expiration;
            return this;
        }

        /**
         * @param expiration A `expiration` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder expiration(EligibleRoleAssignmentScheduleExpirationArgs expiration) {
            return expiration(Output.of(expiration));
        }

        /**
         * @param startDateTime The start date time of the role assignment. Changing this forces a new Pim Eligible Role Assignment to be created.
         * 
         * @return builder
         * 
         */
        public Builder startDateTime(@Nullable Output<String> startDateTime) {
            $.startDateTime = startDateTime;
            return this;
        }

        /**
         * @param startDateTime The start date time of the role assignment. Changing this forces a new Pim Eligible Role Assignment to be created.
         * 
         * @return builder
         * 
         */
        public Builder startDateTime(String startDateTime) {
            return startDateTime(Output.of(startDateTime));
        }

        public EligibleRoleAssignmentScheduleArgs build() {
            return $;
        }
    }

}
