pub struct Builder { /* private fields */ }Expand description
A builder for CreatePlacementInput.
Implementations§
source§impl Builder
impl Builder
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.
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 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.
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 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 build(self) -> Result<CreatePlacementInput, BuildError>
pub fn build(self) -> Result<CreatePlacementInput, BuildError>
Consumes the builder and constructs a CreatePlacementInput.