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

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

There is a newer version: 2.82.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.SoftDeleteState;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Soft delete Settings of vault
 * 
 */
public final class SoftDeleteSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final SoftDeleteSettingsArgs Empty = new SoftDeleteSettingsArgs();

    /**
     * Soft delete retention period in days
     * 
     */
    @Import(name="softDeleteRetentionPeriodInDays")
    private @Nullable Output softDeleteRetentionPeriodInDays;

    /**
     * @return Soft delete retention period in days
     * 
     */
    public Optional> softDeleteRetentionPeriodInDays() {
        return Optional.ofNullable(this.softDeleteRetentionPeriodInDays);
    }

    @Import(name="softDeleteState")
    private @Nullable Output> softDeleteState;

    public Optional>> softDeleteState() {
        return Optional.ofNullable(this.softDeleteState);
    }

    private SoftDeleteSettingsArgs() {}

    private SoftDeleteSettingsArgs(SoftDeleteSettingsArgs $) {
        this.softDeleteRetentionPeriodInDays = $.softDeleteRetentionPeriodInDays;
        this.softDeleteState = $.softDeleteState;
    }

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

    public static final class Builder {
        private SoftDeleteSettingsArgs $;

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

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

        /**
         * @param softDeleteRetentionPeriodInDays Soft delete retention period in days
         * 
         * @return builder
         * 
         */
        public Builder softDeleteRetentionPeriodInDays(@Nullable Output softDeleteRetentionPeriodInDays) {
            $.softDeleteRetentionPeriodInDays = softDeleteRetentionPeriodInDays;
            return this;
        }

        /**
         * @param softDeleteRetentionPeriodInDays Soft delete retention period in days
         * 
         * @return builder
         * 
         */
        public Builder softDeleteRetentionPeriodInDays(Integer softDeleteRetentionPeriodInDays) {
            return softDeleteRetentionPeriodInDays(Output.of(softDeleteRetentionPeriodInDays));
        }

        public Builder softDeleteState(@Nullable Output> softDeleteState) {
            $.softDeleteState = softDeleteState;
            return this;
        }

        public Builder softDeleteState(Either softDeleteState) {
            return softDeleteState(Output.of(softDeleteState));
        }

        public Builder softDeleteState(String softDeleteState) {
            return softDeleteState(Either.ofLeft(softDeleteState));
        }

        public Builder softDeleteState(SoftDeleteState softDeleteState) {
            return softDeleteState(Either.ofRight(softDeleteState));
        }

        public SoftDeleteSettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy