
com.pulumi.azurenative.batch.outputs.FixedScaleSettingsResponse 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.batch.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 FixedScaleSettingsResponse {
/**
* @return The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
*
*/
private @Nullable String resizeTimeout;
/**
* @return At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
*
*/
private @Nullable Integer targetDedicatedNodes;
/**
* @return At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
*
*/
private @Nullable Integer targetLowPriorityNodes;
private FixedScaleSettingsResponse() {}
/**
* @return The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
*
*/
public Optional resizeTimeout() {
return Optional.ofNullable(this.resizeTimeout);
}
/**
* @return At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
*
*/
public Optional targetDedicatedNodes() {
return Optional.ofNullable(this.targetDedicatedNodes);
}
/**
* @return At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
*
*/
public Optional targetLowPriorityNodes() {
return Optional.ofNullable(this.targetLowPriorityNodes);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FixedScaleSettingsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String resizeTimeout;
private @Nullable Integer targetDedicatedNodes;
private @Nullable Integer targetLowPriorityNodes;
public Builder() {}
public Builder(FixedScaleSettingsResponse defaults) {
Objects.requireNonNull(defaults);
this.resizeTimeout = defaults.resizeTimeout;
this.targetDedicatedNodes = defaults.targetDedicatedNodes;
this.targetLowPriorityNodes = defaults.targetLowPriorityNodes;
}
@CustomType.Setter
public Builder resizeTimeout(@Nullable String resizeTimeout) {
this.resizeTimeout = resizeTimeout;
return this;
}
@CustomType.Setter
public Builder targetDedicatedNodes(@Nullable Integer targetDedicatedNodes) {
this.targetDedicatedNodes = targetDedicatedNodes;
return this;
}
@CustomType.Setter
public Builder targetLowPriorityNodes(@Nullable Integer targetLowPriorityNodes) {
this.targetLowPriorityNodes = targetLowPriorityNodes;
return this;
}
public FixedScaleSettingsResponse build() {
final var _resultValue = new FixedScaleSettingsResponse();
_resultValue.resizeTimeout = resizeTimeout;
_resultValue.targetDedicatedNodes = targetDedicatedNodes;
_resultValue.targetLowPriorityNodes = targetLowPriorityNodes;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy