#[non_exhaustive]pub struct CreateListInputBuilder { /* private fields */ }
Expand description
A builder for CreateListInput
.
Implementations§
source§impl CreateListInputBuilder
impl CreateListInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the list.
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
.
The names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API.
sourcepub fn set_elements(self, input: Option<Vec<String>>) -> Self
pub fn set_elements(self, input: Option<Vec<String>>) -> Self
The names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API.
sourcepub fn get_elements(&self) -> &Option<Vec<String>>
pub fn get_elements(&self) -> &Option<Vec<String>>
The names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API.
sourcepub fn variable_type(self, input: impl Into<String>) -> Self
pub fn variable_type(self, input: impl Into<String>) -> Self
The variable type of the list. You can only assign the variable type with String data type. For more information, see Variable types.
sourcepub fn set_variable_type(self, input: Option<String>) -> Self
pub fn set_variable_type(self, input: Option<String>) -> Self
The variable type of the list. You can only assign the variable type with String data type. For more information, see Variable types.
sourcepub fn get_variable_type(&self) -> &Option<String>
pub fn get_variable_type(&self) -> &Option<String>
The variable type of the list. You can only assign the variable type with String data type. For more information, see Variable types.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the list.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the list.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the list.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A collection of the key and value pairs.
A collection of the key and value pairs.
A collection of the key and value pairs.
sourcepub fn build(self) -> Result<CreateListInput, BuildError>
pub fn build(self) -> Result<CreateListInput, BuildError>
Consumes the builder and constructs a CreateListInput
.
source§impl CreateListInputBuilder
impl CreateListInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateListOutput, SdkError<CreateListError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateListOutput, SdkError<CreateListError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateListInputBuilder
impl Clone for CreateListInputBuilder
source§fn clone(&self) -> CreateListInputBuilder
fn clone(&self) -> CreateListInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateListInputBuilder
impl Debug for CreateListInputBuilder
source§impl Default for CreateListInputBuilder
impl Default for CreateListInputBuilder
source§fn default() -> CreateListInputBuilder
fn default() -> CreateListInputBuilder
source§impl PartialEq for CreateListInputBuilder
impl PartialEq for CreateListInputBuilder
source§fn eq(&self, other: &CreateListInputBuilder) -> bool
fn eq(&self, other: &CreateListInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.