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.Builderlocale(String locale)The locale of the source field.DateTimeConverter.BuildermatchPatterns(String... matchPatterns)A list of patterns to match against thesourcefield.DateTimeConverter.BuildermatchPatterns(Collection<String> matchPatterns)A list of patterns to match against thesourcefield.DateTimeConverter.Buildersource(String source)The key to apply the date conversion to.DateTimeConverter.BuildersourceTimezone(String sourceTimezone)The time zone of the source field.DateTimeConverter.Buildertarget(String target)The JSON field to store the result in.DateTimeConverter.BuildertargetFormat(String targetFormat)The datetime format to use for the converted data in the target field.DateTimeConverter.BuildertargetTimezone(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'Zis 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'Zis 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
sourcefield.- Parameters:
matchPatterns- A list of patterns to match against thesourcefield.- 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
sourcefield.- Parameters:
matchPatterns- A list of patterns to match against thesourcefield.- 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.ROOTis used.- Parameters:
locale- The locale of the source field. If you omit this, the default oflocale.ROOTis used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-