
com.pulumi.azurenative.iotoperations.outputs.FrontendResponse 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.iotoperations.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FrontendResponse {
/**
* @return The desired number of frontend instances (pods).
*
*/
private Integer replicas;
/**
* @return Number of logical frontend workers per instance (pod).
*
*/
private @Nullable Integer workers;
private FrontendResponse() {}
/**
* @return The desired number of frontend instances (pods).
*
*/
public Integer replicas() {
return this.replicas;
}
/**
* @return Number of logical frontend workers per instance (pod).
*
*/
public Optional workers() {
return Optional.ofNullable(this.workers);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FrontendResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer replicas;
private @Nullable Integer workers;
public Builder() {}
public Builder(FrontendResponse defaults) {
Objects.requireNonNull(defaults);
this.replicas = defaults.replicas;
this.workers = defaults.workers;
}
@CustomType.Setter
public Builder replicas(Integer replicas) {
if (replicas == null) {
throw new MissingRequiredPropertyException("FrontendResponse", "replicas");
}
this.replicas = replicas;
return this;
}
@CustomType.Setter
public Builder workers(@Nullable Integer workers) {
this.workers = workers;
return this;
}
public FrontendResponse build() {
final var _resultValue = new FrontendResponse();
_resultValue.replicas = replicas;
_resultValue.workers = workers;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy