Struct aws_sdk_wisdom::types::builders::RecommendationDataBuilder
source · #[non_exhaustive]pub struct RecommendationDataBuilder { /* private fields */ }Expand description
A builder for RecommendationData.
Implementations§
source§impl RecommendationDataBuilder
impl RecommendationDataBuilder
sourcepub fn recommendation_id(self, input: impl Into<String>) -> Self
pub fn recommendation_id(self, input: impl Into<String>) -> Self
The identifier of the recommendation.
This field is required.sourcepub fn set_recommendation_id(self, input: Option<String>) -> Self
pub fn set_recommendation_id(self, input: Option<String>) -> Self
The identifier of the recommendation.
sourcepub fn get_recommendation_id(&self) -> &Option<String>
pub fn get_recommendation_id(&self) -> &Option<String>
The identifier of the recommendation.
sourcepub fn document(self, input: Document) -> Self
pub fn document(self, input: Document) -> Self
The recommended document.
This field is required.sourcepub fn set_document(self, input: Option<Document>) -> Self
pub fn set_document(self, input: Option<Document>) -> Self
The recommended document.
sourcepub fn get_document(&self) -> &Option<Document>
pub fn get_document(&self) -> &Option<Document>
The recommended document.
sourcepub fn relevance_score(self, input: f64) -> Self
pub fn relevance_score(self, input: f64) -> Self
The relevance score of the recommendation.
sourcepub fn set_relevance_score(self, input: Option<f64>) -> Self
pub fn set_relevance_score(self, input: Option<f64>) -> Self
The relevance score of the recommendation.
sourcepub fn get_relevance_score(&self) -> &Option<f64>
pub fn get_relevance_score(&self) -> &Option<f64>
The relevance score of the recommendation.
sourcepub fn relevance_level(self, input: RelevanceLevel) -> Self
pub fn relevance_level(self, input: RelevanceLevel) -> Self
The relevance level of the recommendation.
sourcepub fn set_relevance_level(self, input: Option<RelevanceLevel>) -> Self
pub fn set_relevance_level(self, input: Option<RelevanceLevel>) -> Self
The relevance level of the recommendation.
sourcepub fn get_relevance_level(&self) -> &Option<RelevanceLevel>
pub fn get_relevance_level(&self) -> &Option<RelevanceLevel>
The relevance level of the recommendation.
sourcepub fn type(self, input: RecommendationType) -> Self
pub fn type(self, input: RecommendationType) -> Self
The type of recommendation.
sourcepub fn set_type(self, input: Option<RecommendationType>) -> Self
pub fn set_type(self, input: Option<RecommendationType>) -> Self
The type of recommendation.
sourcepub fn get_type(&self) -> &Option<RecommendationType>
pub fn get_type(&self) -> &Option<RecommendationType>
The type of recommendation.
sourcepub fn build(self) -> Result<RecommendationData, BuildError>
pub fn build(self) -> Result<RecommendationData, BuildError>
Consumes the builder and constructs a RecommendationData.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RecommendationDataBuilder
impl Clone for RecommendationDataBuilder
source§fn clone(&self) -> RecommendationDataBuilder
fn clone(&self) -> RecommendationDataBuilder
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 RecommendationDataBuilder
impl Debug for RecommendationDataBuilder
source§impl Default for RecommendationDataBuilder
impl Default for RecommendationDataBuilder
source§fn default() -> RecommendationDataBuilder
fn default() -> RecommendationDataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RecommendationDataBuilder
impl PartialEq for RecommendationDataBuilder
source§fn eq(&self, other: &RecommendationDataBuilder) -> bool
fn eq(&self, other: &RecommendationDataBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RecommendationDataBuilder
Auto Trait Implementations§
impl RefUnwindSafe for RecommendationDataBuilder
impl Send for RecommendationDataBuilder
impl Sync for RecommendationDataBuilder
impl Unpin for RecommendationDataBuilder
impl UnwindSafe for RecommendationDataBuilder
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.