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

import com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanShutdownRecoveryGroupPostActionArgs;
import com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ReplicationRecoveryPlanShutdownRecoveryGroupArgs Empty = new ReplicationRecoveryPlanShutdownRecoveryGroupArgs();

    /**
     * one or more `action` block as defined below. which will be executed after the group recovery.
     * 
     */
    @Import(name="postActions")
    private @Nullable Output<List<ReplicationRecoveryPlanShutdownRecoveryGroupPostActionArgs>> postActions;

    /**
     * @return one or more `action` block as defined below. which will be executed after the group recovery.
     * 
     */
    public Optional<Output<List<ReplicationRecoveryPlanShutdownRecoveryGroupPostActionArgs>>> postActions() {
        return Optional.ofNullable(this.postActions);
    }

    /**
     * one or more `action` block as defined below. which will be executed before the group recovery.
     * 
     */
    @Import(name="preActions")
    private @Nullable Output<List<ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs>> preActions;

    /**
     * @return one or more `action` block as defined below. which will be executed before the group recovery.
     * 
     */
    public Optional<Output<List<ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs>>> preActions() {
        return Optional.ofNullable(this.preActions);
    }

    private ReplicationRecoveryPlanShutdownRecoveryGroupArgs() {}

    private ReplicationRecoveryPlanShutdownRecoveryGroupArgs(ReplicationRecoveryPlanShutdownRecoveryGroupArgs $) {
        this.postActions = $.postActions;
        this.preActions = $.preActions;
    }

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

    public static final class Builder {
        private ReplicationRecoveryPlanShutdownRecoveryGroupArgs $;

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

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

        /**
         * @param postActions one or more `action` block as defined below. which will be executed after the group recovery.
         * 
         * @return builder
         * 
         */
        public Builder postActions(@Nullable Output<List<ReplicationRecoveryPlanShutdownRecoveryGroupPostActionArgs>> postActions) {
            $.postActions = postActions;
            return this;
        }

        /**
         * @param postActions one or more `action` block as defined below. which will be executed after the group recovery.
         * 
         * @return builder
         * 
         */
        public Builder postActions(List<ReplicationRecoveryPlanShutdownRecoveryGroupPostActionArgs> postActions) {
            return postActions(Output.of(postActions));
        }

        /**
         * @param postActions one or more `action` block as defined below. which will be executed after the group recovery.
         * 
         * @return builder
         * 
         */
        public Builder postActions(ReplicationRecoveryPlanShutdownRecoveryGroupPostActionArgs... postActions) {
            return postActions(List.of(postActions));
        }

        /**
         * @param preActions one or more `action` block as defined below. which will be executed before the group recovery.
         * 
         * @return builder
         * 
         */
        public Builder preActions(@Nullable Output<List<ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs>> preActions) {
            $.preActions = preActions;
            return this;
        }

        /**
         * @param preActions one or more `action` block as defined below. which will be executed before the group recovery.
         * 
         * @return builder
         * 
         */
        public Builder preActions(List<ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs> preActions) {
            return preActions(Output.of(preActions));
        }

        /**
         * @param preActions one or more `action` block as defined below. which will be executed before the group recovery.
         * 
         * @return builder
         * 
         */
        public Builder preActions(ReplicationRecoveryPlanShutdownRecoveryGroupPreActionArgs... preActions) {
            return preActions(List.of(preActions));
        }

        public ReplicationRecoveryPlanShutdownRecoveryGroupArgs build() {
            return $;
        }
    }

}
