Class JsonMutatorProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.JsonMutatorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<JsonMutatorProps>
- Enclosing interface:
JsonMutatorProps
@Stability(Stable)
public static final class JsonMutatorProps.Builder
extends Object
implements software.amazon.jsii.Builder<JsonMutatorProps>
A builder for
JsonMutatorProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddKeysOptions
(AddKeysProperty addKeysOptions) Sets the value ofJsonMutatorProps.getAddKeysOptions()
build()
Builds the configured instance.copyValueOptions
(CopyValueProperty copyValueOptions) Sets the value ofJsonMutatorProps.getCopyValueOptions()
deleteKeysOptions
(ProcessorDeleteKeysProperty deleteKeysOptions) Sets the value ofJsonMutatorProps.getDeleteKeysOptions()
listToMapOptions
(ListToMapProperty listToMapOptions) Sets the value ofJsonMutatorProps.getListToMapOptions()
moveKeysOptions
(MoveKeysProperty moveKeysOptions) Sets the value ofJsonMutatorProps.getMoveKeysOptions()
renameKeysOptions
(RenameKeysProperty renameKeysOptions) Sets the value ofJsonMutatorProps.getRenameKeysOptions()
type
(JsonMutatorType type) Sets the value ofJsonMutatorProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofJsonMutatorProps.getType()
- Parameters:
type
- The type of JSON mutation operation. This parameter is required.- Returns:
this
-
addKeysOptions
Sets the value ofJsonMutatorProps.getAddKeysOptions()
- Parameters:
addKeysOptions
- Options for adding keys. Required when type is ADD_KEYS.- Returns:
this
-
copyValueOptions
@Stability(Stable) public JsonMutatorProps.Builder copyValueOptions(CopyValueProperty copyValueOptions) Sets the value ofJsonMutatorProps.getCopyValueOptions()
- Parameters:
copyValueOptions
- Options for copying values. Required when type is COPY_VALUE.- Returns:
this
-
deleteKeysOptions
@Stability(Stable) public JsonMutatorProps.Builder deleteKeysOptions(ProcessorDeleteKeysProperty deleteKeysOptions) Sets the value ofJsonMutatorProps.getDeleteKeysOptions()
- Parameters:
deleteKeysOptions
- Keys to delete. Required when type is DELETE_KEYS.- Returns:
this
-
listToMapOptions
@Stability(Stable) public JsonMutatorProps.Builder listToMapOptions(ListToMapProperty listToMapOptions) Sets the value ofJsonMutatorProps.getListToMapOptions()
- Parameters:
listToMapOptions
- Options for converting lists to maps. Required when type is LIST_TO_MAP.- Returns:
this
-
moveKeysOptions
@Stability(Stable) public JsonMutatorProps.Builder moveKeysOptions(MoveKeysProperty moveKeysOptions) Sets the value ofJsonMutatorProps.getMoveKeysOptions()
- Parameters:
moveKeysOptions
- Options for moving keys. Required when type is MOVE_KEYS.- Returns:
this
-
renameKeysOptions
@Stability(Stable) public JsonMutatorProps.Builder renameKeysOptions(RenameKeysProperty renameKeysOptions) Sets the value ofJsonMutatorProps.getRenameKeysOptions()
- Parameters:
renameKeysOptions
- Options for renaming keys. Required when type is RENAME_KEYS.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<JsonMutatorProps>
- Returns:
- a new instance of
JsonMutatorProps
- Throws:
NullPointerException
- if any required attribute was not provided
-