com.pulumi.kubernetes.extensions.v1beta1.outputs.HostPortRange 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.kubernetes.extensions.v1beta1.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
@CustomType
public final class HostPortRange {
/**
* @return max is the end of the range, inclusive.
*
*/
private Integer max;
/**
* @return min is the start of the range, inclusive.
*
*/
private Integer min;
private HostPortRange() {}
/**
* @return max is the end of the range, inclusive.
*
*/
public Integer max() {
return this.max;
}
/**
* @return min is the start of the range, inclusive.
*
*/
public Integer min() {
return this.min;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HostPortRange defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer max;
private Integer min;
public Builder() {}
public Builder(HostPortRange defaults) {
Objects.requireNonNull(defaults);
this.max = defaults.max;
this.min = defaults.min;
}
@CustomType.Setter
public Builder max(Integer max) {
this.max = Objects.requireNonNull(max);
return this;
}
@CustomType.Setter
public Builder min(Integer min) {
this.min = Objects.requireNonNull(min);
return this;
}
public HostPortRange build() {
final var o = new HostPortRange();
o.max = max;
o.min = min;
return o;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy