@Stability(value=Experimental) public static final class IngressProps.Builder extends Object implements software.amazon.jsii.Builder<IngressProps>
IngressProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
IngressProps |
build()
Builds the configured instance.
|
IngressProps.Builder |
defaultBackend(IngressBackend defaultBackend)
Sets the value of
IngressProps.getDefaultBackend() |
IngressProps.Builder |
metadata(ApiObjectMetadata metadata)
Sets the value of
ResourceProps.getMetadata() |
IngressProps.Builder |
rules(List<? extends IngressRule> rules)
Sets the value of
IngressProps.getRules() |
@Stability(value=Experimental) public IngressProps.Builder defaultBackend(IngressBackend defaultBackend)
IngressProps.getDefaultBackend()defaultBackend - The default backend services requests that do not match any rule.
Using this option or the addDefaultBackend() method is equivalent to
adding a rule with both path and host undefined.this@Stability(value=Experimental) public IngressProps.Builder rules(List<? extends IngressRule> rules)
IngressProps.getRules()rules - Routing rules for this ingress.
Each rule must define an IngressBackend that will receive the requests
that match this rule. If both host and path are not specifiec, this
backend will be used as the default backend of the ingress.
You can also add rules later using addRule(), addHostRule(),
addDefaultBackend() and addHostDefaultBackend().
this@Stability(value=Experimental) public IngressProps.Builder metadata(ApiObjectMetadata metadata)
ResourceProps.getMetadata()metadata - Metadata that all persisted resources must have, which includes all objects users must create.this@Stability(value=Experimental) public IngressProps build()
build in interface software.amazon.jsii.Builder<IngressProps>IngressPropsNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.