Package org.cdk8s.plus25.k8s
Class GrpcAction.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.GrpcAction.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GrpcAction>
- Enclosing interface:
- GrpcAction
@Stability(Stable) public static final class GrpcAction.Builder extends Object implements software.amazon.jsii.Builder<GrpcAction>
A builder forGrpcAction
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrpcActionbuild()Builds the configured instance.GrpcAction.Builderport(Number port)Sets the value ofGrpcAction.getPort()GrpcAction.Builderservice(String service)Sets the value ofGrpcAction.getService()
-
-
-
Method Detail
-
port
@Stability(Stable) public GrpcAction.Builder port(Number port)
Sets the value ofGrpcAction.getPort()- Parameters:
port- Port number of the gRPC service. This parameter is required. Number must be in the range 1 to 65535.- Returns:
this
-
service
@Stability(Stable) public GrpcAction.Builder service(String service)
Sets the value ofGrpcAction.getService()- Parameters:
service- Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.- Returns:
this
-
build
@Stability(Stable) public GrpcAction build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GrpcAction>- Returns:
- a new instance of
GrpcAction - Throws:
NullPointerException- if any required attribute was not provided
-
-