com.pulumi.azurenative.baremetalinfrastructure.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.baremetalinfrastructure.outputs;
import com.pulumi.azurenative.baremetalinfrastructure.outputs.DiskResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class StorageProfileResponse {
/**
* @return IP Address to connect to storage.
*
*/
private @Nullable String nfsIpAddress;
/**
* @return Specifies information about the operating system disk used by bare metal instance.
*
*/
private @Nullable List osDisks;
private StorageProfileResponse() {}
/**
* @return IP Address to connect to storage.
*
*/
public Optional nfsIpAddress() {
return Optional.ofNullable(this.nfsIpAddress);
}
/**
* @return Specifies information about the operating system disk used by bare metal instance.
*
*/
public List osDisks() {
return this.osDisks == null ? List.of() : this.osDisks;
}
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 String nfsIpAddress;
private @Nullable List osDisks;
public Builder() {}
public Builder(StorageProfileResponse defaults) {
Objects.requireNonNull(defaults);
this.nfsIpAddress = defaults.nfsIpAddress;
this.osDisks = defaults.osDisks;
}
@CustomType.Setter
public Builder nfsIpAddress(@Nullable String nfsIpAddress) {
this.nfsIpAddress = nfsIpAddress;
return this;
}
@CustomType.Setter
public Builder osDisks(@Nullable List osDisks) {
this.osDisks = osDisks;
return this;
}
public Builder osDisks(DiskResponse... osDisks) {
return osDisks(List.of(osDisks));
}
public StorageProfileResponse build() {
final var _resultValue = new StorageProfileResponse();
_resultValue.nfsIpAddress = nfsIpAddress;
_resultValue.osDisks = osDisks;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy