#[non_exhaustive]pub struct CreateArtifactInputBuilder { /* private fields */ }
Expand description
A builder for CreateArtifactInput
.
Implementations§
source§impl CreateArtifactInputBuilder
impl CreateArtifactInputBuilder
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.
This field is required.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.
This field is required.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.
sourcepub fn build(self) -> Result<CreateArtifactInput, BuildError>
pub fn build(self) -> Result<CreateArtifactInput, BuildError>
Consumes the builder and constructs a CreateArtifactInput
.
source§impl CreateArtifactInputBuilder
impl CreateArtifactInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateArtifactOutput, SdkError<CreateArtifactError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateArtifactOutput, SdkError<CreateArtifactError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateArtifactInputBuilder
impl Clone for CreateArtifactInputBuilder
source§fn clone(&self) -> CreateArtifactInputBuilder
fn clone(&self) -> CreateArtifactInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateArtifactInputBuilder
impl Debug for CreateArtifactInputBuilder
source§impl Default for CreateArtifactInputBuilder
impl Default for CreateArtifactInputBuilder
source§fn default() -> CreateArtifactInputBuilder
fn default() -> CreateArtifactInputBuilder
source§impl PartialEq for CreateArtifactInputBuilder
impl PartialEq for CreateArtifactInputBuilder
source§fn eq(&self, other: &CreateArtifactInputBuilder) -> bool
fn eq(&self, other: &CreateArtifactInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.