com.pulumi.kubernetes.networking.v1.outputs.IngressClassSpec 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.IngressClassParametersReference;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class IngressClassSpec {
/**
* @return controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable.
*
*/
private @Nullable String controller;
/**
* @return parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters.
*
*/
private @Nullable IngressClassParametersReference parameters;
private IngressClassSpec() {}
/**
* @return controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable.
*
*/
public Optional controller() {
return Optional.ofNullable(this.controller);
}
/**
* @return parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters.
*
*/
public Optional parameters() {
return Optional.ofNullable(this.parameters);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IngressClassSpec defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String controller;
private @Nullable IngressClassParametersReference parameters;
public Builder() {}
public Builder(IngressClassSpec defaults) {
Objects.requireNonNull(defaults);
this.controller = defaults.controller;
this.parameters = defaults.parameters;
}
@CustomType.Setter
public Builder controller(@Nullable String controller) {
this.controller = controller;
return this;
}
@CustomType.Setter
public Builder parameters(@Nullable IngressClassParametersReference parameters) {
this.parameters = parameters;
return this;
}
public IngressClassSpec build() {
final var _resultValue = new IngressClassSpec();
_resultValue.controller = controller;
_resultValue.parameters = parameters;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy