Struct aws_sdk_glue::model::mapping::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for Mapping.
Implementations§
source§impl Builder
impl Builder
sourcepub fn to_key(self, input: impl Into<String>) -> Self
pub fn to_key(self, input: impl Into<String>) -> Self
After the apply mapping, what the name of the column should be. Can be the same as FromPath.
sourcepub fn set_to_key(self, input: Option<String>) -> Self
pub fn set_to_key(self, input: Option<String>) -> Self
After the apply mapping, what the name of the column should be. Can be the same as FromPath.
sourcepub fn from_path(self, input: impl Into<String>) -> Self
pub fn from_path(self, input: impl Into<String>) -> Self
Appends an item to from_path.
To override the contents of this collection use set_from_path.
The table or column to be modified.
sourcepub fn set_from_path(self, input: Option<Vec<String>>) -> Self
pub fn set_from_path(self, input: Option<Vec<String>>) -> Self
The table or column to be modified.
sourcepub fn set_from_type(self, input: Option<String>) -> Self
pub fn set_from_type(self, input: Option<String>) -> Self
The type of the data to be modified.
sourcepub fn to_type(self, input: impl Into<String>) -> Self
pub fn to_type(self, input: impl Into<String>) -> Self
The data type that the data is to be modified to.
sourcepub fn set_to_type(self, input: Option<String>) -> Self
pub fn set_to_type(self, input: Option<String>) -> Self
The data type that the data is to be modified to.
sourcepub fn set_dropped(self, input: Option<bool>) -> Self
pub fn set_dropped(self, input: Option<bool>) -> Self
If true, then the column is removed.
sourcepub fn children(self, input: Mapping) -> Self
pub fn children(self, input: Mapping) -> Self
Appends an item to children.
To override the contents of this collection use set_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 its FromPath will be the parent's FromPath plus the FromPath from 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 Mapping that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
sourcepub fn set_children(self, input: Option<Vec<Mapping>>) -> Self
pub fn set_children(self, input: Option<Vec<Mapping>>) -> Self
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 its FromPath will be the parent's FromPath plus the FromPath from 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 Mapping that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }