#[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 ==
.