Class WillCallFunction

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
               date="2025-08-20T01:46:20.835Z")
    @Stability(Stable)
    public class WillCallFunction
    extends AnyInteractionDescriptor
    Defines an example that executes a registered function with specific arguments.
    • Constructor Detail

      • WillCallFunction

        protected WillCallFunction​(software.amazon.jsii.JsiiObjectRef objRef)
      • WillCallFunction

        protected WillCallFunction​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • WillCallFunction

        @Stability(Stable)
        public WillCallFunction​(@NotNull
                                FunctionExecutionExample example)
        Defines an interaction that executes a registered function with specific arguments, expecting that interaction to return successfully.

        Parameters:
        example - - a mocks.functions.FunctionExecutionExample. This parameter is required.
    • Method Detail

      • getFunctionName

        @Stability(Stable)
        @NotNull
        public String getFunctionName()
      • getRequest

        @Stability(Stable)
        @NotNull
        public Object getRequest()
      • getResponse

        @Stability(Stable)
        @NotNull
        public Object getResponse()