#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StopExperimentOutput {
pub ended_time: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl StopExperimentOutput {
pub fn ended_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.ended_time.as_ref()
}
}
impl ::aws_types::request_id::RequestId for StopExperimentOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl StopExperimentOutput {
pub fn builder() -> crate::operation::stop_experiment::builders::StopExperimentOutputBuilder {
crate::operation::stop_experiment::builders::StopExperimentOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StopExperimentOutputBuilder {
pub(crate) ended_time: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl StopExperimentOutputBuilder {
pub fn ended_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.ended_time = ::std::option::Option::Some(input);
self
}
pub fn set_ended_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.ended_time = input;
self
}
pub fn get_ended_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.ended_time
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::stop_experiment::StopExperimentOutput {
crate::operation::stop_experiment::StopExperimentOutput {
ended_time: self.ended_time,
_request_id: self._request_id,
}
}
}