org.cdk8s.plus22.IngressBackend Maven / Gradle / Ivy
Show all versions of cdk8s-plus-22 Show documentation
package org.cdk8s.plus22;
/**
* The backend for an ingress path.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.47.0 (build 86d2c33)", date = "2021-12-08T00:16:55.101Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = org.cdk8s.plus22.$Module.class, fqn = "cdk8s-plus-22.IngressBackend")
public class IngressBackend extends software.amazon.jsii.JsiiObject {
protected IngressBackend(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected IngressBackend(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* A Kubernetes `Service` to use as the backend for this path.
*
* @param service The service object. This parameter is required.
* @param options
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus22.IngressBackend fromService(final @org.jetbrains.annotations.NotNull org.cdk8s.plus22.Service service, final @org.jetbrains.annotations.Nullable org.cdk8s.plus22.ServiceIngressBackendOptions options) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus22.IngressBackend.class, "fromService", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus22.IngressBackend.class), new Object[] { java.util.Objects.requireNonNull(service, "service is required"), options });
}
/**
* A Kubernetes `Service` to use as the backend for this path.
*
* @param service The service object. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus22.IngressBackend fromService(final @org.jetbrains.annotations.NotNull org.cdk8s.plus22.Service service) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus22.IngressBackend.class, "fromService", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus22.IngressBackend.class), new Object[] { java.util.Objects.requireNonNull(service, "service is required") });
}
}