#[non_exhaustive]pub struct PlacementSummaryBuilder { /* private fields */ }Expand description
A builder for PlacementSummary.
Implementations§
source§impl PlacementSummaryBuilder
impl PlacementSummaryBuilder
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 being summarized.
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 being summarized.
sourcepub fn get_placement_name(&self) -> &Option<String>
pub fn get_placement_name(&self) -> &Option<String>
The name of the placement being summarized.
sourcepub fn created_date(self, input: DateTime) -> Self
pub fn created_date(self, input: DateTime) -> Self
The date when the placement was originally 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 originally 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 originally 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<PlacementSummary, BuildError>
pub fn build(self) -> Result<PlacementSummary, BuildError>
Consumes the builder and constructs a PlacementSummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PlacementSummaryBuilder
impl Clone for PlacementSummaryBuilder
source§fn clone(&self) -> PlacementSummaryBuilder
fn clone(&self) -> PlacementSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PlacementSummaryBuilder
impl Debug for PlacementSummaryBuilder
source§impl Default for PlacementSummaryBuilder
impl Default for PlacementSummaryBuilder
source§fn default() -> PlacementSummaryBuilder
fn default() -> PlacementSummaryBuilder
source§impl PartialEq for PlacementSummaryBuilder
impl PartialEq for PlacementSummaryBuilder
source§fn eq(&self, other: &PlacementSummaryBuilder) -> bool
fn eq(&self, other: &PlacementSummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PlacementSummaryBuilder
Auto Trait Implementations§
impl Freeze for PlacementSummaryBuilder
impl RefUnwindSafe for PlacementSummaryBuilder
impl Send for PlacementSummaryBuilder
impl Sync for PlacementSummaryBuilder
impl Unpin for PlacementSummaryBuilder
impl UnwindSafe for PlacementSummaryBuilder
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