Struct aws_sdk_glue::types::builders::CustomCodeBuilder
source · #[non_exhaustive]pub struct CustomCodeBuilder { /* private fields */ }
Expand description
A builder for CustomCode
.
Implementations§
source§impl CustomCodeBuilder
impl CustomCodeBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the transform node.
This field is required.sourcepub fn inputs(self, input: impl Into<String>) -> Self
pub fn inputs(self, input: impl Into<String>) -> Self
Appends an item to inputs
.
To override the contents of this collection use set_inputs
.
The data inputs identified by their node names.
sourcepub fn set_inputs(self, input: Option<Vec<String>>) -> Self
pub fn set_inputs(self, input: Option<Vec<String>>) -> Self
The data inputs identified by their node names.
sourcepub fn get_inputs(&self) -> &Option<Vec<String>>
pub fn get_inputs(&self) -> &Option<Vec<String>>
The data inputs identified by their node names.
sourcepub fn code(self, input: impl Into<String>) -> Self
pub fn code(self, input: impl Into<String>) -> Self
The custom code that is used to perform the data transformation.
This field is required.sourcepub fn set_code(self, input: Option<String>) -> Self
pub fn set_code(self, input: Option<String>) -> Self
The custom code that is used to perform the data transformation.
sourcepub fn get_code(&self) -> &Option<String>
pub fn get_code(&self) -> &Option<String>
The custom code that is used to perform the data transformation.
sourcepub fn class_name(self, input: impl Into<String>) -> Self
pub fn class_name(self, input: impl Into<String>) -> Self
The name defined for the custom code node class.
This field is required.sourcepub fn set_class_name(self, input: Option<String>) -> Self
pub fn set_class_name(self, input: Option<String>) -> Self
The name defined for the custom code node class.
sourcepub fn get_class_name(&self) -> &Option<String>
pub fn get_class_name(&self) -> &Option<String>
The name defined for the custom code node class.
sourcepub fn output_schemas(self, input: GlueSchema) -> Self
pub fn output_schemas(self, input: GlueSchema) -> Self
Appends an item to output_schemas
.
To override the contents of this collection use set_output_schemas
.
Specifies the data schema for the custom code transform.
sourcepub fn set_output_schemas(self, input: Option<Vec<GlueSchema>>) -> Self
pub fn set_output_schemas(self, input: Option<Vec<GlueSchema>>) -> Self
Specifies the data schema for the custom code transform.
sourcepub fn get_output_schemas(&self) -> &Option<Vec<GlueSchema>>
pub fn get_output_schemas(&self) -> &Option<Vec<GlueSchema>>
Specifies the data schema for the custom code transform.
sourcepub fn build(self) -> Result<CustomCode, BuildError>
pub fn build(self) -> Result<CustomCode, BuildError>
Consumes the builder and constructs a CustomCode
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CustomCodeBuilder
impl Clone for CustomCodeBuilder
source§fn clone(&self) -> CustomCodeBuilder
fn clone(&self) -> CustomCodeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomCodeBuilder
impl Debug for CustomCodeBuilder
source§impl Default for CustomCodeBuilder
impl Default for CustomCodeBuilder
source§fn default() -> CustomCodeBuilder
fn default() -> CustomCodeBuilder
source§impl PartialEq for CustomCodeBuilder
impl PartialEq for CustomCodeBuilder
source§fn eq(&self, other: &CustomCodeBuilder) -> bool
fn eq(&self, other: &CustomCodeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomCodeBuilder
Auto Trait Implementations§
impl Freeze for CustomCodeBuilder
impl RefUnwindSafe for CustomCodeBuilder
impl Send for CustomCodeBuilder
impl Sync for CustomCodeBuilder
impl Unpin for CustomCodeBuilder
impl UnwindSafe for CustomCodeBuilder
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