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

com.pulumi.azurenative.recoveryservices.inputs.RecoveryPlanGroupArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.recoveryservices.inputs;

import com.pulumi.azurenative.recoveryservices.enums.RecoveryPlanGroupType;
import com.pulumi.azurenative.recoveryservices.inputs.RecoveryPlanActionArgs;
import com.pulumi.azurenative.recoveryservices.inputs.RecoveryPlanProtectedItemArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Recovery plan group details.
 * 
 */
public final class RecoveryPlanGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final RecoveryPlanGroupArgs Empty = new RecoveryPlanGroupArgs();

    /**
     * The end group actions.
     * 
     */
    @Import(name="endGroupActions")
    private @Nullable Output> endGroupActions;

    /**
     * @return The end group actions.
     * 
     */
    public Optional>> endGroupActions() {
        return Optional.ofNullable(this.endGroupActions);
    }

    /**
     * The group type.
     * 
     */
    @Import(name="groupType", required=true)
    private Output> groupType;

    /**
     * @return The group type.
     * 
     */
    public Output> groupType() {
        return this.groupType;
    }

    /**
     * The list of protected items.
     * 
     */
    @Import(name="replicationProtectedItems")
    private @Nullable Output> replicationProtectedItems;

    /**
     * @return The list of protected items.
     * 
     */
    public Optional>> replicationProtectedItems() {
        return Optional.ofNullable(this.replicationProtectedItems);
    }

    /**
     * The start group actions.
     * 
     */
    @Import(name="startGroupActions")
    private @Nullable Output> startGroupActions;

    /**
     * @return The start group actions.
     * 
     */
    public Optional>> startGroupActions() {
        return Optional.ofNullable(this.startGroupActions);
    }

    private RecoveryPlanGroupArgs() {}

    private RecoveryPlanGroupArgs(RecoveryPlanGroupArgs $) {
        this.endGroupActions = $.endGroupActions;
        this.groupType = $.groupType;
        this.replicationProtectedItems = $.replicationProtectedItems;
        this.startGroupActions = $.startGroupActions;
    }

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

    public static final class Builder {
        private RecoveryPlanGroupArgs $;

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

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

        /**
         * @param endGroupActions The end group actions.
         * 
         * @return builder
         * 
         */
        public Builder endGroupActions(@Nullable Output> endGroupActions) {
            $.endGroupActions = endGroupActions;
            return this;
        }

        /**
         * @param endGroupActions The end group actions.
         * 
         * @return builder
         * 
         */
        public Builder endGroupActions(List endGroupActions) {
            return endGroupActions(Output.of(endGroupActions));
        }

        /**
         * @param endGroupActions The end group actions.
         * 
         * @return builder
         * 
         */
        public Builder endGroupActions(RecoveryPlanActionArgs... endGroupActions) {
            return endGroupActions(List.of(endGroupActions));
        }

        /**
         * @param groupType The group type.
         * 
         * @return builder
         * 
         */
        public Builder groupType(Output> groupType) {
            $.groupType = groupType;
            return this;
        }

        /**
         * @param groupType The group type.
         * 
         * @return builder
         * 
         */
        public Builder groupType(Either groupType) {
            return groupType(Output.of(groupType));
        }

        /**
         * @param groupType The group type.
         * 
         * @return builder
         * 
         */
        public Builder groupType(String groupType) {
            return groupType(Either.ofLeft(groupType));
        }

        /**
         * @param groupType The group type.
         * 
         * @return builder
         * 
         */
        public Builder groupType(RecoveryPlanGroupType groupType) {
            return groupType(Either.ofRight(groupType));
        }

        /**
         * @param replicationProtectedItems The list of protected items.
         * 
         * @return builder
         * 
         */
        public Builder replicationProtectedItems(@Nullable Output> replicationProtectedItems) {
            $.replicationProtectedItems = replicationProtectedItems;
            return this;
        }

        /**
         * @param replicationProtectedItems The list of protected items.
         * 
         * @return builder
         * 
         */
        public Builder replicationProtectedItems(List replicationProtectedItems) {
            return replicationProtectedItems(Output.of(replicationProtectedItems));
        }

        /**
         * @param replicationProtectedItems The list of protected items.
         * 
         * @return builder
         * 
         */
        public Builder replicationProtectedItems(RecoveryPlanProtectedItemArgs... replicationProtectedItems) {
            return replicationProtectedItems(List.of(replicationProtectedItems));
        }

        /**
         * @param startGroupActions The start group actions.
         * 
         * @return builder
         * 
         */
        public Builder startGroupActions(@Nullable Output> startGroupActions) {
            $.startGroupActions = startGroupActions;
            return this;
        }

        /**
         * @param startGroupActions The start group actions.
         * 
         * @return builder
         * 
         */
        public Builder startGroupActions(List startGroupActions) {
            return startGroupActions(Output.of(startGroupActions));
        }

        /**
         * @param startGroupActions The start group actions.
         * 
         * @return builder
         * 
         */
        public Builder startGroupActions(RecoveryPlanActionArgs... startGroupActions) {
            return startGroupActions(List.of(startGroupActions));
        }

        public RecoveryPlanGroupArgs build() {
            if ($.groupType == null) {
                throw new MissingRequiredPropertyException("RecoveryPlanGroupArgs", "groupType");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy