Package org.cdk8s.plus25.k8s
Class ServiceReference.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.ServiceReference.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceReference>
- Enclosing interface:
- ServiceReference
@Stability(Stable) public static final class ServiceReference.Builder extends Object implements software.amazon.jsii.Builder<ServiceReference>
A builder forServiceReference
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceReferencebuild()Builds the configured instance.ServiceReference.Buildername(String name)Sets the value ofServiceReference.getName()ServiceReference.Buildernamespace(String namespace)Sets the value ofServiceReference.getNamespace()ServiceReference.Builderpath(String path)Sets the value ofServiceReference.getPath()ServiceReference.Builderport(Number port)Sets the value ofServiceReference.getPort()
-
-
-
Method Detail
-
name
@Stability(Stable) public ServiceReference.Builder name(String name)
Sets the value ofServiceReference.getName()- Parameters:
name-nameis the name of the service. This parameter is required. Required- Returns:
this
-
namespace
@Stability(Stable) public ServiceReference.Builder namespace(String namespace)
Sets the value ofServiceReference.getNamespace()- Parameters:
namespace-namespaceis the namespace of the service. This parameter is required. Required- Returns:
this
-
path
@Stability(Stable) public ServiceReference.Builder path(String path)
Sets the value ofServiceReference.getPath()- Parameters:
path-pathis an optional URL path which will be sent in any request to this service.- Returns:
this
-
port
@Stability(Stable) public ServiceReference.Builder port(Number port)
Sets the value ofServiceReference.getPort()- Parameters:
port- If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility.portshould be a valid port number (1-65535, inclusive).- Returns:
this
-
build
@Stability(Stable) public ServiceReference build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServiceReference>- Returns:
- a new instance of
ServiceReference - Throws:
NullPointerException- if any required attribute was not provided
-
-