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

com.pulumi.linode.outputs.GetVolumesVolume Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.linode.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetVolumesVolume {
    /**
     * @return When this Volume was created.
     * 
     */
    private String created;
    /**
     * @return The full filesystem path for the Volume based on the Volume's label. Path is /dev/disk/by-id/scsi-0LinodeVolume + Volume label.
     * 
     */
    private String filesystemPath;
    /**
     * @return The unique ID of this Volume.
     * 
     */
    private Integer id;
    /**
     * @return This Volume's label is for display purposes only.
     * 
     */
    private String label;
    /**
     * @return If a Volume is attached to a specific Linode, the ID of that Linode will be displayed here. If the Volume is unattached, this value will be null.
     * 
     */
    private Integer linodeId;
    /**
     * @return The datacenter in which this Volume is located. See all regions [here](https://api.linode.com/v4/regions).
     * 
     */
    private String region;
    /**
     * @return The Volume's size, in GiB.
     * 
     */
    private Integer size;
    /**
     * @return The current status of the Volume. (`creating`, `active`, `resizing`, `contact_support`)
     * 
     */
    private String status;
    /**
     * @return An array of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
     * 
     */
    private List tags;
    /**
     * @return When this Volume was last updated.
     * 
     */
    private String updated;

    private GetVolumesVolume() {}
    /**
     * @return When this Volume was created.
     * 
     */
    public String created() {
        return this.created;
    }
    /**
     * @return The full filesystem path for the Volume based on the Volume's label. Path is /dev/disk/by-id/scsi-0LinodeVolume + Volume label.
     * 
     */
    public String filesystemPath() {
        return this.filesystemPath;
    }
    /**
     * @return The unique ID of this Volume.
     * 
     */
    public Integer id() {
        return this.id;
    }
    /**
     * @return This Volume's label is for display purposes only.
     * 
     */
    public String label() {
        return this.label;
    }
    /**
     * @return If a Volume is attached to a specific Linode, the ID of that Linode will be displayed here. If the Volume is unattached, this value will be null.
     * 
     */
    public Integer linodeId() {
        return this.linodeId;
    }
    /**
     * @return The datacenter in which this Volume is located. See all regions [here](https://api.linode.com/v4/regions).
     * 
     */
    public String region() {
        return this.region;
    }
    /**
     * @return The Volume's size, in GiB.
     * 
     */
    public Integer size() {
        return this.size;
    }
    /**
     * @return The current status of the Volume. (`creating`, `active`, `resizing`, `contact_support`)
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return An array of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
     * 
     */
    public List tags() {
        return this.tags;
    }
    /**
     * @return When this Volume was last updated.
     * 
     */
    public String updated() {
        return this.updated;
    }

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

    public static Builder builder(GetVolumesVolume defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String created;
        private String filesystemPath;
        private Integer id;
        private String label;
        private Integer linodeId;
        private String region;
        private Integer size;
        private String status;
        private List tags;
        private String updated;
        public Builder() {}
        public Builder(GetVolumesVolume defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.created = defaults.created;
    	      this.filesystemPath = defaults.filesystemPath;
    	      this.id = defaults.id;
    	      this.label = defaults.label;
    	      this.linodeId = defaults.linodeId;
    	      this.region = defaults.region;
    	      this.size = defaults.size;
    	      this.status = defaults.status;
    	      this.tags = defaults.tags;
    	      this.updated = defaults.updated;
        }

        @CustomType.Setter
        public Builder created(String created) {
            if (created == null) {
              throw new MissingRequiredPropertyException("GetVolumesVolume", "created");
            }
            this.created = created;
            return this;
        }
        @CustomType.Setter
        public Builder filesystemPath(String filesystemPath) {
            if (filesystemPath == null) {
              throw new MissingRequiredPropertyException("GetVolumesVolume", "filesystemPath");
            }
            this.filesystemPath = filesystemPath;
            return this;
        }
        @CustomType.Setter
        public Builder id(Integer id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetVolumesVolume", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder label(String label) {
            if (label == null) {
              throw new MissingRequiredPropertyException("GetVolumesVolume", "label");
            }
            this.label = label;
            return this;
        }
        @CustomType.Setter
        public Builder linodeId(Integer linodeId) {
            if (linodeId == null) {
              throw new MissingRequiredPropertyException("GetVolumesVolume", "linodeId");
            }
            this.linodeId = linodeId;
            return this;
        }
        @CustomType.Setter
        public Builder region(String region) {
            if (region == null) {
              throw new MissingRequiredPropertyException("GetVolumesVolume", "region");
            }
            this.region = region;
            return this;
        }
        @CustomType.Setter
        public Builder size(Integer size) {
            if (size == null) {
              throw new MissingRequiredPropertyException("GetVolumesVolume", "size");
            }
            this.size = size;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetVolumesVolume", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder tags(List tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetVolumesVolume", "tags");
            }
            this.tags = tags;
            return this;
        }
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }
        @CustomType.Setter
        public Builder updated(String updated) {
            if (updated == null) {
              throw new MissingRequiredPropertyException("GetVolumesVolume", "updated");
            }
            this.updated = updated;
            return this;
        }
        public GetVolumesVolume build() {
            final var _resultValue = new GetVolumesVolume();
            _resultValue.created = created;
            _resultValue.filesystemPath = filesystemPath;
            _resultValue.id = id;
            _resultValue.label = label;
            _resultValue.linodeId = linodeId;
            _resultValue.region = region;
            _resultValue.size = size;
            _resultValue.status = status;
            _resultValue.tags = tags;
            _resultValue.updated = updated;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy