Class PropertyMergeStrategy
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPropertyMergeStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPropertyMergeStrategy(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic IMergeStrategycombine()Deep merges nested objects from source into target.static IMergeStrategycombine(CombineStrategyOptions options) Deep merges nested objects from source into target.static IMergeStrategyoverride()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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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(@Nullable CombineStrategyOptions options) 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.
Supports Box-backed values: when the target value is a Box, the merge is deferred until the Box resolves.
- Parameters:
options-
-
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.
Supports Box-backed values: when the target value is a Box, the merge is deferred until the Box resolves.
-
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.
-