Interface Mapping.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Mapping.Builder,Mapping>,SdkBuilder<Mapping.Builder,Mapping>,SdkPojo
- Enclosing class:
- Mapping
public static interface Mapping.Builder extends SdkPojo, CopyableBuilder<Mapping.Builder,Mapping>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Mapping.Builderchildren(Collection<Mapping> children)Only applicable to nested data structures.Mapping.Builderchildren(Consumer<Mapping.Builder>... children)Only applicable to nested data structures.Mapping.Builderchildren(Mapping... children)Only applicable to nested data structures.Mapping.Builderdropped(Boolean dropped)If true, then the column is removed.Mapping.BuilderfromPath(String... fromPath)The table or column to be modified.Mapping.BuilderfromPath(Collection<String> fromPath)The table or column to be modified.Mapping.BuilderfromType(String fromType)The type of the data to be modified.Mapping.BuildertoKey(String toKey)After the apply mapping, what the name of the column should be.Mapping.BuildertoType(String toType)The data type that the data is to be modified to.-
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
-
toKey
Mapping.Builder toKey(String toKey)
After the apply mapping, what the name of the column should be. Can be the same as
FromPath.- Parameters:
toKey- After the apply mapping, what the name of the column should be. Can be the same asFromPath.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromPath
Mapping.Builder fromPath(Collection<String> fromPath)
The table or column to be modified.
- Parameters:
fromPath- The table or column to be modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromPath
Mapping.Builder fromPath(String... fromPath)
The table or column to be modified.
- Parameters:
fromPath- The table or column to be modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromType
Mapping.Builder fromType(String fromType)
The type of the data to be modified.
- Parameters:
fromType- The type of the data to be modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toType
Mapping.Builder toType(String toType)
The data type that the data is to be modified to.
- Parameters:
toType- The data type that the data is to be modified to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dropped
Mapping.Builder dropped(Boolean dropped)
If true, then the column is removed.
- Parameters:
dropped- If true, then the column is removed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
children
Mapping.Builder children(Collection<Mapping> children)
Only applicable to nested data structures. If you want to change the parent structure, but also one of its children, you can fill out this data strucutre. It is also
Mapping, but itsFromPathwill be the parent'sFromPathplus theFromPathfrom this structure.For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }You can specify a
Mappingthat looks like:{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }- Parameters:
children- Only applicable to nested data structures. If you want to change the parent structure, but also one of its children, you can fill out this data strucutre. It is alsoMapping, but itsFromPathwill be the parent'sFromPathplus theFromPathfrom this structure.For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }You can specify a
Mappingthat looks like:{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
children
Mapping.Builder children(Mapping... children)
Only applicable to nested data structures. If you want to change the parent structure, but also one of its children, you can fill out this data strucutre. It is also
Mapping, but itsFromPathwill be the parent'sFromPathplus theFromPathfrom this structure.For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }You can specify a
Mappingthat looks like:{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }- Parameters:
children- Only applicable to nested data structures. If you want to change the parent structure, but also one of its children, you can fill out this data strucutre. It is alsoMapping, but itsFromPathwill be the parent'sFromPathplus theFromPathfrom this structure.For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }You can specify a
Mappingthat looks like:{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
children
Mapping.Builder children(Consumer<Mapping.Builder>... children)
Only applicable to nested data structures. If you want to change the parent structure, but also one of its children, you can fill out this data strucutre. It is also
Mapping, but itsFromPathwill be the parent'sFromPathplus theFromPathfrom this structure.For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }You can specify a
Mappingthat looks like:
This is a convenience method that creates an instance of the{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }Mapping.Builderavoiding the need to create one manually viaMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#children(List.) - Parameters:
children- a consumer that will call methods onMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#children(java.util.Collection)
-
-