Class CfnTransformerPropsMixin.DateTimeConverterProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.logs.CfnTransformerPropsMixin.DateTimeConverterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformerPropsMixin.DateTimeConverterProperty>
- Enclosing interface:
CfnTransformerPropsMixin.DateTimeConverterProperty
@Stability(Stable)
public static final class CfnTransformerPropsMixin.DateTimeConverterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformerPropsMixin.DateTimeConverterProperty>
A builder for
CfnTransformerPropsMixin.DateTimeConverterProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getLocale()matchPatterns(List<String> matchPatterns) Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getMatchPatterns()Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getSource()sourceTimezone(String sourceTimezone) Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getSourceTimezone()Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getTarget()targetFormat(String targetFormat) Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getTargetFormat()targetTimezone(String targetTimezone) Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getTargetTimezone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
locale
@Stability(Stable) public CfnTransformerPropsMixin.DateTimeConverterProperty.Builder locale(String locale) Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getLocale()- Parameters:
locale- The locale of the source field. If you omit this, the default oflocale.ROOTis used.- Returns:
this
-
matchPatterns
@Stability(Stable) public CfnTransformerPropsMixin.DateTimeConverterProperty.Builder matchPatterns(List<String> matchPatterns) Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getMatchPatterns()- Parameters:
matchPatterns- A list of patterns to match against thesourcefield.- Returns:
this
-
source
@Stability(Stable) public CfnTransformerPropsMixin.DateTimeConverterProperty.Builder source(String source) Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getSource()- Parameters:
source- The key to apply the date conversion to.- Returns:
this
-
sourceTimezone
@Stability(Stable) public CfnTransformerPropsMixin.DateTimeConverterProperty.Builder sourceTimezone(String sourceTimezone) Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getSourceTimezone()- Parameters:
sourceTimezone- The time zone of the source field. If you omit this, the default used is the UTC zone.- Returns:
this
-
target
@Stability(Stable) public CfnTransformerPropsMixin.DateTimeConverterProperty.Builder target(String target) Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getTarget()- Parameters:
target- The JSON field to store the result in.- Returns:
this
-
targetFormat
@Stability(Stable) public CfnTransformerPropsMixin.DateTimeConverterProperty.Builder targetFormat(String targetFormat) Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getTargetFormat()- Parameters:
targetFormat- The datetime format to use for the converted data in the target field. If you omit this, the default ofyyyy-MM-dd'T'HH:mm:ss.SSS'Zis used.- Returns:
this
-
targetTimezone
@Stability(Stable) public CfnTransformerPropsMixin.DateTimeConverterProperty.Builder targetTimezone(String targetTimezone) Sets the value ofCfnTransformerPropsMixin.DateTimeConverterProperty.getTargetTimezone()- Parameters:
targetTimezone- The time zone of the target field. If you omit this, the default used is the UTC zone.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransformerPropsMixin.DateTimeConverterProperty>- Returns:
- a new instance of
CfnTransformerPropsMixin.DateTimeConverterProperty - Throws:
NullPointerException- if any required attribute was not provided
-