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

com.pulumi.azurenative.compute.inputs.SoftDeletePolicyArgs Maven / Gradle / Ivy

The 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.compute.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Contains information about the soft deletion policy of the gallery.
 * 
 */
public final class SoftDeletePolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final SoftDeletePolicyArgs Empty = new SoftDeletePolicyArgs();

    /**
     * Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
     * 
     */
    @Import(name="isSoftDeleteEnabled")
    private @Nullable Output isSoftDeleteEnabled;

    /**
     * @return Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
     * 
     */
    public Optional> isSoftDeleteEnabled() {
        return Optional.ofNullable(this.isSoftDeleteEnabled);
    }

    private SoftDeletePolicyArgs() {}

    private SoftDeletePolicyArgs(SoftDeletePolicyArgs $) {
        this.isSoftDeleteEnabled = $.isSoftDeleteEnabled;
    }

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

    public static final class Builder {
        private SoftDeletePolicyArgs $;

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

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

        /**
         * @param isSoftDeleteEnabled Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
         * 
         * @return builder
         * 
         */
        public Builder isSoftDeleteEnabled(@Nullable Output isSoftDeleteEnabled) {
            $.isSoftDeleteEnabled = isSoftDeleteEnabled;
            return this;
        }

        /**
         * @param isSoftDeleteEnabled Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
         * 
         * @return builder
         * 
         */
        public Builder isSoftDeleteEnabled(Boolean isSoftDeleteEnabled) {
            return isSoftDeleteEnabled(Output.of(isSoftDeleteEnabled));
        }

        public SoftDeletePolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy