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

com.pulumi.azure.storage.inputs.ManagementPolicyRuleActionsSnapshotArgs Maven / Gradle / Ivy

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

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


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

    public static final ManagementPolicyRuleActionsSnapshotArgs Empty = new ManagementPolicyRuleActionsSnapshotArgs();

    /**
     * The age in days after creation to tier blob snapshot to archive storage. Must be between `0` and `99999`. Defaults to `-1`.
     * 
     */
    @Import(name="changeTierToArchiveAfterDaysSinceCreation")
    private @Nullable Output changeTierToArchiveAfterDaysSinceCreation;

    /**
     * @return The age in days after creation to tier blob snapshot to archive storage. Must be between `0` and `99999`. Defaults to `-1`.
     * 
     */
    public Optional> changeTierToArchiveAfterDaysSinceCreation() {
        return Optional.ofNullable(this.changeTierToArchiveAfterDaysSinceCreation);
    }

    /**
     * The age in days after creation to tier blob snapshot to cool storage. Must be between `0` and `99999`. Defaults to `-1`.
     * 
     */
    @Import(name="changeTierToCoolAfterDaysSinceCreation")
    private @Nullable Output changeTierToCoolAfterDaysSinceCreation;

    /**
     * @return The age in days after creation to tier blob snapshot to cool storage. Must be between `0` and `99999`. Defaults to `-1`.
     * 
     */
    public Optional> changeTierToCoolAfterDaysSinceCreation() {
        return Optional.ofNullable(this.changeTierToCoolAfterDaysSinceCreation);
    }

    /**
     * The age in days after creation to delete the blob snapshot. Must be between `0` and `99999`. Defaults to `-1`.
     * 
     */
    @Import(name="deleteAfterDaysSinceCreationGreaterThan")
    private @Nullable Output deleteAfterDaysSinceCreationGreaterThan;

    /**
     * @return The age in days after creation to delete the blob snapshot. Must be between `0` and `99999`. Defaults to `-1`.
     * 
     */
    public Optional> deleteAfterDaysSinceCreationGreaterThan() {
        return Optional.ofNullable(this.deleteAfterDaysSinceCreationGreaterThan);
    }

    /**
     * The age in days after last tier change to the blobs to skip to be archved. Must be between `0` and `99999`. Defaults to `-1`.
     * 
     */
    @Import(name="tierToArchiveAfterDaysSinceLastTierChangeGreaterThan")
    private @Nullable Output tierToArchiveAfterDaysSinceLastTierChangeGreaterThan;

    /**
     * @return The age in days after last tier change to the blobs to skip to be archved. Must be between `0` and `99999`. Defaults to `-1`.
     * 
     */
    public Optional> tierToArchiveAfterDaysSinceLastTierChangeGreaterThan() {
        return Optional.ofNullable(this.tierToArchiveAfterDaysSinceLastTierChangeGreaterThan);
    }

    /**
     * The age in days after creation to cold storage. Supports blob currently at Hot tier. Must be between `0` and `99999`. Defaults to `-1`.
     * 
     */
    @Import(name="tierToColdAfterDaysSinceCreationGreaterThan")
    private @Nullable Output tierToColdAfterDaysSinceCreationGreaterThan;

    /**
     * @return The age in days after creation to cold storage. Supports blob currently at Hot tier. Must be between `0` and `99999`. Defaults to `-1`.
     * 
     */
    public Optional> tierToColdAfterDaysSinceCreationGreaterThan() {
        return Optional.ofNullable(this.tierToColdAfterDaysSinceCreationGreaterThan);
    }

    private ManagementPolicyRuleActionsSnapshotArgs() {}

    private ManagementPolicyRuleActionsSnapshotArgs(ManagementPolicyRuleActionsSnapshotArgs $) {
        this.changeTierToArchiveAfterDaysSinceCreation = $.changeTierToArchiveAfterDaysSinceCreation;
        this.changeTierToCoolAfterDaysSinceCreation = $.changeTierToCoolAfterDaysSinceCreation;
        this.deleteAfterDaysSinceCreationGreaterThan = $.deleteAfterDaysSinceCreationGreaterThan;
        this.tierToArchiveAfterDaysSinceLastTierChangeGreaterThan = $.tierToArchiveAfterDaysSinceLastTierChangeGreaterThan;
        this.tierToColdAfterDaysSinceCreationGreaterThan = $.tierToColdAfterDaysSinceCreationGreaterThan;
    }

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

    public static final class Builder {
        private ManagementPolicyRuleActionsSnapshotArgs $;

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

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

        /**
         * @param changeTierToArchiveAfterDaysSinceCreation The age in days after creation to tier blob snapshot to archive storage. Must be between `0` and `99999`. Defaults to `-1`.
         * 
         * @return builder
         * 
         */
        public Builder changeTierToArchiveAfterDaysSinceCreation(@Nullable Output changeTierToArchiveAfterDaysSinceCreation) {
            $.changeTierToArchiveAfterDaysSinceCreation = changeTierToArchiveAfterDaysSinceCreation;
            return this;
        }

        /**
         * @param changeTierToArchiveAfterDaysSinceCreation The age in days after creation to tier blob snapshot to archive storage. Must be between `0` and `99999`. Defaults to `-1`.
         * 
         * @return builder
         * 
         */
        public Builder changeTierToArchiveAfterDaysSinceCreation(Integer changeTierToArchiveAfterDaysSinceCreation) {
            return changeTierToArchiveAfterDaysSinceCreation(Output.of(changeTierToArchiveAfterDaysSinceCreation));
        }

        /**
         * @param changeTierToCoolAfterDaysSinceCreation The age in days after creation to tier blob snapshot to cool storage. Must be between `0` and `99999`. Defaults to `-1`.
         * 
         * @return builder
         * 
         */
        public Builder changeTierToCoolAfterDaysSinceCreation(@Nullable Output changeTierToCoolAfterDaysSinceCreation) {
            $.changeTierToCoolAfterDaysSinceCreation = changeTierToCoolAfterDaysSinceCreation;
            return this;
        }

        /**
         * @param changeTierToCoolAfterDaysSinceCreation The age in days after creation to tier blob snapshot to cool storage. Must be between `0` and `99999`. Defaults to `-1`.
         * 
         * @return builder
         * 
         */
        public Builder changeTierToCoolAfterDaysSinceCreation(Integer changeTierToCoolAfterDaysSinceCreation) {
            return changeTierToCoolAfterDaysSinceCreation(Output.of(changeTierToCoolAfterDaysSinceCreation));
        }

        /**
         * @param deleteAfterDaysSinceCreationGreaterThan The age in days after creation to delete the blob snapshot. Must be between `0` and `99999`. Defaults to `-1`.
         * 
         * @return builder
         * 
         */
        public Builder deleteAfterDaysSinceCreationGreaterThan(@Nullable Output deleteAfterDaysSinceCreationGreaterThan) {
            $.deleteAfterDaysSinceCreationGreaterThan = deleteAfterDaysSinceCreationGreaterThan;
            return this;
        }

        /**
         * @param deleteAfterDaysSinceCreationGreaterThan The age in days after creation to delete the blob snapshot. Must be between `0` and `99999`. Defaults to `-1`.
         * 
         * @return builder
         * 
         */
        public Builder deleteAfterDaysSinceCreationGreaterThan(Integer deleteAfterDaysSinceCreationGreaterThan) {
            return deleteAfterDaysSinceCreationGreaterThan(Output.of(deleteAfterDaysSinceCreationGreaterThan));
        }

        /**
         * @param tierToArchiveAfterDaysSinceLastTierChangeGreaterThan The age in days after last tier change to the blobs to skip to be archved. Must be between `0` and `99999`. Defaults to `-1`.
         * 
         * @return builder
         * 
         */
        public Builder tierToArchiveAfterDaysSinceLastTierChangeGreaterThan(@Nullable Output tierToArchiveAfterDaysSinceLastTierChangeGreaterThan) {
            $.tierToArchiveAfterDaysSinceLastTierChangeGreaterThan = tierToArchiveAfterDaysSinceLastTierChangeGreaterThan;
            return this;
        }

        /**
         * @param tierToArchiveAfterDaysSinceLastTierChangeGreaterThan The age in days after last tier change to the blobs to skip to be archved. Must be between `0` and `99999`. Defaults to `-1`.
         * 
         * @return builder
         * 
         */
        public Builder tierToArchiveAfterDaysSinceLastTierChangeGreaterThan(Integer tierToArchiveAfterDaysSinceLastTierChangeGreaterThan) {
            return tierToArchiveAfterDaysSinceLastTierChangeGreaterThan(Output.of(tierToArchiveAfterDaysSinceLastTierChangeGreaterThan));
        }

        /**
         * @param tierToColdAfterDaysSinceCreationGreaterThan The age in days after creation to cold storage. Supports blob currently at Hot tier. Must be between `0` and `99999`. Defaults to `-1`.
         * 
         * @return builder
         * 
         */
        public Builder tierToColdAfterDaysSinceCreationGreaterThan(@Nullable Output tierToColdAfterDaysSinceCreationGreaterThan) {
            $.tierToColdAfterDaysSinceCreationGreaterThan = tierToColdAfterDaysSinceCreationGreaterThan;
            return this;
        }

        /**
         * @param tierToColdAfterDaysSinceCreationGreaterThan The age in days after creation to cold storage. Supports blob currently at Hot tier. Must be between `0` and `99999`. Defaults to `-1`.
         * 
         * @return builder
         * 
         */
        public Builder tierToColdAfterDaysSinceCreationGreaterThan(Integer tierToColdAfterDaysSinceCreationGreaterThan) {
            return tierToColdAfterDaysSinceCreationGreaterThan(Output.of(tierToColdAfterDaysSinceCreationGreaterThan));
        }

        public ManagementPolicyRuleActionsSnapshotArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy