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