#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateExperimentInput {
#[doc(hidden)]
pub experiment_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub display_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
}
impl UpdateExperimentInput {
pub fn experiment_name(&self) -> std::option::Option<&str> {
self.experiment_name.as_deref()
}
pub fn display_name(&self) -> std::option::Option<&str> {
self.display_name.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
}
impl UpdateExperimentInput {
pub fn builder() -> crate::operation::update_experiment::builders::UpdateExperimentInputBuilder
{
crate::operation::update_experiment::builders::UpdateExperimentInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateExperimentInputBuilder {
pub(crate) experiment_name: std::option::Option<std::string::String>,
pub(crate) display_name: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
}
impl UpdateExperimentInputBuilder {
pub fn experiment_name(mut self, input: impl Into<std::string::String>) -> Self {
self.experiment_name = Some(input.into());
self
}
pub fn set_experiment_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.experiment_name = input;
self
}
pub fn display_name(mut self, input: impl Into<std::string::String>) -> Self {
self.display_name = Some(input.into());
self
}
pub fn set_display_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.display_name = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::update_experiment::UpdateExperimentInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::update_experiment::UpdateExperimentInput {
experiment_name: self.experiment_name,
display_name: self.display_name,
description: self.description,
})
}
}