#[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 for a specific sync blocker.
This field is required.sourcepub fn type(self, input: BlockerType) -> Self
pub fn type(self, input: BlockerType) -> Self
The sync blocker type.
This field is required.sourcepub fn set_type(self, input: Option<BlockerType>) -> Self
pub fn set_type(self, input: Option<BlockerType>) -> Self
The sync blocker type.
sourcepub fn get_type(&self) -> &Option<BlockerType>
pub fn get_type(&self) -> &Option<BlockerType>
The sync blocker type.
sourcepub fn status(self, input: BlockerStatus) -> Self
pub fn status(self, input: BlockerStatus) -> Self
The status for a specific 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 for a specific sync blocker.
sourcepub fn get_status(&self) -> &Option<BlockerStatus>
pub fn get_status(&self) -> &Option<BlockerStatus>
The status for a specific sync blocker.
sourcepub fn created_reason(self, input: impl Into<String>) -> Self
pub fn created_reason(self, input: impl Into<String>) -> Self
The provided reason for a specific sync blocker.
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 provided reason for a specific sync blocker.
sourcepub fn get_created_reason(&self) -> &Option<String>
pub fn get_created_reason(&self) -> &Option<String>
The provided reason for a specific sync blocker.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The creation time for a specific sync blocker.
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 creation time for a specific sync blocker.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The creation time for a specific sync blocker.
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 a specific 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 a specific sync blocker.
sourcepub fn get_contexts(&self) -> &Option<Vec<SyncBlockerContext>>
pub fn get_contexts(&self) -> &Option<Vec<SyncBlockerContext>>
The contexts for a specific sync blocker.
sourcepub fn resolved_reason(self, input: impl Into<String>) -> Self
pub fn resolved_reason(self, input: impl Into<String>) -> Self
The resolved reason for a specific sync blocker.
sourcepub fn set_resolved_reason(self, input: Option<String>) -> Self
pub fn set_resolved_reason(self, input: Option<String>) -> Self
The resolved reason for a specific sync blocker.
sourcepub fn get_resolved_reason(&self) -> &Option<String>
pub fn get_resolved_reason(&self) -> &Option<String>
The resolved reason for a specific sync blocker.
sourcepub fn resolved_at(self, input: DateTime) -> Self
pub fn resolved_at(self, input: DateTime) -> Self
The time that a specific 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 that a specific sync blocker was resolved.
sourcepub fn get_resolved_at(&self) -> &Option<DateTime>
pub fn get_resolved_at(&self) -> &Option<DateTime>
The time that a specific 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
source§fn eq(&self, other: &SyncBlockerBuilder) -> bool
fn eq(&self, other: &SyncBlockerBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.