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