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 ==
.impl StructuralPartialEq for CreatePlacementInputBuilder
Auto Trait Implementations§
impl Freeze for CreatePlacementInputBuilder
impl RefUnwindSafe for CreatePlacementInputBuilder
impl Send for CreatePlacementInputBuilder
impl Sync for CreatePlacementInputBuilder
impl Unpin for CreatePlacementInputBuilder
impl UnwindSafe for CreatePlacementInputBuilder
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