Struct aws_sdk_glue::types::builders::MappingBuilder
source · #[non_exhaustive]pub struct MappingBuilder { /* private fields */ }
Expand description
A builder for Mapping
.
Implementations§
source§impl MappingBuilder
impl MappingBuilder
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 get_to_key(&self) -> &Option<String>
pub fn get_to_key(&self) -> &Option<String>
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 get_from_path(&self) -> &Option<Vec<String>>
pub fn get_from_path(&self) -> &Option<Vec<String>>
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 get_from_type(&self) -> &Option<String>
pub fn get_from_type(&self) -> &Option<String>
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 get_to_type(&self) -> &Option<String>
pub fn get_to_type(&self) -> &Option<String>
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 get_dropped(&self) -> &Option<bool>
pub fn get_dropped(&self) -> &Option<bool>
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, }\] }
sourcepub fn get_children(&self) -> &Option<Vec<Mapping>>
pub fn get_children(&self) -> &Option<Vec<Mapping>>
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, }\] }
Trait Implementations§
source§impl Clone for MappingBuilder
impl Clone for MappingBuilder
source§fn clone(&self) -> MappingBuilder
fn clone(&self) -> MappingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MappingBuilder
impl Debug for MappingBuilder
source§impl Default for MappingBuilder
impl Default for MappingBuilder
source§fn default() -> MappingBuilder
fn default() -> MappingBuilder
source§impl PartialEq for MappingBuilder
impl PartialEq for MappingBuilder
source§fn eq(&self, other: &MappingBuilder) -> bool
fn eq(&self, other: &MappingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MappingBuilder
Auto Trait Implementations§
impl Freeze for MappingBuilder
impl RefUnwindSafe for MappingBuilder
impl Send for MappingBuilder
impl Sync for MappingBuilder
impl Unpin for MappingBuilder
impl UnwindSafe for MappingBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more