#[non_exhaustive]pub struct UpdateListInputBuilder { /* private fields */ }
Expand description
A builder for UpdateListInput
.
Implementations§
source§impl UpdateListInputBuilder
impl UpdateListInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the list to update.
This field is required.sourcepub fn elements(self, input: impl Into<String>) -> Self
pub fn elements(self, input: impl Into<String>) -> Self
Appends an item to elements
.
To override the contents of this collection use set_elements
.
One or more list elements to add or replace. If you are providing the elements, make sure to specify the updateMode
to use.
If you are deleting all elements from the list, use REPLACE
for the updateMode
and provide an empty list (0 elements).
sourcepub fn set_elements(self, input: Option<Vec<String>>) -> Self
pub fn set_elements(self, input: Option<Vec<String>>) -> Self
One or more list elements to add or replace. If you are providing the elements, make sure to specify the updateMode
to use.
If you are deleting all elements from the list, use REPLACE
for the updateMode
and provide an empty list (0 elements).
sourcepub fn get_elements(&self) -> &Option<Vec<String>>
pub fn get_elements(&self) -> &Option<Vec<String>>
One or more list elements to add or replace. If you are providing the elements, make sure to specify the updateMode
to use.
If you are deleting all elements from the list, use REPLACE
for the updateMode
and provide an empty list (0 elements).
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The new description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The new description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The new description.
sourcepub fn update_mode(self, input: ListUpdateMode) -> Self
pub fn update_mode(self, input: ListUpdateMode) -> Self
The update mode (type).
-
Use
APPEND
if you are adding elements to the list. -
Use
REPLACE
if you replacing existing elements in the list. -
Use
REMOVE
if you are removing elements from the list.
sourcepub fn set_update_mode(self, input: Option<ListUpdateMode>) -> Self
pub fn set_update_mode(self, input: Option<ListUpdateMode>) -> Self
The update mode (type).
-
Use
APPEND
if you are adding elements to the list. -
Use
REPLACE
if you replacing existing elements in the list. -
Use
REMOVE
if you are removing elements from the list.
sourcepub fn get_update_mode(&self) -> &Option<ListUpdateMode>
pub fn get_update_mode(&self) -> &Option<ListUpdateMode>
The update mode (type).
-
Use
APPEND
if you are adding elements to the list. -
Use
REPLACE
if you replacing existing elements in the list. -
Use
REMOVE
if you are removing elements from the list.
sourcepub fn variable_type(self, input: impl Into<String>) -> Self
pub fn variable_type(self, input: impl Into<String>) -> Self
The variable type you want to assign to the list.
You cannot update a variable type of a list that already has a variable type assigned to it. You can assign a variable type to a list only if the list does not already have a variable type.
sourcepub fn set_variable_type(self, input: Option<String>) -> Self
pub fn set_variable_type(self, input: Option<String>) -> Self
The variable type you want to assign to the list.
You cannot update a variable type of a list that already has a variable type assigned to it. You can assign a variable type to a list only if the list does not already have a variable type.
sourcepub fn get_variable_type(&self) -> &Option<String>
pub fn get_variable_type(&self) -> &Option<String>
The variable type you want to assign to the list.
You cannot update a variable type of a list that already has a variable type assigned to it. You can assign a variable type to a list only if the list does not already have a variable type.
sourcepub fn build(self) -> Result<UpdateListInput, BuildError>
pub fn build(self) -> Result<UpdateListInput, BuildError>
Consumes the builder and constructs a UpdateListInput
.
source§impl UpdateListInputBuilder
impl UpdateListInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateListOutput, SdkError<UpdateListError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateListOutput, SdkError<UpdateListError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateListInputBuilder
impl Clone for UpdateListInputBuilder
source§fn clone(&self) -> UpdateListInputBuilder
fn clone(&self) -> UpdateListInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateListInputBuilder
impl Debug for UpdateListInputBuilder
source§impl Default for UpdateListInputBuilder
impl Default for UpdateListInputBuilder
source§fn default() -> UpdateListInputBuilder
fn default() -> UpdateListInputBuilder
source§impl PartialEq for UpdateListInputBuilder
impl PartialEq for UpdateListInputBuilder
source§fn eq(&self, other: &UpdateListInputBuilder) -> bool
fn eq(&self, other: &UpdateListInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.