Class JsonMutatorProcessor.Builder
java.lang.Object
software.amazon.awscdk.services.logs.JsonMutatorProcessor.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<JsonMutatorProcessor>
- Enclosing class:
JsonMutatorProcessor
@Stability(Stable)
public static final class JsonMutatorProcessor.Builder
extends Object
implements software.amazon.jsii.Builder<JsonMutatorProcessor>
A fluent builder for
JsonMutatorProcessor.-
Method Summary
Modifier and TypeMethodDescriptionaddKeysOptions(AddKeysProperty addKeysOptions) Options for adding keys.build()copyValueOptions(CopyValueProperty copyValueOptions) Options for copying values.static JsonMutatorProcessor.Buildercreate()deleteKeysOptions(ProcessorDeleteKeysProperty deleteKeysOptions) Keys to delete.listToMapOptions(ListToMapProperty listToMapOptions) Options for converting lists to maps.moveKeysOptions(MoveKeysProperty moveKeysOptions) Options for moving keys.renameKeysOptions(RenameKeysProperty renameKeysOptions) Options for renaming keys.type(JsonMutatorType type) The type of JSON mutation operation.
-
Method Details
-
create
- Returns:
- a new instance of
JsonMutatorProcessor.Builder.
-
type
The type of JSON mutation operation.- Parameters:
type- The type of JSON mutation operation. This parameter is required.- Returns:
this
-
addKeysOptions
@Stability(Stable) public JsonMutatorProcessor.Builder addKeysOptions(AddKeysProperty addKeysOptions) Options for adding keys.Required when type is ADD_KEYS.
Default: - No adding keys processor is created if props not set
- Parameters:
addKeysOptions- Options for adding keys. This parameter is required.- Returns:
this
-
copyValueOptions
@Stability(Stable) public JsonMutatorProcessor.Builder copyValueOptions(CopyValueProperty copyValueOptions) Options for copying values.Required when type is COPY_VALUE.
Default: - No copy value processor is created if props not set
- Parameters:
copyValueOptions- Options for copying values. This parameter is required.- Returns:
this
-
deleteKeysOptions
@Stability(Stable) public JsonMutatorProcessor.Builder deleteKeysOptions(ProcessorDeleteKeysProperty deleteKeysOptions) Keys to delete.Required when type is DELETE_KEYS.
Default: - No delete key processor is created if props not set
- Parameters:
deleteKeysOptions- Keys to delete. This parameter is required.- Returns:
this
-
listToMapOptions
@Stability(Stable) public JsonMutatorProcessor.Builder listToMapOptions(ListToMapProperty listToMapOptions) Options for converting lists to maps.Required when type is LIST_TO_MAP.
Default: - No list-to-map processor is created if props not set
- Parameters:
listToMapOptions- Options for converting lists to maps. This parameter is required.- Returns:
this
-
moveKeysOptions
@Stability(Stable) public JsonMutatorProcessor.Builder moveKeysOptions(MoveKeysProperty moveKeysOptions) Options for moving keys.Required when type is MOVE_KEYS.
Default: - No move key processor is created if props not set
- Parameters:
moveKeysOptions- Options for moving keys. This parameter is required.- Returns:
this
-
renameKeysOptions
@Stability(Stable) public JsonMutatorProcessor.Builder renameKeysOptions(RenameKeysProperty renameKeysOptions) Options for renaming keys.Required when type is RENAME_KEYS.
Default: - No rename key processor is created if props not set
- Parameters:
renameKeysOptions- Options for renaming keys. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<JsonMutatorProcessor>- Returns:
- a newly built instance of
JsonMutatorProcessor.
-