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

com.pulumi.azurenative.elasticsan.outputs.GetVolumeSnapshotResult Maven / Gradle / Ivy

There is a newer version: 2.82.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.azurenative.elasticsan.outputs;

import com.pulumi.azurenative.elasticsan.outputs.SnapshotCreationDataResponse;
import com.pulumi.azurenative.elasticsan.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetVolumeSnapshotResult {
    /**
     * @return Data used when creating a volume snapshot.
     * 
     */
    private SnapshotCreationDataResponse creationData;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return State of the operation on the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return Size of Source Volume
     * 
     */
    private Double sourceVolumeSizeGiB;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;
    /**
     * @return Source Volume Name of a snapshot
     * 
     */
    private String volumeName;

    private GetVolumeSnapshotResult() {}
    /**
     * @return Data used when creating a volume snapshot.
     * 
     */
    public SnapshotCreationDataResponse creationData() {
        return this.creationData;
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return State of the operation on the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Size of Source Volume
     * 
     */
    public Double sourceVolumeSizeGiB() {
        return this.sourceVolumeSizeGiB;
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Source Volume Name of a snapshot
     * 
     */
    public String volumeName() {
        return this.volumeName;
    }

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

    public static Builder builder(GetVolumeSnapshotResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private SnapshotCreationDataResponse creationData;
        private String id;
        private String name;
        private String provisioningState;
        private Double sourceVolumeSizeGiB;
        private SystemDataResponse systemData;
        private String type;
        private String volumeName;
        public Builder() {}
        public Builder(GetVolumeSnapshotResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.creationData = defaults.creationData;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.sourceVolumeSizeGiB = defaults.sourceVolumeSizeGiB;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
    	      this.volumeName = defaults.volumeName;
        }

        @CustomType.Setter
        public Builder creationData(SnapshotCreationDataResponse creationData) {
            if (creationData == null) {
              throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "creationData");
            }
            this.creationData = creationData;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder sourceVolumeSizeGiB(Double sourceVolumeSizeGiB) {
            if (sourceVolumeSizeGiB == null) {
              throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "sourceVolumeSizeGiB");
            }
            this.sourceVolumeSizeGiB = sourceVolumeSizeGiB;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder volumeName(String volumeName) {
            if (volumeName == null) {
              throw new MissingRequiredPropertyException("GetVolumeSnapshotResult", "volumeName");
            }
            this.volumeName = volumeName;
            return this;
        }
        public GetVolumeSnapshotResult build() {
            final var _resultValue = new GetVolumeSnapshotResult();
            _resultValue.creationData = creationData;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.sourceVolumeSizeGiB = sourceVolumeSizeGiB;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            _resultValue.volumeName = volumeName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy