Class MatchFailure.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.assertions.MatchFailure.Jsii$Proxy
All Implemented Interfaces:
MatchFailure, software.amazon.jsii.JsiiSerializable
Enclosing interface:
MatchFailure

@Stability(Stable) @Internal public static final class MatchFailure.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MatchFailure
An implementation for MatchFailure
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.assertions.MatchFailure

    MatchFailure.Builder, MatchFailure.Jsii$Proxy
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
     
    final boolean
     
    final Number
    The cost of this particular mismatch.
    final Matcher
    The matcher that had the failure.
    final String
    Failure message.
    final List<String>
    The relative path in the target where the failure occurred.
    final int
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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.
    • Jsii$Proxy

      protected Jsii$Proxy(MatchFailure.Builder builder)
      Constructor that initializes the object based on literal property values passed by the MatchFailure.Builder.
  • Method Details

    • getMatcher

      public final Matcher getMatcher()
      Description copied from interface: MatchFailure
      The matcher that had the failure.
      Specified by:
      getMatcher in interface MatchFailure
    • getMessage

      public final String getMessage()
      Description copied from interface: MatchFailure
      Failure message.
      Specified by:
      getMessage in interface MatchFailure
    • getPath

      public final List<String> getPath()
      Description copied from interface: MatchFailure
      The relative path in the target where the failure occurred.

      If the failure occurred at root of the match tree, set the path to an empty list. If it occurs in the 5th index of an array nested within the 'foo' key of an object, set the path as ['/foo', '[5]'].

      Specified by:
      getPath in interface MatchFailure
    • getCost

      public final Number getCost()
      Description copied from interface: MatchFailure
      The cost of this particular mismatch.

      Default: 1

      Specified by:
      getCost in interface MatchFailure
    • $jsii$toJson

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

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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