#[non_exhaustive]pub struct ComponentPropertyBuilder { /* private fields */ }Expand description
A builder for ComponentProperty.
Implementations§
source§impl ComponentPropertyBuilder
impl ComponentPropertyBuilder
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The value to assign to the component property.
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
The value to assign to the component property.
sourcepub fn binding_properties(
self,
input: ComponentPropertyBindingProperties
) -> Self
pub fn binding_properties( self, input: ComponentPropertyBindingProperties ) -> Self
The information to bind the component property to data at runtime.
sourcepub fn set_binding_properties(
self,
input: Option<ComponentPropertyBindingProperties>
) -> Self
pub fn set_binding_properties( self, input: Option<ComponentPropertyBindingProperties> ) -> Self
The information to bind the component property to data at runtime.
sourcepub fn get_binding_properties(
&self
) -> &Option<ComponentPropertyBindingProperties>
pub fn get_binding_properties( &self ) -> &Option<ComponentPropertyBindingProperties>
The information to bind the component property to data at runtime.
sourcepub fn collection_binding_properties(
self,
input: ComponentPropertyBindingProperties
) -> Self
pub fn collection_binding_properties( self, input: ComponentPropertyBindingProperties ) -> Self
The information to bind the component property to data at runtime. Use this for collection components.
sourcepub fn set_collection_binding_properties(
self,
input: Option<ComponentPropertyBindingProperties>
) -> Self
pub fn set_collection_binding_properties( self, input: Option<ComponentPropertyBindingProperties> ) -> Self
The information to bind the component property to data at runtime. Use this for collection components.
sourcepub fn get_collection_binding_properties(
&self
) -> &Option<ComponentPropertyBindingProperties>
pub fn get_collection_binding_properties( &self ) -> &Option<ComponentPropertyBindingProperties>
The information to bind the component property to data at runtime. Use this for collection components.
sourcepub fn default_value(self, input: impl Into<String>) -> Self
pub fn default_value(self, input: impl Into<String>) -> Self
The default value to assign to the component property.
sourcepub fn set_default_value(self, input: Option<String>) -> Self
pub fn set_default_value(self, input: Option<String>) -> Self
The default value to assign to the component property.
sourcepub fn get_default_value(&self) -> &Option<String>
pub fn get_default_value(&self) -> &Option<String>
The default value to assign to the component property.
sourcepub fn model(self, input: impl Into<String>) -> Self
pub fn model(self, input: impl Into<String>) -> Self
The data model to use to assign a value to the component property.
sourcepub fn set_model(self, input: Option<String>) -> Self
pub fn set_model(self, input: Option<String>) -> Self
The data model to use to assign a value to the component property.
sourcepub fn get_model(&self) -> &Option<String>
pub fn get_model(&self) -> &Option<String>
The data model to use to assign a value to the component property.
sourcepub fn bindings(self, k: impl Into<String>, v: FormBindingElement) -> Self
pub fn bindings(self, k: impl Into<String>, v: FormBindingElement) -> Self
Adds a key-value pair to bindings.
To override the contents of this collection use set_bindings.
The information to bind the component property to form data.
sourcepub fn set_bindings(
self,
input: Option<HashMap<String, FormBindingElement>>
) -> Self
pub fn set_bindings( self, input: Option<HashMap<String, FormBindingElement>> ) -> Self
The information to bind the component property to form data.
sourcepub fn get_bindings(&self) -> &Option<HashMap<String, FormBindingElement>>
pub fn get_bindings(&self) -> &Option<HashMap<String, FormBindingElement>>
The information to bind the component property to form data.
sourcepub fn event(self, input: impl Into<String>) -> Self
pub fn event(self, input: impl Into<String>) -> Self
An event that occurs in your app. Use this for workflow data binding.
sourcepub fn set_event(self, input: Option<String>) -> Self
pub fn set_event(self, input: Option<String>) -> Self
An event that occurs in your app. Use this for workflow data binding.
sourcepub fn get_event(&self) -> &Option<String>
pub fn get_event(&self) -> &Option<String>
An event that occurs in your app. Use this for workflow data binding.
sourcepub fn user_attribute(self, input: impl Into<String>) -> Self
pub fn user_attribute(self, input: impl Into<String>) -> Self
An authenticated user attribute to use to assign a value to the component property.
sourcepub fn set_user_attribute(self, input: Option<String>) -> Self
pub fn set_user_attribute(self, input: Option<String>) -> Self
An authenticated user attribute to use to assign a value to the component property.
sourcepub fn get_user_attribute(&self) -> &Option<String>
pub fn get_user_attribute(&self) -> &Option<String>
An authenticated user attribute to use to assign a value to the component property.
sourcepub fn concat(self, input: ComponentProperty) -> Self
pub fn concat(self, input: ComponentProperty) -> Self
Appends an item to concat.
To override the contents of this collection use set_concat.
A list of component properties to concatenate to create the value to assign to this component property.
sourcepub fn set_concat(self, input: Option<Vec<ComponentProperty>>) -> Self
pub fn set_concat(self, input: Option<Vec<ComponentProperty>>) -> Self
A list of component properties to concatenate to create the value to assign to this component property.
sourcepub fn get_concat(&self) -> &Option<Vec<ComponentProperty>>
pub fn get_concat(&self) -> &Option<Vec<ComponentProperty>>
A list of component properties to concatenate to create the value to assign to this component property.
sourcepub fn condition(self, input: ComponentConditionProperty) -> Self
pub fn condition(self, input: ComponentConditionProperty) -> Self
The conditional expression to use to assign a value to the component property.
sourcepub fn set_condition(self, input: Option<ComponentConditionProperty>) -> Self
pub fn set_condition(self, input: Option<ComponentConditionProperty>) -> Self
The conditional expression to use to assign a value to the component property.
sourcepub fn get_condition(&self) -> &Option<ComponentConditionProperty>
pub fn get_condition(&self) -> &Option<ComponentConditionProperty>
The conditional expression to use to assign a value to the component property.
sourcepub fn configured(self, input: bool) -> Self
pub fn configured(self, input: bool) -> Self
Specifies whether the user configured the property in Amplify Studio after importing it.
sourcepub fn set_configured(self, input: Option<bool>) -> Self
pub fn set_configured(self, input: Option<bool>) -> Self
Specifies whether the user configured the property in Amplify Studio after importing it.
sourcepub fn get_configured(&self) -> &Option<bool>
pub fn get_configured(&self) -> &Option<bool>
Specifies whether the user configured the property in Amplify Studio after importing it.
sourcepub fn imported_value(self, input: impl Into<String>) -> Self
pub fn imported_value(self, input: impl Into<String>) -> Self
The default value assigned to the property when the component is imported into an app.
sourcepub fn set_imported_value(self, input: Option<String>) -> Self
pub fn set_imported_value(self, input: Option<String>) -> Self
The default value assigned to the property when the component is imported into an app.
sourcepub fn get_imported_value(&self) -> &Option<String>
pub fn get_imported_value(&self) -> &Option<String>
The default value assigned to the property when the component is imported into an app.
sourcepub fn component_name(self, input: impl Into<String>) -> Self
pub fn component_name(self, input: impl Into<String>) -> Self
The name of the component that is affected by an event.
sourcepub fn set_component_name(self, input: Option<String>) -> Self
pub fn set_component_name(self, input: Option<String>) -> Self
The name of the component that is affected by an event.
sourcepub fn get_component_name(&self) -> &Option<String>
pub fn get_component_name(&self) -> &Option<String>
The name of the component that is affected by an event.
sourcepub fn property(self, input: impl Into<String>) -> Self
pub fn property(self, input: impl Into<String>) -> Self
The name of the component's property that is affected by an event.
sourcepub fn set_property(self, input: Option<String>) -> Self
pub fn set_property(self, input: Option<String>) -> Self
The name of the component's property that is affected by an event.
sourcepub fn get_property(&self) -> &Option<String>
pub fn get_property(&self) -> &Option<String>
The name of the component's property that is affected by an event.
sourcepub fn build(self) -> ComponentProperty
pub fn build(self) -> ComponentProperty
Consumes the builder and constructs a ComponentProperty.
Trait Implementations§
source§impl Clone for ComponentPropertyBuilder
impl Clone for ComponentPropertyBuilder
source§fn clone(&self) -> ComponentPropertyBuilder
fn clone(&self) -> ComponentPropertyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ComponentPropertyBuilder
impl Debug for ComponentPropertyBuilder
source§impl Default for ComponentPropertyBuilder
impl Default for ComponentPropertyBuilder
source§fn default() -> ComponentPropertyBuilder
fn default() -> ComponentPropertyBuilder
source§impl PartialEq for ComponentPropertyBuilder
impl PartialEq for ComponentPropertyBuilder
source§fn eq(&self, other: &ComponentPropertyBuilder) -> bool
fn eq(&self, other: &ComponentPropertyBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ComponentPropertyBuilder
Auto Trait Implementations§
impl Freeze for ComponentPropertyBuilder
impl RefUnwindSafe for ComponentPropertyBuilder
impl Send for ComponentPropertyBuilder
impl Sync for ComponentPropertyBuilder
impl Unpin for ComponentPropertyBuilder
impl UnwindSafe for ComponentPropertyBuilder
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more