#[non_exhaustive]pub struct AddAttributesActivityBuilder { /* private fields */ }Expand description
A builder for AddAttributesActivity.
Implementations§
source§impl AddAttributesActivityBuilder
impl AddAttributesActivityBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the addAttributes activity.
This field is required.sourcepub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to attributes.
To override the contents of this collection use set_attributes.
A list of 1-50 AttributeNameMapping objects that map an existing attribute to a new attribute.
The existing attributes remain in the message, so if you want to remove the originals, use RemoveAttributeActivity.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
A list of 1-50 AttributeNameMapping objects that map an existing attribute to a new attribute.
The existing attributes remain in the message, so if you want to remove the originals, use RemoveAttributeActivity.
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
A list of 1-50 AttributeNameMapping objects that map an existing attribute to a new attribute.
The existing attributes remain in the message, so if you want to remove the originals, use RemoveAttributeActivity.
sourcepub fn build(self) -> Result<AddAttributesActivity, BuildError>
pub fn build(self) -> Result<AddAttributesActivity, BuildError>
Consumes the builder and constructs a AddAttributesActivity.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AddAttributesActivityBuilder
impl Clone for AddAttributesActivityBuilder
source§fn clone(&self) -> AddAttributesActivityBuilder
fn clone(&self) -> AddAttributesActivityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AddAttributesActivityBuilder
impl Debug for AddAttributesActivityBuilder
source§impl Default for AddAttributesActivityBuilder
impl Default for AddAttributesActivityBuilder
source§fn default() -> AddAttributesActivityBuilder
fn default() -> AddAttributesActivityBuilder
source§impl PartialEq for AddAttributesActivityBuilder
impl PartialEq for AddAttributesActivityBuilder
source§fn eq(&self, other: &AddAttributesActivityBuilder) -> bool
fn eq(&self, other: &AddAttributesActivityBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AddAttributesActivityBuilder
Auto Trait Implementations§
impl Freeze for AddAttributesActivityBuilder
impl RefUnwindSafe for AddAttributesActivityBuilder
impl Send for AddAttributesActivityBuilder
impl Sync for AddAttributesActivityBuilder
impl Unpin for AddAttributesActivityBuilder
impl UnwindSafe for AddAttributesActivityBuilder
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