Class SubstituteStringEntryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.logs.SubstituteStringEntryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SubstituteStringEntryProperty>
- Enclosing interface:
SubstituteStringEntryProperty
@Stability(Stable)
public static final class SubstituteStringEntryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<SubstituteStringEntryProperty>
A builder for
SubstituteStringEntryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofSubstituteStringEntryProperty.getFrom()Sets the value ofSubstituteStringEntryProperty.getSource()Sets the value ofSubstituteStringEntryProperty.getTo()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
Sets the value ofSubstituteStringEntryProperty.getFrom()- Parameters:
from- The regular expression string to be replaced. This parameter is required.- Returns:
this
-
source
Sets the value ofSubstituteStringEntryProperty.getSource()- Parameters:
source- The key to modify. This parameter is required.- Returns:
this
-
to
Sets the value ofSubstituteStringEntryProperty.getTo()- Parameters:
to- The string to be substituted for each match of from. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SubstituteStringEntryProperty>- Returns:
- a new instance of
SubstituteStringEntryProperty - Throws:
NullPointerException- if any required attribute was not provided
-