Class ServiceReference.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.apiextensionsapiserver.pkg.apis.apiextensions.v1.ServiceReference.Builder
-
- Enclosing class:
- ServiceReference
public static class ServiceReference.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceReference
build()
ServiceReference.Builder
name(@NonNull java.lang.String name)
name is the name of the service.ServiceReference.Builder
namespace(@NonNull java.lang.String namespace)
namespace is the namespace of the service.ServiceReference.Builder
path(java.lang.String path)
path is an optional URL path at which the webhook will be contacted.ServiceReference.Builder
port(java.lang.Number port)
port is an optional service port at which the webhook will be contacted.java.lang.String
toString()
-
-
-
Method Detail
-
name
public ServiceReference.Builder name(@NonNull @NonNull java.lang.String name)
name is the name of the service. Required- Returns:
this
.
-
namespace
public ServiceReference.Builder namespace(@NonNull @NonNull java.lang.String namespace)
namespace is the namespace of the service. Required- Returns:
this
.
-
path
public ServiceReference.Builder path(java.lang.String path)
path is an optional URL path at which the webhook will be contacted.- Returns:
this
.
-
port
public ServiceReference.Builder port(java.lang.Number port)
port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.- Returns:
this
.
-
build
public ServiceReference build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-