Interface DateTimeConverter.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<DateTimeConverter.Builder,DateTimeConverter>
,SdkBuilder<DateTimeConverter.Builder,DateTimeConverter>
,SdkPojo
- Enclosing class:
- DateTimeConverter
public static interface DateTimeConverter.Builder extends SdkPojo, CopyableBuilder<DateTimeConverter.Builder,DateTimeConverter>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DateTimeConverter.Builder
locale(String locale)
The locale of the source field.DateTimeConverter.Builder
matchPatterns(String... matchPatterns)
A list of patterns to match against thesource
field.DateTimeConverter.Builder
matchPatterns(Collection<String> matchPatterns)
A list of patterns to match against thesource
field.DateTimeConverter.Builder
source(String source)
The key to apply the date conversion to.DateTimeConverter.Builder
sourceTimezone(String sourceTimezone)
The time zone of the source field.DateTimeConverter.Builder
target(String target)
The JSON field to store the result in.DateTimeConverter.Builder
targetFormat(String targetFormat)
The datetime format to use for the converted data in the target field.DateTimeConverter.Builder
targetTimezone(String targetTimezone)
The time zone of the target field.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
source
DateTimeConverter.Builder source(String source)
The key to apply the date conversion to.
- Parameters:
source
- The key to apply the date conversion to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
DateTimeConverter.Builder target(String target)
The JSON field to store the result in.
- Parameters:
target
- The JSON field to store the result in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetFormat
DateTimeConverter.Builder targetFormat(String targetFormat)
The datetime format to use for the converted data in the target field.
If you omit this, the default of
yyyy-MM-dd'T'HH:mm:ss.SSS'Z
is used.- Parameters:
targetFormat
- The datetime format to use for the converted data in the target field.If you omit this, the default of
yyyy-MM-dd'T'HH:mm:ss.SSS'Z
is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchPatterns
DateTimeConverter.Builder matchPatterns(Collection<String> matchPatterns)
A list of patterns to match against the
source
field.- Parameters:
matchPatterns
- A list of patterns to match against thesource
field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchPatterns
DateTimeConverter.Builder matchPatterns(String... matchPatterns)
A list of patterns to match against the
source
field.- Parameters:
matchPatterns
- A list of patterns to match against thesource
field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceTimezone
DateTimeConverter.Builder sourceTimezone(String sourceTimezone)
The time zone of the source field. If you omit this, the default used is the UTC zone.
- Parameters:
sourceTimezone
- The time zone of the source field. If you omit this, the default used is the UTC zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetTimezone
DateTimeConverter.Builder targetTimezone(String targetTimezone)
The time zone of the target field. If you omit this, the default used is the UTC zone.
- Parameters:
targetTimezone
- The time zone of the target field. If you omit this, the default used is the UTC zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locale
DateTimeConverter.Builder locale(String locale)
The locale of the source field. If you omit this, the default of
locale.ROOT
is used.- Parameters:
locale
- The locale of the source field. If you omit this, the default oflocale.ROOT
is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-