#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StartExperimentInput {
pub project: ::std::option::Option<::std::string::String>,
pub experiment: ::std::option::Option<::std::string::String>,
pub analysis_complete_time: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl StartExperimentInput {
pub fn project(&self) -> ::std::option::Option<&str> {
self.project.as_deref()
}
pub fn experiment(&self) -> ::std::option::Option<&str> {
self.experiment.as_deref()
}
pub fn analysis_complete_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.analysis_complete_time.as_ref()
}
}
impl StartExperimentInput {
pub fn builder() -> crate::operation::start_experiment::builders::StartExperimentInputBuilder {
crate::operation::start_experiment::builders::StartExperimentInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StartExperimentInputBuilder {
pub(crate) project: ::std::option::Option<::std::string::String>,
pub(crate) experiment: ::std::option::Option<::std::string::String>,
pub(crate) analysis_complete_time: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl StartExperimentInputBuilder {
pub fn project(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.project = ::std::option::Option::Some(input.into());
self
}
pub fn set_project(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.project = input;
self
}
pub fn get_project(&self) -> &::std::option::Option<::std::string::String> {
&self.project
}
pub fn experiment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.experiment = ::std::option::Option::Some(input.into());
self
}
pub fn set_experiment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.experiment = input;
self
}
pub fn get_experiment(&self) -> &::std::option::Option<::std::string::String> {
&self.experiment
}
pub fn analysis_complete_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.analysis_complete_time = ::std::option::Option::Some(input);
self
}
pub fn set_analysis_complete_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.analysis_complete_time = input;
self
}
pub fn get_analysis_complete_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.analysis_complete_time
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::start_experiment::StartExperimentInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::start_experiment::StartExperimentInput {
project: self.project,
experiment: self.experiment,
analysis_complete_time: self.analysis_complete_time,
})
}
}