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

com.pulumi.alicloud.ecs.inputs.EcsSnapshotState Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.ecs.inputs;

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


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

    public static final EcsSnapshotState Empty = new EcsSnapshotState();

    /**
     * The category of the snapshot. Valid Values: `standard` and `flash`.
     * 
     */
    @Import(name="category")
    private @Nullable Output category;

    /**
     * @return The category of the snapshot. Valid Values: `standard` and `flash`.
     * 
     */
    public Optional> category() {
        return Optional.ofNullable(this.category);
    }

    /**
     * The description of the snapshot.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the snapshot.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The ID of the disk.
     * 
     */
    @Import(name="diskId")
    private @Nullable Output diskId;

    /**
     * @return The ID of the disk.
     * 
     */
    public Optional> diskId() {
        return Optional.ofNullable(this.diskId);
    }

    /**
     * Specifies whether to forcibly delete the snapshot that has been used to create disks.
     * 
     */
    @Import(name="force")
    private @Nullable Output force;

    /**
     * @return Specifies whether to forcibly delete the snapshot that has been used to create disks.
     * 
     */
    public Optional> force() {
        return Optional.ofNullable(this.force);
    }

    /**
     * Specifies whether to enable the instant access feature.
     * 
     */
    @Import(name="instantAccess")
    private @Nullable Output instantAccess;

    /**
     * @return Specifies whether to enable the instant access feature.
     * 
     */
    public Optional> instantAccess() {
        return Optional.ofNullable(this.instantAccess);
    }

    /**
     * Specifies the retention period of the instant access feature. After the retention period ends, the snapshot is automatically released.
     * 
     */
    @Import(name="instantAccessRetentionDays")
    private @Nullable Output instantAccessRetentionDays;

    /**
     * @return Specifies the retention period of the instant access feature. After the retention period ends, the snapshot is automatically released.
     * 
     */
    public Optional> instantAccessRetentionDays() {
        return Optional.ofNullable(this.instantAccessRetentionDays);
    }

    /**
     * Field `name` has been deprecated from provider version 1.120.0. New field `snapshot_name` instead.
     * 
     * @deprecated
     * Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead.
     * 
     */
    @Deprecated /* Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead. */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Field `name` has been deprecated from provider version 1.120.0. New field `snapshot_name` instead.
     * 
     * @deprecated
     * Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead.
     * 
     */
    @Deprecated /* Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead. */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The resource group id.
     * 
     */
    @Import(name="resourceGroupId")
    private @Nullable Output resourceGroupId;

    /**
     * @return The resource group id.
     * 
     */
    public Optional> resourceGroupId() {
        return Optional.ofNullable(this.resourceGroupId);
    }

    /**
     * The retention period of the snapshot.
     * 
     */
    @Import(name="retentionDays")
    private @Nullable Output retentionDays;

    /**
     * @return The retention period of the snapshot.
     * 
     */
    public Optional> retentionDays() {
        return Optional.ofNullable(this.retentionDays);
    }

    /**
     * The name of the snapshot.
     * 
     */
    @Import(name="snapshotName")
    private @Nullable Output snapshotName;

    /**
     * @return The name of the snapshot.
     * 
     */
    public Optional> snapshotName() {
        return Optional.ofNullable(this.snapshotName);
    }

    /**
     * The status of snapshot.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The status of snapshot.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * A mapping of tags to assign to the snapshot.
     * 
     * > **NOTE:** If `force` is true, After an snapshot is deleted, the disks created from this snapshot cannot be re-initialized.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the snapshot.
     * 
     * > **NOTE:** If `force` is true, After an snapshot is deleted, the disks created from this snapshot cannot be re-initialized.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private EcsSnapshotState() {}

    private EcsSnapshotState(EcsSnapshotState $) {
        this.category = $.category;
        this.description = $.description;
        this.diskId = $.diskId;
        this.force = $.force;
        this.instantAccess = $.instantAccess;
        this.instantAccessRetentionDays = $.instantAccessRetentionDays;
        this.name = $.name;
        this.resourceGroupId = $.resourceGroupId;
        this.retentionDays = $.retentionDays;
        this.snapshotName = $.snapshotName;
        this.status = $.status;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private EcsSnapshotState $;

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

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

        /**
         * @param category The category of the snapshot. Valid Values: `standard` and `flash`.
         * 
         * @return builder
         * 
         */
        public Builder category(@Nullable Output category) {
            $.category = category;
            return this;
        }

        /**
         * @param category The category of the snapshot. Valid Values: `standard` and `flash`.
         * 
         * @return builder
         * 
         */
        public Builder category(String category) {
            return category(Output.of(category));
        }

        /**
         * @param description The description of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param diskId The ID of the disk.
         * 
         * @return builder
         * 
         */
        public Builder diskId(@Nullable Output diskId) {
            $.diskId = diskId;
            return this;
        }

        /**
         * @param diskId The ID of the disk.
         * 
         * @return builder
         * 
         */
        public Builder diskId(String diskId) {
            return diskId(Output.of(diskId));
        }

        /**
         * @param force Specifies whether to forcibly delete the snapshot that has been used to create disks.
         * 
         * @return builder
         * 
         */
        public Builder force(@Nullable Output force) {
            $.force = force;
            return this;
        }

        /**
         * @param force Specifies whether to forcibly delete the snapshot that has been used to create disks.
         * 
         * @return builder
         * 
         */
        public Builder force(Boolean force) {
            return force(Output.of(force));
        }

        /**
         * @param instantAccess Specifies whether to enable the instant access feature.
         * 
         * @return builder
         * 
         */
        public Builder instantAccess(@Nullable Output instantAccess) {
            $.instantAccess = instantAccess;
            return this;
        }

        /**
         * @param instantAccess Specifies whether to enable the instant access feature.
         * 
         * @return builder
         * 
         */
        public Builder instantAccess(Boolean instantAccess) {
            return instantAccess(Output.of(instantAccess));
        }

        /**
         * @param instantAccessRetentionDays Specifies the retention period of the instant access feature. After the retention period ends, the snapshot is automatically released.
         * 
         * @return builder
         * 
         */
        public Builder instantAccessRetentionDays(@Nullable Output instantAccessRetentionDays) {
            $.instantAccessRetentionDays = instantAccessRetentionDays;
            return this;
        }

        /**
         * @param instantAccessRetentionDays Specifies the retention period of the instant access feature. After the retention period ends, the snapshot is automatically released.
         * 
         * @return builder
         * 
         */
        public Builder instantAccessRetentionDays(Integer instantAccessRetentionDays) {
            return instantAccessRetentionDays(Output.of(instantAccessRetentionDays));
        }

        /**
         * @param name Field `name` has been deprecated from provider version 1.120.0. New field `snapshot_name` instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead.
         * 
         */
        @Deprecated /* Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead. */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Field `name` has been deprecated from provider version 1.120.0. New field `snapshot_name` instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead.
         * 
         */
        @Deprecated /* Field 'name' has been deprecated from provider version 1.120.0. New field 'snapshot_name' instead. */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupId The resource group id.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupId(@Nullable Output resourceGroupId) {
            $.resourceGroupId = resourceGroupId;
            return this;
        }

        /**
         * @param resourceGroupId The resource group id.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupId(String resourceGroupId) {
            return resourceGroupId(Output.of(resourceGroupId));
        }

        /**
         * @param retentionDays The retention period of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder retentionDays(@Nullable Output retentionDays) {
            $.retentionDays = retentionDays;
            return this;
        }

        /**
         * @param retentionDays The retention period of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder retentionDays(Integer retentionDays) {
            return retentionDays(Output.of(retentionDays));
        }

        /**
         * @param snapshotName The name of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder snapshotName(@Nullable Output snapshotName) {
            $.snapshotName = snapshotName;
            return this;
        }

        /**
         * @param snapshotName The name of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder snapshotName(String snapshotName) {
            return snapshotName(Output.of(snapshotName));
        }

        /**
         * @param status The status of snapshot.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of snapshot.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param tags A mapping of tags to assign to the snapshot.
         * 
         * > **NOTE:** If `force` is true, After an snapshot is deleted, the disks created from this snapshot cannot be re-initialized.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the snapshot.
         * 
         * > **NOTE:** If `force` is true, After an snapshot is deleted, the disks created from this snapshot cannot be re-initialized.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public EcsSnapshotState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy