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