
com.pulumi.azurenative.hdinsight.outputs.AutoscaleResponse 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.hdinsight.outputs;
import com.pulumi.azurenative.hdinsight.outputs.AutoscaleCapacityResponse;
import com.pulumi.azurenative.hdinsight.outputs.AutoscaleRecurrenceResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AutoscaleResponse {
/**
* @return Parameters for load-based autoscale
*
*/
private @Nullable AutoscaleCapacityResponse capacity;
/**
* @return Parameters for schedule-based autoscale
*
*/
private @Nullable AutoscaleRecurrenceResponse recurrence;
private AutoscaleResponse() {}
/**
* @return Parameters for load-based autoscale
*
*/
public Optional capacity() {
return Optional.ofNullable(this.capacity);
}
/**
* @return Parameters for schedule-based autoscale
*
*/
public Optional recurrence() {
return Optional.ofNullable(this.recurrence);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutoscaleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable AutoscaleCapacityResponse capacity;
private @Nullable AutoscaleRecurrenceResponse recurrence;
public Builder() {}
public Builder(AutoscaleResponse defaults) {
Objects.requireNonNull(defaults);
this.capacity = defaults.capacity;
this.recurrence = defaults.recurrence;
}
@CustomType.Setter
public Builder capacity(@Nullable AutoscaleCapacityResponse capacity) {
this.capacity = capacity;
return this;
}
@CustomType.Setter
public Builder recurrence(@Nullable AutoscaleRecurrenceResponse recurrence) {
this.recurrence = recurrence;
return this;
}
public AutoscaleResponse build() {
final var _resultValue = new AutoscaleResponse();
_resultValue.capacity = capacity;
_resultValue.recurrence = recurrence;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy