
com.pulumi.azurenative.workloads.outputs.SAPDiskConfigurationResponse 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.workloads.outputs;
import com.pulumi.azurenative.workloads.outputs.DiskDetailsResponse;
import com.pulumi.azurenative.workloads.outputs.DiskVolumeConfigurationResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SAPDiskConfigurationResponse {
/**
* @return The recommended disk details for a given VM Sku.
*
*/
private @Nullable DiskVolumeConfigurationResponse recommendedConfiguration;
/**
* @return The list of supported disks for a given VM Sku.
*
*/
private @Nullable List supportedConfigurations;
private SAPDiskConfigurationResponse() {}
/**
* @return The recommended disk details for a given VM Sku.
*
*/
public Optional recommendedConfiguration() {
return Optional.ofNullable(this.recommendedConfiguration);
}
/**
* @return The list of supported disks for a given VM Sku.
*
*/
public List supportedConfigurations() {
return this.supportedConfigurations == null ? List.of() : this.supportedConfigurations;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SAPDiskConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable DiskVolumeConfigurationResponse recommendedConfiguration;
private @Nullable List supportedConfigurations;
public Builder() {}
public Builder(SAPDiskConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.recommendedConfiguration = defaults.recommendedConfiguration;
this.supportedConfigurations = defaults.supportedConfigurations;
}
@CustomType.Setter
public Builder recommendedConfiguration(@Nullable DiskVolumeConfigurationResponse recommendedConfiguration) {
this.recommendedConfiguration = recommendedConfiguration;
return this;
}
@CustomType.Setter
public Builder supportedConfigurations(@Nullable List supportedConfigurations) {
this.supportedConfigurations = supportedConfigurations;
return this;
}
public Builder supportedConfigurations(DiskDetailsResponse... supportedConfigurations) {
return supportedConfigurations(List.of(supportedConfigurations));
}
public SAPDiskConfigurationResponse build() {
final var _resultValue = new SAPDiskConfigurationResponse();
_resultValue.recommendedConfiguration = recommendedConfiguration;
_resultValue.supportedConfigurations = supportedConfigurations;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy