com.pulumi.azurenative.connectedvmwarevsphere.outputs.StorageProfileResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.connectedvmwarevsphere.outputs;
import com.pulumi.azurenative.connectedvmwarevsphere.outputs.VirtualDiskResponse;
import com.pulumi.azurenative.connectedvmwarevsphere.outputs.VirtualSCSIControllerResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class StorageProfileResponse {
/**
* @return Gets or sets the list of virtual disks associated with the virtual machine.
*
*/
private @Nullable List disks;
/**
* @return Gets or sets the list of virtual SCSI controllers associated with the virtual machine.
*
*/
private List scsiControllers;
private StorageProfileResponse() {}
/**
* @return Gets or sets the list of virtual disks associated with the virtual machine.
*
*/
public List disks() {
return this.disks == null ? List.of() : this.disks;
}
/**
* @return Gets or sets the list of virtual SCSI controllers associated with the virtual machine.
*
*/
public List scsiControllers() {
return this.scsiControllers;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StorageProfileResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List disks;
private List scsiControllers;
public Builder() {}
public Builder(StorageProfileResponse defaults) {
Objects.requireNonNull(defaults);
this.disks = defaults.disks;
this.scsiControllers = defaults.scsiControllers;
}
@CustomType.Setter
public Builder disks(@Nullable List disks) {
this.disks = disks;
return this;
}
public Builder disks(VirtualDiskResponse... disks) {
return disks(List.of(disks));
}
@CustomType.Setter
public Builder scsiControllers(List scsiControllers) {
if (scsiControllers == null) {
throw new MissingRequiredPropertyException("StorageProfileResponse", "scsiControllers");
}
this.scsiControllers = scsiControllers;
return this;
}
public Builder scsiControllers(VirtualSCSIControllerResponse... scsiControllers) {
return scsiControllers(List.of(scsiControllers));
}
public StorageProfileResponse build() {
final var _resultValue = new StorageProfileResponse();
_resultValue.disks = disks;
_resultValue.scsiControllers = scsiControllers;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy