Struct aws_sdk_glue::types::builders::CodeGenNodeBuilder
source · #[non_exhaustive]pub struct CodeGenNodeBuilder { /* private fields */ }
Expand description
A builder for CodeGenNode
.
Implementations§
source§impl CodeGenNodeBuilder
impl CodeGenNodeBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
A node identifier that is unique within the node's graph.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
A node identifier that is unique within the node's graph.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
A node identifier that is unique within the node's graph.
sourcepub fn node_type(self, input: impl Into<String>) -> Self
pub fn node_type(self, input: impl Into<String>) -> Self
The type of node that this is.
This field is required.sourcepub fn set_node_type(self, input: Option<String>) -> Self
pub fn set_node_type(self, input: Option<String>) -> Self
The type of node that this is.
sourcepub fn get_node_type(&self) -> &Option<String>
pub fn get_node_type(&self) -> &Option<String>
The type of node that this is.
sourcepub fn args(self, input: CodeGenNodeArg) -> Self
pub fn args(self, input: CodeGenNodeArg) -> Self
Appends an item to args
.
To override the contents of this collection use set_args
.
Properties of the node, in the form of name-value pairs.
sourcepub fn set_args(self, input: Option<Vec<CodeGenNodeArg>>) -> Self
pub fn set_args(self, input: Option<Vec<CodeGenNodeArg>>) -> Self
Properties of the node, in the form of name-value pairs.
sourcepub fn get_args(&self) -> &Option<Vec<CodeGenNodeArg>>
pub fn get_args(&self) -> &Option<Vec<CodeGenNodeArg>>
Properties of the node, in the form of name-value pairs.
sourcepub fn line_number(self, input: i32) -> Self
pub fn line_number(self, input: i32) -> Self
The line number of the node.
sourcepub fn set_line_number(self, input: Option<i32>) -> Self
pub fn set_line_number(self, input: Option<i32>) -> Self
The line number of the node.
sourcepub fn get_line_number(&self) -> &Option<i32>
pub fn get_line_number(&self) -> &Option<i32>
The line number of the node.
sourcepub fn build(self) -> Result<CodeGenNode, BuildError>
pub fn build(self) -> Result<CodeGenNode, BuildError>
Consumes the builder and constructs a CodeGenNode
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CodeGenNodeBuilder
impl Clone for CodeGenNodeBuilder
source§fn clone(&self) -> CodeGenNodeBuilder
fn clone(&self) -> CodeGenNodeBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CodeGenNodeBuilder
impl Debug for CodeGenNodeBuilder
source§impl Default for CodeGenNodeBuilder
impl Default for CodeGenNodeBuilder
source§fn default() -> CodeGenNodeBuilder
fn default() -> CodeGenNodeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CodeGenNodeBuilder
impl PartialEq for CodeGenNodeBuilder
source§fn eq(&self, other: &CodeGenNodeBuilder) -> bool
fn eq(&self, other: &CodeGenNodeBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CodeGenNodeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CodeGenNodeBuilder
impl Send for CodeGenNodeBuilder
impl Sync for CodeGenNodeBuilder
impl Unpin for CodeGenNodeBuilder
impl UnwindSafe for CodeGenNodeBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.