com.pulumi.kubernetes.networking.v1.outputs.IngressLoadBalancerIngressPatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes 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.kubernetes.networking.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.networking.v1.outputs.IngressPortStatusPatch;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class IngressLoadBalancerIngressPatch {
/**
* @return hostname is set for load-balancer ingress points that are DNS based.
*
*/
private @Nullable String hostname;
/**
* @return ip is set for load-balancer ingress points that are IP based.
*
*/
private @Nullable String ip;
/**
* @return ports provides information about the ports exposed by this LoadBalancer.
*
*/
private @Nullable List ports;
private IngressLoadBalancerIngressPatch() {}
/**
* @return hostname is set for load-balancer ingress points that are DNS based.
*
*/
public Optional hostname() {
return Optional.ofNullable(this.hostname);
}
/**
* @return ip is set for load-balancer ingress points that are IP based.
*
*/
public Optional ip() {
return Optional.ofNullable(this.ip);
}
/**
* @return ports provides information about the ports exposed by this LoadBalancer.
*
*/
public List ports() {
return this.ports == null ? List.of() : this.ports;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IngressLoadBalancerIngressPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String hostname;
private @Nullable String ip;
private @Nullable List ports;
public Builder() {}
public Builder(IngressLoadBalancerIngressPatch defaults) {
Objects.requireNonNull(defaults);
this.hostname = defaults.hostname;
this.ip = defaults.ip;
this.ports = defaults.ports;
}
@CustomType.Setter
public Builder hostname(@Nullable String hostname) {
this.hostname = hostname;
return this;
}
@CustomType.Setter
public Builder ip(@Nullable String ip) {
this.ip = ip;
return this;
}
@CustomType.Setter
public Builder ports(@Nullable List ports) {
this.ports = ports;
return this;
}
public Builder ports(IngressPortStatusPatch... ports) {
return ports(List.of(ports));
}
public IngressLoadBalancerIngressPatch build() {
final var _resultValue = new IngressLoadBalancerIngressPatch();
_resultValue.hostname = hostname;
_resultValue.ip = ip;
_resultValue.ports = ports;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy