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