
com.pulumi.azurenative.compute.outputs.RestorePointSourceVMDataDiskResponse Maven / Gradle / Ivy
// *** 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.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 RestorePointSourceVMDataDiskResponse {
/**
* @return Gets the caching type.
*
*/
private String caching;
/**
* @return Contains Disk Restore Point properties.
*
*/
private @Nullable DiskRestorePointAttributesResponse diskRestorePoint;
/**
* @return Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks.
*
*/
private Integer diskSizeGB;
/**
* @return Gets the logical unit number.
*
*/
private Integer lun;
/**
* @return Contains the managed disk details.
*
*/
private @Nullable ManagedDiskParametersResponse managedDisk;
/**
* @return Gets the disk name.
*
*/
private String name;
/**
* @return Shows true if the disk is write-accelerator enabled.
*
*/
private Boolean writeAcceleratorEnabled;
private RestorePointSourceVMDataDiskResponse() {}
/**
* @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 initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks.
*
*/
public Integer diskSizeGB() {
return this.diskSizeGB;
}
/**
* @return Gets the logical unit number.
*
*/
public Integer lun() {
return this.lun;
}
/**
* @return Contains the managed disk details.
*
*/
public Optional managedDisk() {
return Optional.ofNullable(this.managedDisk);
}
/**
* @return Gets the disk name.
*
*/
public String name() {
return this.name;
}
/**
* @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(RestorePointSourceVMDataDiskResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String caching;
private @Nullable DiskRestorePointAttributesResponse diskRestorePoint;
private Integer diskSizeGB;
private Integer lun;
private @Nullable ManagedDiskParametersResponse managedDisk;
private String name;
private Boolean writeAcceleratorEnabled;
public Builder() {}
public Builder(RestorePointSourceVMDataDiskResponse defaults) {
Objects.requireNonNull(defaults);
this.caching = defaults.caching;
this.diskRestorePoint = defaults.diskRestorePoint;
this.diskSizeGB = defaults.diskSizeGB;
this.lun = defaults.lun;
this.managedDisk = defaults.managedDisk;
this.name = defaults.name;
this.writeAcceleratorEnabled = defaults.writeAcceleratorEnabled;
}
@CustomType.Setter
public Builder caching(String caching) {
if (caching == null) {
throw new MissingRequiredPropertyException("RestorePointSourceVMDataDiskResponse", "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("RestorePointSourceVMDataDiskResponse", "diskSizeGB");
}
this.diskSizeGB = diskSizeGB;
return this;
}
@CustomType.Setter
public Builder lun(Integer lun) {
if (lun == null) {
throw new MissingRequiredPropertyException("RestorePointSourceVMDataDiskResponse", "lun");
}
this.lun = lun;
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("RestorePointSourceVMDataDiskResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder writeAcceleratorEnabled(Boolean writeAcceleratorEnabled) {
if (writeAcceleratorEnabled == null) {
throw new MissingRequiredPropertyException("RestorePointSourceVMDataDiskResponse", "writeAcceleratorEnabled");
}
this.writeAcceleratorEnabled = writeAcceleratorEnabled;
return this;
}
public RestorePointSourceVMDataDiskResponse build() {
final var _resultValue = new RestorePointSourceVMDataDiskResponse();
_resultValue.caching = caching;
_resultValue.diskRestorePoint = diskRestorePoint;
_resultValue.diskSizeGB = diskSizeGB;
_resultValue.lun = lun;
_resultValue.managedDisk = managedDisk;
_resultValue.name = name;
_resultValue.writeAcceleratorEnabled = writeAcceleratorEnabled;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy