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

com.pulumi.azure.siterecovery.inputs.ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.siterecovery.inputs;

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;


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

    public static final ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs Empty = new ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs();

    /**
     * The fabric location of runbook or script. Possible values are `Primary` and `Recovery`. It must not be specified when `type` is `ManualActionDetails`.
     * 
     * > **NOTE:** This is required when `type` is set to `AutomationRunbookActionDetails` or `ScriptActionDetails`.
     * 
     */
    @Import(name="fabricLocation")
    private @Nullable Output fabricLocation;

    /**
     * @return The fabric location of runbook or script. Possible values are `Primary` and `Recovery`. It must not be specified when `type` is `ManualActionDetails`.
     * 
     * > **NOTE:** This is required when `type` is set to `AutomationRunbookActionDetails` or `ScriptActionDetails`.
     * 
     */
    public Optional> fabricLocation() {
        return Optional.ofNullable(this.fabricLocation);
    }

    /**
     * Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
     * 
     */
    @Import(name="failOverDirections", required=true)
    private Output> failOverDirections;

    /**
     * @return Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
     * 
     */
    public Output> failOverDirections() {
        return this.failOverDirections;
    }

    /**
     * Types of fail over. Possible values are `TestFailover`, `PlannedFailover` and `UnplannedFailover`
     * 
     */
    @Import(name="failOverTypes", required=true)
    private Output> failOverTypes;

    /**
     * @return Types of fail over. Possible values are `TestFailover`, `PlannedFailover` and `UnplannedFailover`
     * 
     */
    public Output> failOverTypes() {
        return this.failOverTypes;
    }

    /**
     * Instructions of manual action.
     * 
     * > **NOTE:** This property is required when `type` is set to `ManualActionDetails`.
     * 
     */
    @Import(name="manualActionInstruction")
    private @Nullable Output manualActionInstruction;

    /**
     * @return Instructions of manual action.
     * 
     * > **NOTE:** This property is required when `type` is set to `ManualActionDetails`.
     * 
     */
    public Optional> manualActionInstruction() {
        return Optional.ofNullable(this.manualActionInstruction);
    }

    /**
     * The name of the Replication Plan. The name can contain only letters, numbers, and hyphens. It should start with a letter and end with a letter or a number. Can be a maximum of 63 characters. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the Replication Plan. The name can contain only letters, numbers, and hyphens. It should start with a letter and end with a letter or a number. Can be a maximum of 63 characters. Changing this forces a new resource to be created.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Id of runbook.
     * 
     * > **NOTE:** This property is required when `type` is set to `AutomationRunbookActionDetails`.
     * 
     */
    @Import(name="runbookId")
    private @Nullable Output runbookId;

    /**
     * @return Id of runbook.
     * 
     * > **NOTE:** This property is required when `type` is set to `AutomationRunbookActionDetails`.
     * 
     */
    public Optional> runbookId() {
        return Optional.ofNullable(this.runbookId);
    }

    /**
     * Path of action script.
     * 
     * > **NOTE:** This property is required when `type` is set to `ScriptActionDetails`.
     * 
     */
    @Import(name="scriptPath")
    private @Nullable Output scriptPath;

    /**
     * @return Path of action script.
     * 
     * > **NOTE:** This property is required when `type` is set to `ScriptActionDetails`.
     * 
     */
    public Optional> scriptPath() {
        return Optional.ofNullable(this.scriptPath);
    }

    /**
     * Type of the action detail. Possible values are `AutomationRunbookActionDetails`, `ManualActionDetails` and `ScriptActionDetails`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of the action detail. Possible values are `AutomationRunbookActionDetails`, `ManualActionDetails` and `ScriptActionDetails`.
     * 
     */
    public Output type() {
        return this.type;
    }

    private ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs() {}

    private ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs(ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs $) {
        this.fabricLocation = $.fabricLocation;
        this.failOverDirections = $.failOverDirections;
        this.failOverTypes = $.failOverTypes;
        this.manualActionInstruction = $.manualActionInstruction;
        this.name = $.name;
        this.runbookId = $.runbookId;
        this.scriptPath = $.scriptPath;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs $;

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

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

        /**
         * @param fabricLocation The fabric location of runbook or script. Possible values are `Primary` and `Recovery`. It must not be specified when `type` is `ManualActionDetails`.
         * 
         * > **NOTE:** This is required when `type` is set to `AutomationRunbookActionDetails` or `ScriptActionDetails`.
         * 
         * @return builder
         * 
         */
        public Builder fabricLocation(@Nullable Output fabricLocation) {
            $.fabricLocation = fabricLocation;
            return this;
        }

        /**
         * @param fabricLocation The fabric location of runbook or script. Possible values are `Primary` and `Recovery`. It must not be specified when `type` is `ManualActionDetails`.
         * 
         * > **NOTE:** This is required when `type` is set to `AutomationRunbookActionDetails` or `ScriptActionDetails`.
         * 
         * @return builder
         * 
         */
        public Builder fabricLocation(String fabricLocation) {
            return fabricLocation(Output.of(fabricLocation));
        }

        /**
         * @param failOverDirections Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
         * 
         * @return builder
         * 
         */
        public Builder failOverDirections(Output> failOverDirections) {
            $.failOverDirections = failOverDirections;
            return this;
        }

        /**
         * @param failOverDirections Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
         * 
         * @return builder
         * 
         */
        public Builder failOverDirections(List failOverDirections) {
            return failOverDirections(Output.of(failOverDirections));
        }

        /**
         * @param failOverDirections Directions of fail over. Possible values are `PrimaryToRecovery` and `RecoveryToPrimary`
         * 
         * @return builder
         * 
         */
        public Builder failOverDirections(String... failOverDirections) {
            return failOverDirections(List.of(failOverDirections));
        }

        /**
         * @param failOverTypes Types of fail over. Possible values are `TestFailover`, `PlannedFailover` and `UnplannedFailover`
         * 
         * @return builder
         * 
         */
        public Builder failOverTypes(Output> failOverTypes) {
            $.failOverTypes = failOverTypes;
            return this;
        }

        /**
         * @param failOverTypes Types of fail over. Possible values are `TestFailover`, `PlannedFailover` and `UnplannedFailover`
         * 
         * @return builder
         * 
         */
        public Builder failOverTypes(List failOverTypes) {
            return failOverTypes(Output.of(failOverTypes));
        }

        /**
         * @param failOverTypes Types of fail over. Possible values are `TestFailover`, `PlannedFailover` and `UnplannedFailover`
         * 
         * @return builder
         * 
         */
        public Builder failOverTypes(String... failOverTypes) {
            return failOverTypes(List.of(failOverTypes));
        }

        /**
         * @param manualActionInstruction Instructions of manual action.
         * 
         * > **NOTE:** This property is required when `type` is set to `ManualActionDetails`.
         * 
         * @return builder
         * 
         */
        public Builder manualActionInstruction(@Nullable Output manualActionInstruction) {
            $.manualActionInstruction = manualActionInstruction;
            return this;
        }

        /**
         * @param manualActionInstruction Instructions of manual action.
         * 
         * > **NOTE:** This property is required when `type` is set to `ManualActionDetails`.
         * 
         * @return builder
         * 
         */
        public Builder manualActionInstruction(String manualActionInstruction) {
            return manualActionInstruction(Output.of(manualActionInstruction));
        }

        /**
         * @param name The name of the Replication Plan. The name can contain only letters, numbers, and hyphens. It should start with a letter and end with a letter or a number. Can be a maximum of 63 characters. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Replication Plan. The name can contain only letters, numbers, and hyphens. It should start with a letter and end with a letter or a number. Can be a maximum of 63 characters. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param runbookId Id of runbook.
         * 
         * > **NOTE:** This property is required when `type` is set to `AutomationRunbookActionDetails`.
         * 
         * @return builder
         * 
         */
        public Builder runbookId(@Nullable Output runbookId) {
            $.runbookId = runbookId;
            return this;
        }

        /**
         * @param runbookId Id of runbook.
         * 
         * > **NOTE:** This property is required when `type` is set to `AutomationRunbookActionDetails`.
         * 
         * @return builder
         * 
         */
        public Builder runbookId(String runbookId) {
            return runbookId(Output.of(runbookId));
        }

        /**
         * @param scriptPath Path of action script.
         * 
         * > **NOTE:** This property is required when `type` is set to `ScriptActionDetails`.
         * 
         * @return builder
         * 
         */
        public Builder scriptPath(@Nullable Output scriptPath) {
            $.scriptPath = scriptPath;
            return this;
        }

        /**
         * @param scriptPath Path of action script.
         * 
         * > **NOTE:** This property is required when `type` is set to `ScriptActionDetails`.
         * 
         * @return builder
         * 
         */
        public Builder scriptPath(String scriptPath) {
            return scriptPath(Output.of(scriptPath));
        }

        /**
         * @param type Type of the action detail. Possible values are `AutomationRunbookActionDetails`, `ManualActionDetails` and `ScriptActionDetails`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the action detail. Possible values are `AutomationRunbookActionDetails`, `ManualActionDetails` and `ScriptActionDetails`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs build() {
            if ($.failOverDirections == null) {
                throw new MissingRequiredPropertyException("ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs", "failOverDirections");
            }
            if ($.failOverTypes == null) {
                throw new MissingRequiredPropertyException("ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs", "failOverTypes");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs", "name");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("ReplicationRecoveryPlanFailoverRecoveryGroupPreActionArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy