Struct aws_sdk_cloudsearch::types::builders::ExpressionBuilder
source · #[non_exhaustive]pub struct ExpressionBuilder { /* private fields */ }Expand description
A builder for Expression.
Implementations§
source§impl ExpressionBuilder
impl ExpressionBuilder
sourcepub fn expression_name(self, input: impl Into<String>) -> Self
pub fn expression_name(self, input: impl Into<String>) -> Self
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
This field is required.sourcepub fn set_expression_name(self, input: Option<String>) -> Self
pub fn set_expression_name(self, input: Option<String>) -> Self
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
sourcepub fn get_expression_name(&self) -> &Option<String>
pub fn get_expression_name(&self) -> &Option<String>
Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).
sourcepub fn expression_value(self, input: impl Into<String>) -> Self
pub fn expression_value(self, input: impl Into<String>) -> Self
The expression to evaluate for sorting while processing a search request. The Expression syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.
sourcepub fn set_expression_value(self, input: Option<String>) -> Self
pub fn set_expression_value(self, input: Option<String>) -> Self
The expression to evaluate for sorting while processing a search request. The Expression syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.
sourcepub fn get_expression_value(&self) -> &Option<String>
pub fn get_expression_value(&self) -> &Option<String>
The expression to evaluate for sorting while processing a search request. The Expression syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.
sourcepub fn build(self) -> Result<Expression, BuildError>
pub fn build(self) -> Result<Expression, BuildError>
Consumes the builder and constructs a Expression.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ExpressionBuilder
impl Clone for ExpressionBuilder
source§fn clone(&self) -> ExpressionBuilder
fn clone(&self) -> ExpressionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExpressionBuilder
impl Debug for ExpressionBuilder
source§impl Default for ExpressionBuilder
impl Default for ExpressionBuilder
source§fn default() -> ExpressionBuilder
fn default() -> ExpressionBuilder
source§impl PartialEq for ExpressionBuilder
impl PartialEq for ExpressionBuilder
source§fn eq(&self, other: &ExpressionBuilder) -> bool
fn eq(&self, other: &ExpressionBuilder) -> bool
self and other values to be equal, and is used
by ==.