Class ServiceReference.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.admissionregistration.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 which will be sent in any request to this service.ServiceReference.Builder
port(java.lang.Number port)
If specified, the port on the service that hosting webhook.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 which will be sent in any request to this service.- Returns:
this
.
-
port
public ServiceReference.Builder port(java.lang.Number port)
If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).- Returns:
this
.
-
build
public ServiceReference build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-