com.pulumi.azurenative.app.outputs.JobScaleResponse 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.app.outputs;
import com.pulumi.azurenative.app.outputs.JobScaleRuleResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class JobScaleResponse {
/**
* @return Maximum number of job executions that are created for a trigger, default 100.
*
*/
private @Nullable Integer maxExecutions;
/**
* @return Minimum number of job executions that are created for a trigger, default 0
*
*/
private @Nullable Integer minExecutions;
/**
* @return Interval to check each event source in seconds. Defaults to 30s
*
*/
private @Nullable Integer pollingInterval;
/**
* @return Scaling rules.
*
*/
private @Nullable List rules;
private JobScaleResponse() {}
/**
* @return Maximum number of job executions that are created for a trigger, default 100.
*
*/
public Optional maxExecutions() {
return Optional.ofNullable(this.maxExecutions);
}
/**
* @return Minimum number of job executions that are created for a trigger, default 0
*
*/
public Optional minExecutions() {
return Optional.ofNullable(this.minExecutions);
}
/**
* @return Interval to check each event source in seconds. Defaults to 30s
*
*/
public Optional pollingInterval() {
return Optional.ofNullable(this.pollingInterval);
}
/**
* @return Scaling rules.
*
*/
public List rules() {
return this.rules == null ? List.of() : this.rules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(JobScaleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer maxExecutions;
private @Nullable Integer minExecutions;
private @Nullable Integer pollingInterval;
private @Nullable List rules;
public Builder() {}
public Builder(JobScaleResponse defaults) {
Objects.requireNonNull(defaults);
this.maxExecutions = defaults.maxExecutions;
this.minExecutions = defaults.minExecutions;
this.pollingInterval = defaults.pollingInterval;
this.rules = defaults.rules;
}
@CustomType.Setter
public Builder maxExecutions(@Nullable Integer maxExecutions) {
this.maxExecutions = maxExecutions;
return this;
}
@CustomType.Setter
public Builder minExecutions(@Nullable Integer minExecutions) {
this.minExecutions = minExecutions;
return this;
}
@CustomType.Setter
public Builder pollingInterval(@Nullable Integer pollingInterval) {
this.pollingInterval = pollingInterval;
return this;
}
@CustomType.Setter
public Builder rules(@Nullable List rules) {
this.rules = rules;
return this;
}
public Builder rules(JobScaleRuleResponse... rules) {
return rules(List.of(rules));
}
public JobScaleResponse build() {
final var _resultValue = new JobScaleResponse();
_resultValue.maxExecutions = maxExecutions;
_resultValue.minExecutions = minExecutions;
_resultValue.pollingInterval = pollingInterval;
_resultValue.rules = rules;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy