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