Struct aws_sdk_textract::model::relationship::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for Relationship.
Implementations§
source§impl Builder
impl Builder
sourcepub fn type(self, input: RelationshipType) -> Self
pub fn type(self, input: RelationshipType) -> Self
The type of relationship that the blocks in the IDs array have with the current block. The relationship can be VALUE or CHILD. A relationship of type VALUE is a list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair. A relationship of type CHILD is a list of IDs that identify WORD blocks in the case of lines Cell blocks in the case of Tables, and WORD blocks in the case of Selection Elements.
sourcepub fn set_type(self, input: Option<RelationshipType>) -> Self
pub fn set_type(self, input: Option<RelationshipType>) -> Self
The type of relationship that the blocks in the IDs array have with the current block. The relationship can be VALUE or CHILD. A relationship of type VALUE is a list that contains the ID of the VALUE block that's associated with the KEY of a key-value pair. A relationship of type CHILD is a list of IDs that identify WORD blocks in the case of lines Cell blocks in the case of Tables, and WORD blocks in the case of Selection Elements.
sourcepub fn ids(self, input: impl Into<String>) -> Self
pub fn ids(self, input: impl Into<String>) -> Self
Appends an item to ids.
To override the contents of this collection use set_ids.
An array of IDs for related blocks. You can get the type of the relationship from the Type element.
sourcepub fn set_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_ids(self, input: Option<Vec<String>>) -> Self
An array of IDs for related blocks. You can get the type of the relationship from the Type element.
sourcepub fn build(self) -> Relationship
pub fn build(self) -> Relationship
Consumes the builder and constructs a Relationship.