Class 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 for GrpcAction
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • port

        @Stability(Stable)
        public GrpcAction.Builder port​(Number port)
        Sets the value of GrpcAction.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 of GrpcAction.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:
        build in interface software.amazon.jsii.Builder<GrpcAction>
        Returns:
        a new instance of GrpcAction
        Throws:
        NullPointerException - if any required attribute was not provided