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

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

The 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.DiskEncryptionSettingsResponse;
import com.pulumi.azurenative.compute.outputs.DiskRestorePointAttributesResponse;
import com.pulumi.azurenative.compute.outputs.ManagedDiskParametersResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RestorePointSourceVMOSDiskResponse {
    /**
     * @return Gets the caching type.
     * 
     */
    private String caching;
    /**
     * @return Contains Disk Restore Point properties.
     * 
     */
    private @Nullable DiskRestorePointAttributesResponse diskRestorePoint;
    /**
     * @return Gets the disk size in GB.
     * 
     */
    private Integer diskSizeGB;
    /**
     * @return Gets the disk encryption settings.
     * 
     */
    private DiskEncryptionSettingsResponse encryptionSettings;
    /**
     * @return Gets the managed disk details
     * 
     */
    private @Nullable ManagedDiskParametersResponse managedDisk;
    /**
     * @return Gets the disk name.
     * 
     */
    private String name;
    /**
     * @return Gets the Operating System type.
     * 
     */
    private String osType;
    /**
     * @return Shows true if the disk is write-accelerator enabled.
     * 
     */
    private Boolean writeAcceleratorEnabled;

    private RestorePointSourceVMOSDiskResponse() {}
    /**
     * @return Gets the caching type.
     * 
     */
    public String caching() {
        return this.caching;
    }
    /**
     * @return Contains Disk Restore Point properties.
     * 
     */
    public Optional diskRestorePoint() {
        return Optional.ofNullable(this.diskRestorePoint);
    }
    /**
     * @return Gets the disk size in GB.
     * 
     */
    public Integer diskSizeGB() {
        return this.diskSizeGB;
    }
    /**
     * @return Gets the disk encryption settings.
     * 
     */
    public DiskEncryptionSettingsResponse encryptionSettings() {
        return this.encryptionSettings;
    }
    /**
     * @return Gets the managed disk details
     * 
     */
    public Optional managedDisk() {
        return Optional.ofNullable(this.managedDisk);
    }
    /**
     * @return Gets the disk name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Gets the Operating System type.
     * 
     */
    public String osType() {
        return this.osType;
    }
    /**
     * @return Shows true if the disk is write-accelerator enabled.
     * 
     */
    public Boolean writeAcceleratorEnabled() {
        return this.writeAcceleratorEnabled;
    }

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

    public static Builder builder(RestorePointSourceVMOSDiskResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String caching;
        private @Nullable DiskRestorePointAttributesResponse diskRestorePoint;
        private Integer diskSizeGB;
        private DiskEncryptionSettingsResponse encryptionSettings;
        private @Nullable ManagedDiskParametersResponse managedDisk;
        private String name;
        private String osType;
        private Boolean writeAcceleratorEnabled;
        public Builder() {}
        public Builder(RestorePointSourceVMOSDiskResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.caching = defaults.caching;
    	      this.diskRestorePoint = defaults.diskRestorePoint;
    	      this.diskSizeGB = defaults.diskSizeGB;
    	      this.encryptionSettings = defaults.encryptionSettings;
    	      this.managedDisk = defaults.managedDisk;
    	      this.name = defaults.name;
    	      this.osType = defaults.osType;
    	      this.writeAcceleratorEnabled = defaults.writeAcceleratorEnabled;
        }

        @CustomType.Setter
        public Builder caching(String caching) {
            if (caching == null) {
              throw new MissingRequiredPropertyException("RestorePointSourceVMOSDiskResponse", "caching");
            }
            this.caching = caching;
            return this;
        }
        @CustomType.Setter
        public Builder diskRestorePoint(@Nullable DiskRestorePointAttributesResponse diskRestorePoint) {

            this.diskRestorePoint = diskRestorePoint;
            return this;
        }
        @CustomType.Setter
        public Builder diskSizeGB(Integer diskSizeGB) {
            if (diskSizeGB == null) {
              throw new MissingRequiredPropertyException("RestorePointSourceVMOSDiskResponse", "diskSizeGB");
            }
            this.diskSizeGB = diskSizeGB;
            return this;
        }
        @CustomType.Setter
        public Builder encryptionSettings(DiskEncryptionSettingsResponse encryptionSettings) {
            if (encryptionSettings == null) {
              throw new MissingRequiredPropertyException("RestorePointSourceVMOSDiskResponse", "encryptionSettings");
            }
            this.encryptionSettings = encryptionSettings;
            return this;
        }
        @CustomType.Setter
        public Builder managedDisk(@Nullable ManagedDiskParametersResponse managedDisk) {

            this.managedDisk = managedDisk;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("RestorePointSourceVMOSDiskResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder osType(String osType) {
            if (osType == null) {
              throw new MissingRequiredPropertyException("RestorePointSourceVMOSDiskResponse", "osType");
            }
            this.osType = osType;
            return this;
        }
        @CustomType.Setter
        public Builder writeAcceleratorEnabled(Boolean writeAcceleratorEnabled) {
            if (writeAcceleratorEnabled == null) {
              throw new MissingRequiredPropertyException("RestorePointSourceVMOSDiskResponse", "writeAcceleratorEnabled");
            }
            this.writeAcceleratorEnabled = writeAcceleratorEnabled;
            return this;
        }
        public RestorePointSourceVMOSDiskResponse build() {
            final var _resultValue = new RestorePointSourceVMOSDiskResponse();
            _resultValue.caching = caching;
            _resultValue.diskRestorePoint = diskRestorePoint;
            _resultValue.diskSizeGB = diskSizeGB;
            _resultValue.encryptionSettings = encryptionSettings;
            _resultValue.managedDisk = managedDisk;
            _resultValue.name = name;
            _resultValue.osType = osType;
            _resultValue.writeAcceleratorEnabled = writeAcceleratorEnabled;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy