Class HttpExample.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<HttpExample>
    Enclosing interface:
    HttpExample

    @Stability(Stable)
    public static final class HttpExample.Builder
    extends Object
    implements software.amazon.jsii.Builder<HttpExample>
    A builder for HttpExample
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • request

        @Stability(Stable)
        public HttpExample.Builder request​(Object request)
        Sets the value of HttpExample.getRequest()
        Parameters:
        request - A test equivalence matcher that will match an HTTP request (recommended: the Test Equivalence Matcher HttpRequest). This parameter is required.
        Returns:
        this
      • response

        @Stability(Stable)
        public HttpExample.Builder response​(Object response)
        Sets the value of HttpExample.getResponse()
        Parameters:
        response - A test equivalence matcher that will match an HTTP response (recommended: the Test Equivalence Matcher HttpResponse). This parameter is required.
        Returns:
        this
      • build

        @Stability(Stable)
        public HttpExample build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<HttpExample>
        Returns:
        a new instance of HttpExample
        Throws:
        NullPointerException - if any required attribute was not provided