Struct aws_sdk_cloudsearch::model::text_array_options::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for TextArrayOptions.
Implementations§
source§impl Builder
impl Builder
sourcepub fn default_value(self, input: impl Into<String>) -> Self
pub fn default_value(self, input: impl Into<String>) -> Self
A value to use for the field if the field isn’t specified for a document.
sourcepub fn set_default_value(self, input: Option<String>) -> Self
pub fn set_default_value(self, input: Option<String>) -> Self
A value to use for the field if the field isn’t specified for a document.
sourcepub fn source_fields(self, input: impl Into<String>) -> Self
pub fn source_fields(self, input: impl Into<String>) -> Self
A list of source fields to map to the field.
sourcepub fn set_source_fields(self, input: Option<String>) -> Self
pub fn set_source_fields(self, input: Option<String>) -> Self
A list of source fields to map to the field.
sourcepub fn return_enabled(self, input: bool) -> Self
pub fn return_enabled(self, input: bool) -> Self
Whether the contents of the field can be returned in the search results.
sourcepub fn set_return_enabled(self, input: Option<bool>) -> Self
pub fn set_return_enabled(self, input: Option<bool>) -> Self
Whether the contents of the field can be returned in the search results.
sourcepub fn highlight_enabled(self, input: bool) -> Self
pub fn highlight_enabled(self, input: bool) -> Self
Whether highlights can be returned for the field.
sourcepub fn set_highlight_enabled(self, input: Option<bool>) -> Self
pub fn set_highlight_enabled(self, input: Option<bool>) -> Self
Whether highlights can be returned for the field.
sourcepub fn analysis_scheme(self, input: impl Into<String>) -> Self
pub fn analysis_scheme(self, input: impl Into<String>) -> Self
The name of an analysis scheme for a text-array field.
sourcepub fn set_analysis_scheme(self, input: Option<String>) -> Self
pub fn set_analysis_scheme(self, input: Option<String>) -> Self
The name of an analysis scheme for a text-array field.
sourcepub fn build(self) -> TextArrayOptions
pub fn build(self) -> TextArrayOptions
Consumes the builder and constructs a TextArrayOptions.