com.pulumi.azure.containerservice.outputs.KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPort 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.azure.containerservice.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 KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPort {
/**
* @return Specifies the end of the port range.
*
*/
private @Nullable Integer portEnd;
/**
* @return Specifies the start of the port range.
*
*/
private @Nullable Integer portStart;
/**
* @return Specifies the protocol of the port range. Possible values are `TCP` and `UDP`.
*
*/
private @Nullable String protocol;
private KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPort() {}
/**
* @return Specifies the end of the port range.
*
*/
public Optional portEnd() {
return Optional.ofNullable(this.portEnd);
}
/**
* @return Specifies the start of the port range.
*
*/
public Optional portStart() {
return Optional.ofNullable(this.portStart);
}
/**
* @return Specifies the protocol of the port range. Possible values are `TCP` and `UDP`.
*
*/
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPort defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer portEnd;
private @Nullable Integer portStart;
private @Nullable String protocol;
public Builder() {}
public Builder(KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPort defaults) {
Objects.requireNonNull(defaults);
this.portEnd = defaults.portEnd;
this.portStart = defaults.portStart;
this.protocol = defaults.protocol;
}
@CustomType.Setter
public Builder portEnd(@Nullable Integer portEnd) {
this.portEnd = portEnd;
return this;
}
@CustomType.Setter
public Builder portStart(@Nullable Integer portStart) {
this.portStart = portStart;
return this;
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
public KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPort build() {
final var _resultValue = new KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPort();
_resultValue.portEnd = portEnd;
_resultValue.portStart = portStart;
_resultValue.protocol = protocol;
return _resultValue;
}
}
}