Struct aws_sdk_proton::types::builders::SyncBlockerBuilder
source · #[non_exhaustive]pub struct SyncBlockerBuilder { /* private fields */ }
Expand description
A builder for SyncBlocker
.
Implementations§
source§impl SyncBlockerBuilder
impl SyncBlockerBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the sync blocker.
This field is required.sourcepub fn type(self, input: BlockerType) -> Self
pub fn type(self, input: BlockerType) -> Self
The type of the sync blocker.
This field is required.sourcepub fn set_type(self, input: Option<BlockerType>) -> Self
pub fn set_type(self, input: Option<BlockerType>) -> Self
The type of the sync blocker.
sourcepub fn get_type(&self) -> &Option<BlockerType>
pub fn get_type(&self) -> &Option<BlockerType>
The type of the sync blocker.
sourcepub fn status(self, input: BlockerStatus) -> Self
pub fn status(self, input: BlockerStatus) -> Self
The status of the sync blocker.
This field is required.sourcepub fn set_status(self, input: Option<BlockerStatus>) -> Self
pub fn set_status(self, input: Option<BlockerStatus>) -> Self
The status of the sync blocker.
sourcepub fn get_status(&self) -> &Option<BlockerStatus>
pub fn get_status(&self) -> &Option<BlockerStatus>
The status of the sync blocker.
sourcepub fn created_reason(self, input: impl Into<String>) -> Self
pub fn created_reason(self, input: impl Into<String>) -> Self
The reason why the sync blocker was created.
This field is required.sourcepub fn set_created_reason(self, input: Option<String>) -> Self
pub fn set_created_reason(self, input: Option<String>) -> Self
The reason why the sync blocker was created.
sourcepub fn get_created_reason(&self) -> &Option<String>
pub fn get_created_reason(&self) -> &Option<String>
The reason why the sync blocker was created.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time when the sync blocker was created.
This field is required.sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time when the sync blocker was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time when the sync blocker was created.
sourcepub fn contexts(self, input: SyncBlockerContext) -> Self
pub fn contexts(self, input: SyncBlockerContext) -> Self
Appends an item to contexts
.
To override the contents of this collection use set_contexts
.
The contexts for the sync blocker.
sourcepub fn set_contexts(self, input: Option<Vec<SyncBlockerContext>>) -> Self
pub fn set_contexts(self, input: Option<Vec<SyncBlockerContext>>) -> Self
The contexts for the sync blocker.
sourcepub fn get_contexts(&self) -> &Option<Vec<SyncBlockerContext>>
pub fn get_contexts(&self) -> &Option<Vec<SyncBlockerContext>>
The contexts for the sync blocker.
sourcepub fn resolved_reason(self, input: impl Into<String>) -> Self
pub fn resolved_reason(self, input: impl Into<String>) -> Self
The reason the sync blocker was resolved.
sourcepub fn set_resolved_reason(self, input: Option<String>) -> Self
pub fn set_resolved_reason(self, input: Option<String>) -> Self
The reason the sync blocker was resolved.
sourcepub fn get_resolved_reason(&self) -> &Option<String>
pub fn get_resolved_reason(&self) -> &Option<String>
The reason the sync blocker was resolved.
sourcepub fn resolved_at(self, input: DateTime) -> Self
pub fn resolved_at(self, input: DateTime) -> Self
The time the sync blocker was resolved.
sourcepub fn set_resolved_at(self, input: Option<DateTime>) -> Self
pub fn set_resolved_at(self, input: Option<DateTime>) -> Self
The time the sync blocker was resolved.
sourcepub fn get_resolved_at(&self) -> &Option<DateTime>
pub fn get_resolved_at(&self) -> &Option<DateTime>
The time the sync blocker was resolved.
sourcepub fn build(self) -> Result<SyncBlocker, BuildError>
pub fn build(self) -> Result<SyncBlocker, BuildError>
Consumes the builder and constructs a SyncBlocker
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SyncBlockerBuilder
impl Clone for SyncBlockerBuilder
source§fn clone(&self) -> SyncBlockerBuilder
fn clone(&self) -> SyncBlockerBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SyncBlockerBuilder
impl Debug for SyncBlockerBuilder
source§impl Default for SyncBlockerBuilder
impl Default for SyncBlockerBuilder
source§fn default() -> SyncBlockerBuilder
fn default() -> SyncBlockerBuilder
source§impl PartialEq for SyncBlockerBuilder
impl PartialEq for SyncBlockerBuilder
impl StructuralPartialEq for SyncBlockerBuilder
Auto Trait Implementations§
impl Freeze for SyncBlockerBuilder
impl RefUnwindSafe for SyncBlockerBuilder
impl Send for SyncBlockerBuilder
impl Sync for SyncBlockerBuilder
impl Unpin for SyncBlockerBuilder
impl UnwindSafe for SyncBlockerBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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