#[non_exhaustive]pub struct CreatedArtifactBuilder { /* private fields */ }Expand description
A builder for CreatedArtifact.
Implementations§
source§impl CreatedArtifactBuilder
impl CreatedArtifactBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
An ARN that uniquely identifies the result of a migration task.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
An ARN that uniquely identifies the result of a migration task.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
An ARN that uniquely identifies the result of a migration task.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description that can be free-form text to record additional detail about the artifact for clarity or for later reference.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description that can be free-form text to record additional detail about the artifact for clarity or for later reference.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description that can be free-form text to record additional detail about the artifact for clarity or for later reference.
sourcepub fn build(self) -> Result<CreatedArtifact, BuildError>
pub fn build(self) -> Result<CreatedArtifact, BuildError>
Consumes the builder and constructs a CreatedArtifact.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreatedArtifactBuilder
impl Clone for CreatedArtifactBuilder
source§fn clone(&self) -> CreatedArtifactBuilder
fn clone(&self) -> CreatedArtifactBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CreatedArtifactBuilder
impl Debug for CreatedArtifactBuilder
source§impl Default for CreatedArtifactBuilder
impl Default for CreatedArtifactBuilder
source§fn default() -> CreatedArtifactBuilder
fn default() -> CreatedArtifactBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CreatedArtifactBuilder
impl PartialEq for CreatedArtifactBuilder
source§fn eq(&self, other: &CreatedArtifactBuilder) -> bool
fn eq(&self, other: &CreatedArtifactBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreatedArtifactBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CreatedArtifactBuilder
impl Send for CreatedArtifactBuilder
impl Sync for CreatedArtifactBuilder
impl Unpin for CreatedArtifactBuilder
impl UnwindSafe for CreatedArtifactBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.