Class PropertyMergeStrategy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.PropertyMergeStrategy
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:35.621Z") @Stability(Stable) public class PropertyMergeStrategy extends software.amazon.jsii.JsiiObject
Strategy for handling nested properties in L1 property mixins.
  • Nested Class Summary

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

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Deep merges nested objects from source into target.
    Replaces existing property values on the target with the values from the source.

    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, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • PropertyMergeStrategy

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

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

    • combine

      @Stability(Stable) @NotNull public static IMergeStrategy combine()
      Deep merges nested objects from source into target.

      When both the existing and new value for a key are plain objects, their properties are merged recursively. Primitives, arrays, and mismatched types are overridden by the source value.

    • override

      @Stability(Stable) @NotNull public static IMergeStrategy override()
      Replaces existing property values on the target with the values from the source.

      Each allowed key is copied from source to target as-is, without inspecting nested objects. Any previous value on the target is discarded.