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