pub struct CreateArtifactFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateArtifact
.
Creates an artifact. An artifact is a lineage tracking entity that represents a URI addressable object or data. Some examples are the S3 URI of a dataset and the ECR registry path of an image. For more information, see Amazon SageMaker ML Lineage Tracking.
Implementations§
source§impl CreateArtifactFluentBuilder
impl CreateArtifactFluentBuilder
sourcepub fn as_input(&self) -> &CreateArtifactInputBuilder
pub fn as_input(&self) -> &CreateArtifactInputBuilder
Access the CreateArtifact as a reference.
sourcepub async fn send(
self,
) -> Result<CreateArtifactOutput, SdkError<CreateArtifactError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateArtifactOutput, SdkError<CreateArtifactError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<CreateArtifactOutput, CreateArtifactError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateArtifactOutput, CreateArtifactError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn artifact_name(self, input: impl Into<String>) -> Self
pub fn artifact_name(self, input: impl Into<String>) -> Self
The name of the artifact. Must be unique to your account in an Amazon Web Services Region.
sourcepub fn set_artifact_name(self, input: Option<String>) -> Self
pub fn set_artifact_name(self, input: Option<String>) -> Self
The name of the artifact. Must be unique to your account in an Amazon Web Services Region.
sourcepub fn get_artifact_name(&self) -> &Option<String>
pub fn get_artifact_name(&self) -> &Option<String>
The name of the artifact. Must be unique to your account in an Amazon Web Services Region.
sourcepub fn source(self, input: ArtifactSource) -> Self
pub fn source(self, input: ArtifactSource) -> Self
The ID, ID type, and URI of the source.
sourcepub fn set_source(self, input: Option<ArtifactSource>) -> Self
pub fn set_source(self, input: Option<ArtifactSource>) -> Self
The ID, ID type, and URI of the source.
sourcepub fn get_source(&self) -> &Option<ArtifactSource>
pub fn get_source(&self) -> &Option<ArtifactSource>
The ID, ID type, and URI of the source.
sourcepub fn artifact_type(self, input: impl Into<String>) -> Self
pub fn artifact_type(self, input: impl Into<String>) -> Self
The artifact type.
sourcepub fn set_artifact_type(self, input: Option<String>) -> Self
pub fn set_artifact_type(self, input: Option<String>) -> Self
The artifact type.
sourcepub fn get_artifact_type(&self) -> &Option<String>
pub fn get_artifact_type(&self) -> &Option<String>
The artifact type.
sourcepub fn properties(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn properties(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to Properties
.
To override the contents of this collection use set_properties
.
A list of properties to add to the artifact.
sourcepub fn set_properties(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_properties(self, input: Option<HashMap<String, String>>) -> Self
A list of properties to add to the artifact.
sourcepub fn get_properties(&self) -> &Option<HashMap<String, String>>
pub fn get_properties(&self) -> &Option<HashMap<String, String>>
A list of properties to add to the artifact.
sourcepub fn metadata_properties(self, input: MetadataProperties) -> Self
pub fn metadata_properties(self, input: MetadataProperties) -> Self
Metadata properties of the tracking entity, trial, or trial component.
sourcepub fn set_metadata_properties(self, input: Option<MetadataProperties>) -> Self
pub fn set_metadata_properties(self, input: Option<MetadataProperties>) -> Self
Metadata properties of the tracking entity, trial, or trial component.
sourcepub fn get_metadata_properties(&self) -> &Option<MetadataProperties>
pub fn get_metadata_properties(&self) -> &Option<MetadataProperties>
Metadata properties of the tracking entity, trial, or trial component.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A list of tags to apply to the artifact.
A list of tags to apply to the artifact.
A list of tags to apply to the artifact.
Trait Implementations§
source§impl Clone for CreateArtifactFluentBuilder
impl Clone for CreateArtifactFluentBuilder
source§fn clone(&self) -> CreateArtifactFluentBuilder
fn clone(&self) -> CreateArtifactFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateArtifactFluentBuilder
impl !RefUnwindSafe for CreateArtifactFluentBuilder
impl Send for CreateArtifactFluentBuilder
impl Sync for CreateArtifactFluentBuilder
impl Unpin for CreateArtifactFluentBuilder
impl !UnwindSafe for CreateArtifactFluentBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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