Package org.cdk8s.plus23.k8s
Class ServiceReference.Builder
- java.lang.Object
-
- org.cdk8s.plus23.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 ServiceReference
build()
Builds the configured instance.ServiceReference.Builder
name(String name)
Sets the value ofServiceReference.getName()
ServiceReference.Builder
namespace(String namespace)
Sets the value ofServiceReference.getNamespace()
ServiceReference.Builder
path(String path)
Sets the value ofServiceReference.getPath()
ServiceReference.Builder
port(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
- `name` is 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
- `namespace` is 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
- `path` is 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.port
should be a valid port number (1-65535, inclusive).- Returns:
this
-
build
@Stability(Stable) public ServiceReference build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ServiceReference>
- Returns:
- a new instance of
ServiceReference
- Throws:
NullPointerException
- if any required attribute was not provided
-
-