Struct aws_sdk_qconnect::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 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 data(self, input: DataSummary) -> Self
pub fn data(self, input: DataSummary) -> Self
Summary of the recommended content.
sourcepub fn set_data(self, input: Option<DataSummary>) -> Self
pub fn set_data(self, input: Option<DataSummary>) -> Self
Summary of the recommended content.
sourcepub fn get_data(&self) -> &Option<DataSummary>
pub fn get_data(&self) -> &Option<DataSummary>
Summary of the recommended content.
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for RecommendationDataBuilder
impl PartialEq for RecommendationDataBuilder
source§fn eq(&self, other: &RecommendationDataBuilder) -> bool
fn eq(&self, other: &RecommendationDataBuilder) -> bool
self and other values to be equal, and is used
by ==.