Class StringMutatorProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.StringMutatorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StringMutatorProps>
- Enclosing interface:
StringMutatorProps
@Stability(Stable)
public static final class StringMutatorProps.Builder
extends Object
implements software.amazon.jsii.Builder<StringMutatorProps>
A builder for
StringMutatorProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.lowerCaseKeys(List<String> lowerCaseKeys) Sets the value ofStringMutatorProps.getLowerCaseKeys()splitOptions(SplitStringProperty splitOptions) Sets the value ofStringMutatorProps.getSplitOptions()substituteOptions(SubstituteStringProperty substituteOptions) Sets the value ofStringMutatorProps.getSubstituteOptions()Sets the value ofStringMutatorProps.getTrimKeys()type(StringMutatorType type) Sets the value ofStringMutatorProps.getType()upperCaseKeys(List<String> upperCaseKeys) Sets the value ofStringMutatorProps.getUpperCaseKeys()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofStringMutatorProps.getType()- Parameters:
type- The type of string mutation operation. This parameter is required.- Returns:
this
-
lowerCaseKeys
Sets the value ofStringMutatorProps.getLowerCaseKeys()- Parameters:
lowerCaseKeys- Keys for strings to convert to lowercase. Required when type is LOWER_CASE.- Returns:
this
-
splitOptions
Sets the value ofStringMutatorProps.getSplitOptions()- Parameters:
splitOptions- Options for string splitting. Required when type is SPLIT.- Returns:
this
-
substituteOptions
@Stability(Stable) public StringMutatorProps.Builder substituteOptions(SubstituteStringProperty substituteOptions) Sets the value ofStringMutatorProps.getSubstituteOptions()- Parameters:
substituteOptions- Options for string substitution. Required when type is SUBSTITUTE.- Returns:
this
-
trimKeys
Sets the value ofStringMutatorProps.getTrimKeys()- Parameters:
trimKeys- Keys for strings to trim. Required when type is TRIM.- Returns:
this
-
upperCaseKeys
Sets the value ofStringMutatorProps.getUpperCaseKeys()- Parameters:
upperCaseKeys- Keys for strings to convert to uppercase. Required when type is UPPER_CASE.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StringMutatorProps>- Returns:
- a new instance of
StringMutatorProps - Throws:
NullPointerException- if any required attribute was not provided
-