Class JsonNull

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.JsonNull
All Implemented Interfaces:
IResolvable, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-08-23T05:56:10.104Z") @Stability(Stable) public class JsonNull extends software.amazon.jsii.JsiiObject implements IResolvable
An object which serializes to the JSON null literal, and which can safely be passed across languages where undefined and null are not different.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 JsonNull jsonNull = JsonNull.INSTANCE;
 
  • 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.IResolvable

    IResolvable.Jsii$Default, IResolvable.Jsii$Proxy
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final JsonNull
    The canonical instance of JsonNull.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    JsonNull(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    JsonNull(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The creation stack of this resolvable which will be appended to errors thrown during resolution.
    Produce the Token's value at resolution time.
    Obtains the JSON representation of this object (null).
    Obtains the string representation of this object ('null').

    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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.amazon.awscdk.IResolvable

    getTypeHint

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • INSTANCE

      @Stability(Stable) public static final JsonNull INSTANCE
      The canonical instance of JsonNull.
  • Constructor Details

    • JsonNull

      protected JsonNull(software.amazon.jsii.JsiiObjectRef objRef)
    • JsonNull

      protected JsonNull(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • resolve

      @Stability(Stable) @NotNull public Object resolve(@NotNull IResolveContext _ctx)
      Produce the Token's value at resolution time.

      Specified by:
      resolve in interface IResolvable
      Parameters:
      _ctx - This parameter is required.
    • toJSON

      @Stability(Stable) @NotNull public Object toJSON()
      Obtains the JSON representation of this object (null).
    • toString

      @Stability(Stable) @NotNull public String toString()
      Obtains the string representation of this object ('null').
      Specified by:
      toString in interface IResolvable
      Overrides:
      toString in class Object
    • getCreationStack

      @Stability(Stable) @NotNull public List<String> getCreationStack()
      The creation stack of this resolvable which will be appended to errors thrown during resolution.

      This may return an array with a single informational element indicating how to get this property populated, if it was skipped for performance reasons.

      Specified by:
      getCreationStack in interface IResolvable