Struct aws_sdk_comprehend::types::builders::BlockReferenceBuilder
source · #[non_exhaustive]pub struct BlockReferenceBuilder { /* private fields */ }Expand description
A builder for BlockReference.
Implementations§
source§impl BlockReferenceBuilder
impl BlockReferenceBuilder
sourcepub fn set_block_id(self, input: Option<String>) -> Self
pub fn set_block_id(self, input: Option<String>) -> Self
Unique identifier for the block.
sourcepub fn get_block_id(&self) -> &Option<String>
pub fn get_block_id(&self) -> &Option<String>
Unique identifier for the block.
sourcepub fn begin_offset(self, input: i32) -> Self
pub fn begin_offset(self, input: i32) -> Self
Offset of the start of the block within its parent block.
sourcepub fn set_begin_offset(self, input: Option<i32>) -> Self
pub fn set_begin_offset(self, input: Option<i32>) -> Self
Offset of the start of the block within its parent block.
sourcepub fn get_begin_offset(&self) -> &Option<i32>
pub fn get_begin_offset(&self) -> &Option<i32>
Offset of the start of the block within its parent block.
sourcepub fn end_offset(self, input: i32) -> Self
pub fn end_offset(self, input: i32) -> Self
Offset of the end of the block within its parent block.
sourcepub fn set_end_offset(self, input: Option<i32>) -> Self
pub fn set_end_offset(self, input: Option<i32>) -> Self
Offset of the end of the block within its parent block.
sourcepub fn get_end_offset(&self) -> &Option<i32>
pub fn get_end_offset(&self) -> &Option<i32>
Offset of the end of the block within its parent block.
sourcepub fn child_blocks(self, input: ChildBlock) -> Self
pub fn child_blocks(self, input: ChildBlock) -> Self
Appends an item to child_blocks.
To override the contents of this collection use set_child_blocks.
List of child blocks within this block.
sourcepub fn set_child_blocks(self, input: Option<Vec<ChildBlock>>) -> Self
pub fn set_child_blocks(self, input: Option<Vec<ChildBlock>>) -> Self
List of child blocks within this block.
sourcepub fn get_child_blocks(&self) -> &Option<Vec<ChildBlock>>
pub fn get_child_blocks(&self) -> &Option<Vec<ChildBlock>>
List of child blocks within this block.
sourcepub fn build(self) -> BlockReference
pub fn build(self) -> BlockReference
Consumes the builder and constructs a BlockReference.
Trait Implementations§
source§impl Clone for BlockReferenceBuilder
impl Clone for BlockReferenceBuilder
source§fn clone(&self) -> BlockReferenceBuilder
fn clone(&self) -> BlockReferenceBuilder
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 BlockReferenceBuilder
impl Debug for BlockReferenceBuilder
source§impl Default for BlockReferenceBuilder
impl Default for BlockReferenceBuilder
source§fn default() -> BlockReferenceBuilder
fn default() -> BlockReferenceBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for BlockReferenceBuilder
impl PartialEq for BlockReferenceBuilder
source§fn eq(&self, other: &BlockReferenceBuilder) -> bool
fn eq(&self, other: &BlockReferenceBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BlockReferenceBuilder
Auto Trait Implementations§
impl Freeze for BlockReferenceBuilder
impl RefUnwindSafe for BlockReferenceBuilder
impl Send for BlockReferenceBuilder
impl Sync for BlockReferenceBuilder
impl Unpin for BlockReferenceBuilder
impl UnwindSafe for BlockReferenceBuilder
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.