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

com.pulumi.azurenative.compute.outputs.RestorePointSourceVMStorageProfileResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.compute.outputs;

import com.pulumi.azurenative.compute.outputs.RestorePointSourceVMDataDiskResponse;
import com.pulumi.azurenative.compute.outputs.RestorePointSourceVMOSDiskResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RestorePointSourceVMStorageProfileResponse {
    /**
     * @return Gets the data disks of the VM captured at the time of the restore point creation.
     * 
     */
    private @Nullable List dataDisks;
    /**
     * @return Gets the OS disk of the VM captured at the time of the restore point creation.
     * 
     */
    private @Nullable RestorePointSourceVMOSDiskResponse osDisk;

    private RestorePointSourceVMStorageProfileResponse() {}
    /**
     * @return Gets the data disks of the VM captured at the time of the restore point creation.
     * 
     */
    public List dataDisks() {
        return this.dataDisks == null ? List.of() : this.dataDisks;
    }
    /**
     * @return Gets the OS disk of the VM captured at the time of the restore point creation.
     * 
     */
    public Optional osDisk() {
        return Optional.ofNullable(this.osDisk);
    }

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

    public static Builder builder(RestorePointSourceVMStorageProfileResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List dataDisks;
        private @Nullable RestorePointSourceVMOSDiskResponse osDisk;
        public Builder() {}
        public Builder(RestorePointSourceVMStorageProfileResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dataDisks = defaults.dataDisks;
    	      this.osDisk = defaults.osDisk;
        }

        @CustomType.Setter
        public Builder dataDisks(@Nullable List dataDisks) {

            this.dataDisks = dataDisks;
            return this;
        }
        public Builder dataDisks(RestorePointSourceVMDataDiskResponse... dataDisks) {
            return dataDisks(List.of(dataDisks));
        }
        @CustomType.Setter
        public Builder osDisk(@Nullable RestorePointSourceVMOSDiskResponse osDisk) {

            this.osDisk = osDisk;
            return this;
        }
        public RestorePointSourceVMStorageProfileResponse build() {
            final var _resultValue = new RestorePointSourceVMStorageProfileResponse();
            _resultValue.dataDisks = dataDisks;
            _resultValue.osDisk = osDisk;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy