Struct aws_sdk_iot1clickprojects::operation::create_placement::builders::CreatePlacementInputBuilder
source · #[non_exhaustive]pub struct CreatePlacementInputBuilder { /* private fields */ }Expand description
A builder for CreatePlacementInput.
Implementations§
source§impl CreatePlacementInputBuilder
impl CreatePlacementInputBuilder
sourcepub fn placement_name(self, input: impl Into<String>) -> Self
pub fn placement_name(self, input: impl Into<String>) -> Self
The name of the placement to be created.
This field is required.sourcepub fn set_placement_name(self, input: Option<String>) -> Self
pub fn set_placement_name(self, input: Option<String>) -> Self
The name of the placement to be created.
sourcepub fn get_placement_name(&self) -> &Option<String>
pub fn get_placement_name(&self) -> &Option<String>
The name of the placement to be created.
sourcepub fn project_name(self, input: impl Into<String>) -> Self
pub fn project_name(self, input: impl Into<String>) -> Self
The name of the project in which to create the placement.
This field is required.sourcepub fn set_project_name(self, input: Option<String>) -> Self
pub fn set_project_name(self, input: Option<String>) -> Self
The name of the project in which to create the placement.
sourcepub fn get_project_name(&self) -> &Option<String>
pub fn get_project_name(&self) -> &Option<String>
The name of the project in which to create the placement.
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.
Optional user-defined key/value pairs providing contextual data (such as location or function) for the placement.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
Optional user-defined key/value pairs providing contextual data (such as location or function) for the placement.
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
Optional user-defined key/value pairs providing contextual data (such as location or function) for the placement.
sourcepub fn build(self) -> Result<CreatePlacementInput, BuildError>
pub fn build(self) -> Result<CreatePlacementInput, BuildError>
Consumes the builder and constructs a CreatePlacementInput.
source§impl CreatePlacementInputBuilder
impl CreatePlacementInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreatePlacementOutput, SdkError<CreatePlacementError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreatePlacementOutput, SdkError<CreatePlacementError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreatePlacementInputBuilder
impl Clone for CreatePlacementInputBuilder
source§fn clone(&self) -> CreatePlacementInputBuilder
fn clone(&self) -> CreatePlacementInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreatePlacementInputBuilder
impl Debug for CreatePlacementInputBuilder
source§impl Default for CreatePlacementInputBuilder
impl Default for CreatePlacementInputBuilder
source§fn default() -> CreatePlacementInputBuilder
fn default() -> CreatePlacementInputBuilder
source§impl PartialEq for CreatePlacementInputBuilder
impl PartialEq for CreatePlacementInputBuilder
source§fn eq(&self, other: &CreatePlacementInputBuilder) -> bool
fn eq(&self, other: &CreatePlacementInputBuilder) -> bool
self and other values to be equal, and is used
by ==.