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

com.pulumi.digitalocean.inputs.VolumeSnapshotState Maven / Gradle / Ivy

There is a newer version: 4.35.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.digitalocean.inputs;

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


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

    public static final VolumeSnapshotState Empty = new VolumeSnapshotState();

    /**
     * The date and time the volume snapshot was created.
     * 
     */
    @Import(name="createdAt")
    private @Nullable Output createdAt;

    /**
     * @return The date and time the volume snapshot was created.
     * 
     */
    public Optional> createdAt() {
        return Optional.ofNullable(this.createdAt);
    }

    /**
     * The minimum size in gigabytes required for a volume to be created based on this volume snapshot.
     * 
     */
    @Import(name="minDiskSize")
    private @Nullable Output minDiskSize;

    /**
     * @return The minimum size in gigabytes required for a volume to be created based on this volume snapshot.
     * 
     */
    public Optional> minDiskSize() {
        return Optional.ofNullable(this.minDiskSize);
    }

    /**
     * A name for the volume snapshot.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return A name for the volume snapshot.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A list of DigitalOcean region "slugs" indicating where the volume snapshot is available.
     * 
     */
    @Import(name="regions")
    private @Nullable Output> regions;

    /**
     * @return A list of DigitalOcean region "slugs" indicating where the volume snapshot is available.
     * 
     */
    public Optional>> regions() {
        return Optional.ofNullable(this.regions);
    }

    /**
     * The billable size of the volume snapshot in gigabytes.
     * 
     */
    @Import(name="size")
    private @Nullable Output size;

    /**
     * @return The billable size of the volume snapshot in gigabytes.
     * 
     */
    public Optional> size() {
        return Optional.ofNullable(this.size);
    }

    /**
     * A list of the tags to be applied to this volume snapshot.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A list of the tags to be applied to this volume snapshot.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The ID of the volume from which the volume snapshot originated.
     * 
     */
    @Import(name="volumeId")
    private @Nullable Output volumeId;

    /**
     * @return The ID of the volume from which the volume snapshot originated.
     * 
     */
    public Optional> volumeId() {
        return Optional.ofNullable(this.volumeId);
    }

    private VolumeSnapshotState() {}

    private VolumeSnapshotState(VolumeSnapshotState $) {
        this.createdAt = $.createdAt;
        this.minDiskSize = $.minDiskSize;
        this.name = $.name;
        this.regions = $.regions;
        this.size = $.size;
        this.tags = $.tags;
        this.volumeId = $.volumeId;
    }

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

    public static final class Builder {
        private VolumeSnapshotState $;

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

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

        /**
         * @param createdAt The date and time the volume snapshot was created.
         * 
         * @return builder
         * 
         */
        public Builder createdAt(@Nullable Output createdAt) {
            $.createdAt = createdAt;
            return this;
        }

        /**
         * @param createdAt The date and time the volume snapshot was created.
         * 
         * @return builder
         * 
         */
        public Builder createdAt(String createdAt) {
            return createdAt(Output.of(createdAt));
        }

        /**
         * @param minDiskSize The minimum size in gigabytes required for a volume to be created based on this volume snapshot.
         * 
         * @return builder
         * 
         */
        public Builder minDiskSize(@Nullable Output minDiskSize) {
            $.minDiskSize = minDiskSize;
            return this;
        }

        /**
         * @param minDiskSize The minimum size in gigabytes required for a volume to be created based on this volume snapshot.
         * 
         * @return builder
         * 
         */
        public Builder minDiskSize(Integer minDiskSize) {
            return minDiskSize(Output.of(minDiskSize));
        }

        /**
         * @param name A name for the volume snapshot.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param regions A list of DigitalOcean region "slugs" indicating where the volume snapshot is available.
         * 
         * @return builder
         * 
         */
        public Builder regions(@Nullable Output> regions) {
            $.regions = regions;
            return this;
        }

        /**
         * @param regions A list of DigitalOcean region "slugs" indicating where the volume snapshot is available.
         * 
         * @return builder
         * 
         */
        public Builder regions(List regions) {
            return regions(Output.of(regions));
        }

        /**
         * @param regions A list of DigitalOcean region "slugs" indicating where the volume snapshot is available.
         * 
         * @return builder
         * 
         */
        public Builder regions(String... regions) {
            return regions(List.of(regions));
        }

        /**
         * @param size The billable size of the volume snapshot in gigabytes.
         * 
         * @return builder
         * 
         */
        public Builder size(@Nullable Output size) {
            $.size = size;
            return this;
        }

        /**
         * @param size The billable size of the volume snapshot in gigabytes.
         * 
         * @return builder
         * 
         */
        public Builder size(Double size) {
            return size(Output.of(size));
        }

        /**
         * @param tags A list of the tags to be applied to this volume snapshot.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A list of the tags to be applied to this volume snapshot.
         * 
         * @return builder
         * 
         */
        public Builder tags(List tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tags A list of the tags to be applied to this volume snapshot.
         * 
         * @return builder
         * 
         */
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }

        /**
         * @param volumeId The ID of the volume from which the volume snapshot originated.
         * 
         * @return builder
         * 
         */
        public Builder volumeId(@Nullable Output volumeId) {
            $.volumeId = volumeId;
            return this;
        }

        /**
         * @param volumeId The ID of the volume from which the volume snapshot originated.
         * 
         * @return builder
         * 
         */
        public Builder volumeId(String volumeId) {
            return volumeId(Output.of(volumeId));
        }

        public VolumeSnapshotState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy