#[non_exhaustive]pub struct PlacementDescriptionBuilder { /* private fields */ }Expand description
A builder for PlacementDescription.
Implementations§
source§impl PlacementDescriptionBuilder
impl PlacementDescriptionBuilder
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 containing 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 containing the placement.
sourcepub fn get_project_name(&self) -> &Option<String>
pub fn get_project_name(&self) -> &Option<String>
The name of the project containing the placement.
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.
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.
sourcepub fn get_placement_name(&self) -> &Option<String>
pub fn get_placement_name(&self) -> &Option<String>
The name of 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.
The user-defined attributes associated with the placement.
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
The user-defined attributes associated with the placement.
sourcepub fn get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
The user-defined attributes associated with the placement.
sourcepub fn created_date(self, input: DateTime) -> Self
pub fn created_date(self, input: DateTime) -> Self
The date when the placement was initially created, in UNIX epoch time format.
This field is required.sourcepub fn set_created_date(self, input: Option<DateTime>) -> Self
pub fn set_created_date(self, input: Option<DateTime>) -> Self
The date when the placement was initially created, in UNIX epoch time format.
sourcepub fn get_created_date(&self) -> &Option<DateTime>
pub fn get_created_date(&self) -> &Option<DateTime>
The date when the placement was initially created, in UNIX epoch time format.
sourcepub fn updated_date(self, input: DateTime) -> Self
pub fn updated_date(self, input: DateTime) -> Self
The date when the placement was last updated, in UNIX epoch time format. If the placement was not updated, then createdDate and updatedDate are the same.
sourcepub fn set_updated_date(self, input: Option<DateTime>) -> Self
pub fn set_updated_date(self, input: Option<DateTime>) -> Self
The date when the placement was last updated, in UNIX epoch time format. If the placement was not updated, then createdDate and updatedDate are the same.
sourcepub fn get_updated_date(&self) -> &Option<DateTime>
pub fn get_updated_date(&self) -> &Option<DateTime>
The date when the placement was last updated, in UNIX epoch time format. If the placement was not updated, then createdDate and updatedDate are the same.
sourcepub fn build(self) -> Result<PlacementDescription, BuildError>
pub fn build(self) -> Result<PlacementDescription, BuildError>
Consumes the builder and constructs a PlacementDescription.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PlacementDescriptionBuilder
impl Clone for PlacementDescriptionBuilder
source§fn clone(&self) -> PlacementDescriptionBuilder
fn clone(&self) -> PlacementDescriptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PlacementDescriptionBuilder
impl Debug for PlacementDescriptionBuilder
source§impl Default for PlacementDescriptionBuilder
impl Default for PlacementDescriptionBuilder
source§fn default() -> PlacementDescriptionBuilder
fn default() -> PlacementDescriptionBuilder
source§impl PartialEq for PlacementDescriptionBuilder
impl PartialEq for PlacementDescriptionBuilder
source§fn eq(&self, other: &PlacementDescriptionBuilder) -> bool
fn eq(&self, other: &PlacementDescriptionBuilder) -> bool
self and other values to be equal, and is used
by ==.