
com.pulumi.azurenative.hybridnetwork.outputs.DataDiskResponse 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.hybridnetwork.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DataDiskResponse {
/**
* @return Specifies how the virtual machine should be created.
*
*/
private @Nullable String createOption;
/**
* @return Specifies the size of an empty disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.
*
*/
private @Nullable Integer diskSizeGB;
/**
* @return The name of data disk.
*
*/
private @Nullable String name;
private DataDiskResponse() {}
/**
* @return Specifies how the virtual machine should be created.
*
*/
public Optional createOption() {
return Optional.ofNullable(this.createOption);
}
/**
* @return Specifies the size of an empty disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.
*
*/
public Optional diskSizeGB() {
return Optional.ofNullable(this.diskSizeGB);
}
/**
* @return The name of data disk.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DataDiskResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String createOption;
private @Nullable Integer diskSizeGB;
private @Nullable String name;
public Builder() {}
public Builder(DataDiskResponse defaults) {
Objects.requireNonNull(defaults);
this.createOption = defaults.createOption;
this.diskSizeGB = defaults.diskSizeGB;
this.name = defaults.name;
}
@CustomType.Setter
public Builder createOption(@Nullable String createOption) {
this.createOption = createOption;
return this;
}
@CustomType.Setter
public Builder diskSizeGB(@Nullable Integer diskSizeGB) {
this.diskSizeGB = diskSizeGB;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
public DataDiskResponse build() {
final var _resultValue = new DataDiskResponse();
_resultValue.createOption = createOption;
_resultValue.diskSizeGB = diskSizeGB;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy