#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AddArtifactInput {
pub agent_space_id: ::std::option::Option<::std::string::String>,
pub artifact_content: ::std::option::Option<::aws_smithy_types::Blob>,
pub artifact_type: ::std::option::Option<crate::types::ArtifactType>,
pub file_name: ::std::option::Option<::std::string::String>,
}
impl AddArtifactInput {
pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
self.agent_space_id.as_deref()
}
pub fn artifact_content(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
self.artifact_content.as_ref()
}
pub fn artifact_type(&self) -> ::std::option::Option<&crate::types::ArtifactType> {
self.artifact_type.as_ref()
}
pub fn file_name(&self) -> ::std::option::Option<&str> {
self.file_name.as_deref()
}
}
impl AddArtifactInput {
pub fn builder() -> crate::operation::add_artifact::builders::AddArtifactInputBuilder {
crate::operation::add_artifact::builders::AddArtifactInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct AddArtifactInputBuilder {
pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
pub(crate) artifact_content: ::std::option::Option<::aws_smithy_types::Blob>,
pub(crate) artifact_type: ::std::option::Option<crate::types::ArtifactType>,
pub(crate) file_name: ::std::option::Option<::std::string::String>,
}
impl AddArtifactInputBuilder {
pub fn agent_space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.agent_space_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_agent_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.agent_space_id = input;
self
}
pub fn get_agent_space_id(&self) -> &::std::option::Option<::std::string::String> {
&self.agent_space_id
}
pub fn artifact_content(mut self, input: ::aws_smithy_types::Blob) -> Self {
self.artifact_content = ::std::option::Option::Some(input);
self
}
pub fn set_artifact_content(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
self.artifact_content = input;
self
}
pub fn get_artifact_content(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
&self.artifact_content
}
pub fn artifact_type(mut self, input: crate::types::ArtifactType) -> Self {
self.artifact_type = ::std::option::Option::Some(input);
self
}
pub fn set_artifact_type(mut self, input: ::std::option::Option<crate::types::ArtifactType>) -> Self {
self.artifact_type = input;
self
}
pub fn get_artifact_type(&self) -> &::std::option::Option<crate::types::ArtifactType> {
&self.artifact_type
}
pub fn file_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.file_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_file_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.file_name = input;
self
}
pub fn get_file_name(&self) -> &::std::option::Option<::std::string::String> {
&self.file_name
}
pub fn build(self) -> ::std::result::Result<crate::operation::add_artifact::AddArtifactInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::add_artifact::AddArtifactInput {
agent_space_id: self.agent_space_id,
artifact_content: self.artifact_content,
artifact_type: self.artifact_type,
file_name: self.file_name,
})
}
}