com.pulumi.kubernetes.networking.v1.outputs.IngressPortStatusPatch 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 java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class IngressPortStatusPatch {
/**
* @return error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use
* CamelCase names
* - cloud provider specific error values must have names that comply with the
* format foo.example.com/CamelCase.
*
*/
private @Nullable String error;
/**
* @return port is the port number of the ingress port.
*
*/
private @Nullable Integer port;
/**
* @return protocol is the protocol of the ingress port. The supported values are: "TCP", "UDP", "SCTP"
*
*/
private @Nullable String protocol;
private IngressPortStatusPatch() {}
/**
* @return error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use
* CamelCase names
* - cloud provider specific error values must have names that comply with the
* format foo.example.com/CamelCase.
*
*/
public Optional error() {
return Optional.ofNullable(this.error);
}
/**
* @return port is the port number of the ingress port.
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
/**
* @return protocol is the protocol of the ingress port. The supported values are: "TCP", "UDP", "SCTP"
*
*/
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IngressPortStatusPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String error;
private @Nullable Integer port;
private @Nullable String protocol;
public Builder() {}
public Builder(IngressPortStatusPatch defaults) {
Objects.requireNonNull(defaults);
this.error = defaults.error;
this.port = defaults.port;
this.protocol = defaults.protocol;
}
@CustomType.Setter
public Builder error(@Nullable String error) {
this.error = error;
return this;
}
@CustomType.Setter
public Builder port(@Nullable Integer port) {
this.port = port;
return this;
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
public IngressPortStatusPatch build() {
final var _resultValue = new IngressPortStatusPatch();
_resultValue.error = error;
_resultValue.port = port;
_resultValue.protocol = protocol;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy