Interface Mapping.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Mapping.Builder,,Mapping> SdkBuilder<Mapping.Builder,,Mapping> SdkPojo
- Enclosing class:
Mapping
-
Method Summary
Modifier and TypeMethodDescriptionchildren(Collection<Mapping> children) Only applicable to nested data structures.children(Consumer<Mapping.Builder>... children) Only applicable to nested data structures.Only applicable to nested data structures.If true, then the column is removed.The table or column to be modified.fromPath(Collection<String> fromPath) The table or column to be modified.The type of the data to be modified.After the apply mapping, what the name of the column should be.The data type that the data is to be modified to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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
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
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
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
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
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 tochildren(List<Mapping>).- 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:
-