Class CfnTransformer.SubstituteStringEntryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnTransformer.SubstituteStringEntryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformer.SubstituteStringEntryProperty>
- Enclosing interface:
CfnTransformer.SubstituteStringEntryProperty
@Stability(Stable)
public static final class CfnTransformer.SubstituteStringEntryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformer.SubstituteStringEntryProperty>
A builder for
CfnTransformer.SubstituteStringEntryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTransformer.SubstituteStringEntryProperty.getFrom()Sets the value ofCfnTransformer.SubstituteStringEntryProperty.getSource()Sets the value ofCfnTransformer.SubstituteStringEntryProperty.getTo()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
Sets the value ofCfnTransformer.SubstituteStringEntryProperty.getFrom()- Parameters:
from- The regular expression string to be replaced. This parameter is required. Special regex characters such as [ and ] must be escaped using \ when using double quotes and with \ when using single quotes. For more information, see Class Pattern on the Oracle web site.- Returns:
this
-
source
@Stability(Stable) public CfnTransformer.SubstituteStringEntryProperty.Builder source(String source) Sets the value ofCfnTransformer.SubstituteStringEntryProperty.getSource()- Parameters:
source- The key to modify. This parameter is required.- Returns:
this
-
to
Sets the value ofCfnTransformer.SubstituteStringEntryProperty.getTo()- Parameters:
to- The string to be substituted for each match offrom. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransformer.SubstituteStringEntryProperty>- Returns:
- a new instance of
CfnTransformer.SubstituteStringEntryProperty - Throws:
NullPointerException- if any required attribute was not provided
-