Class CfnTransformer.CopyValueEntryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnTransformer.CopyValueEntryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformer.CopyValueEntryProperty>
- Enclosing interface:
CfnTransformer.CopyValueEntryProperty
@Stability(Stable)
public static final class CfnTransformer.CopyValueEntryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformer.CopyValueEntryProperty>
A builder for
CfnTransformer.CopyValueEntryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.overwriteIfExists(Boolean overwriteIfExists) Sets the value ofCfnTransformer.CopyValueEntryProperty.getOverwriteIfExists()overwriteIfExists(IResolvable overwriteIfExists) Sets the value ofCfnTransformer.CopyValueEntryProperty.getOverwriteIfExists()Sets the value ofCfnTransformer.CopyValueEntryProperty.getSource()Sets the value ofCfnTransformer.CopyValueEntryProperty.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
source
Sets the value ofCfnTransformer.CopyValueEntryProperty.getSource()- Parameters:
source- The key to copy. This parameter is required.- Returns:
this
-
target
Sets the value ofCfnTransformer.CopyValueEntryProperty.getTarget()- Parameters:
target- The key of the field to copy the value to. This parameter is required.- Returns:
this
-
overwriteIfExists
@Stability(Stable) public CfnTransformer.CopyValueEntryProperty.Builder overwriteIfExists(Boolean overwriteIfExists) Sets the value ofCfnTransformer.CopyValueEntryProperty.getOverwriteIfExists()- Parameters:
overwriteIfExists- Specifies whether to overwrite the value if the destination key already exists. If you omit this, the default isfalse.- Returns:
this
-
overwriteIfExists
@Stability(Stable) public CfnTransformer.CopyValueEntryProperty.Builder overwriteIfExists(IResolvable overwriteIfExists) Sets the value ofCfnTransformer.CopyValueEntryProperty.getOverwriteIfExists()- Parameters:
overwriteIfExists- Specifies whether to overwrite the value if the destination key already exists. If you omit this, the default isfalse.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransformer.CopyValueEntryProperty>- Returns:
- a new instance of
CfnTransformer.CopyValueEntryProperty - Throws:
NullPointerException- if any required attribute was not provided
-