Class HttpRequestExample.Jsii$Proxy

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Jsii$Proxy​(HttpRequestExample.Builder builder)
      Constructor that initializes the object based on literal property values passed by the HttpRequestExample.Builder.
      protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.fasterxml.jackson.databind.JsonNode $jsii$toJson()  
      boolean equals​(Object o)  
      Object getBody()
      A test equivalence matcher or json object that describes the body for this response.
      Object getHeaders()
      A Map of header names and associated test-equivalence matcher values accepted by this example.
      Object getMethod()
      A string or string matcher that matches the method used for this example (eg "GET" or "POST").
      Object getPath()
      A string or string matcher that matches the path of this example.
      Object getQuery()
      A test-equivalence matcher for the query.
      String getUniqueName()
      What unique name, if any, to give to this request.
      int hashCode()  
      • Methods inherited from class software.amazon.jsii.JsiiObject

        jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getMethod

        public final Object getMethod()
        Description copied from interface: HttpRequestExample
        A string or string matcher that matches the method used for this example (eg "GET" or "POST").

        Case insensitive. Note that DELETE, GET and HEAD requests should not have bodies - see the HTTP RFCs for details.

        Specified by:
        getMethod in interface HttpRequestExample
      • getPath

        public final Object getPath()
        Description copied from interface: HttpRequestExample
        A string or string matcher that matches the path of this example.

        Note that any query parameters must be in the query, not in the path.

        Specified by:
        getPath in interface HttpRequestExample
      • getBody

        public final Object getBody()
        Description copied from interface: HttpRequestExample
        A test equivalence matcher or json object that describes the body for this response.

        If not provided, no body matching is performed.

        Specified by:
        getBody in interface HttpRequestExample
      • getHeaders

        public final Object getHeaders()
        Description copied from interface: HttpRequestExample
        A Map of header names and associated test-equivalence matcher values accepted by this example.

        If not provided, no header matching is performed

        Specified by:
        getHeaders in interface HttpRequestExample
      • getQuery

        public final Object getQuery()
        Description copied from interface: HttpRequestExample
        A test-equivalence matcher for the query.

        Usually this is a Map of test-equivalence matchers to match the parsed query string, keyed by parameter name. Repeated parameters are collated and put in an array in this map.

        Specified by:
        getQuery in interface HttpRequestExample
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object