#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ConcludeExperimentInput {
#[allow(missing_docs)] pub workspace_id: ::std::option::Option<::std::string::String>,
#[allow(missing_docs)] pub org_id: ::std::option::Option<::std::string::String>,
#[allow(missing_docs)] pub id: ::std::option::Option<::std::string::String>,
#[allow(missing_docs)] pub chosen_variant: ::std::option::Option<::std::string::String>,
#[allow(missing_docs)] pub description: ::std::option::Option<::std::string::String>,
#[allow(missing_docs)] pub change_reason: ::std::option::Option<::std::string::String>,
}
impl ConcludeExperimentInput {
#[allow(missing_docs)] pub fn workspace_id(&self) -> ::std::option::Option<&str> {
self.workspace_id.as_deref()
}
#[allow(missing_docs)] pub fn org_id(&self) -> ::std::option::Option<&str> {
self.org_id.as_deref()
}
#[allow(missing_docs)] pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
#[allow(missing_docs)] pub fn chosen_variant(&self) -> ::std::option::Option<&str> {
self.chosen_variant.as_deref()
}
#[allow(missing_docs)] pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
#[allow(missing_docs)] pub fn change_reason(&self) -> ::std::option::Option<&str> {
self.change_reason.as_deref()
}
}
impl ConcludeExperimentInput {
pub fn builder() -> crate::operation::conclude_experiment::builders::ConcludeExperimentInputBuilder {
crate::operation::conclude_experiment::builders::ConcludeExperimentInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ConcludeExperimentInputBuilder {
pub(crate) workspace_id: ::std::option::Option<::std::string::String>,
pub(crate) org_id: ::std::option::Option<::std::string::String>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) chosen_variant: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) change_reason: ::std::option::Option<::std::string::String>,
}
impl ConcludeExperimentInputBuilder {
#[allow(missing_docs)] pub fn workspace_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.workspace_id = ::std::option::Option::Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_workspace_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.workspace_id = input; self
}
#[allow(missing_docs)] pub fn get_workspace_id(&self) -> &::std::option::Option<::std::string::String> {
&self.workspace_id
}
#[allow(missing_docs)] pub fn org_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.org_id = ::std::option::Option::Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_org_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.org_id = input; self
}
#[allow(missing_docs)] pub fn get_org_id(&self) -> &::std::option::Option<::std::string::String> {
&self.org_id
}
#[allow(missing_docs)] pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input; self
}
#[allow(missing_docs)] pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
#[allow(missing_docs)] pub fn chosen_variant(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.chosen_variant = ::std::option::Option::Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_chosen_variant(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.chosen_variant = input; self
}
#[allow(missing_docs)] pub fn get_chosen_variant(&self) -> &::std::option::Option<::std::string::String> {
&self.chosen_variant
}
#[allow(missing_docs)] pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input; self
}
#[allow(missing_docs)] pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
#[allow(missing_docs)] pub fn change_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.change_reason = ::std::option::Option::Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_change_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.change_reason = input; self
}
#[allow(missing_docs)] pub fn get_change_reason(&self) -> &::std::option::Option<::std::string::String> {
&self.change_reason
}
pub fn build(self) -> ::std::result::Result<crate::operation::conclude_experiment::ConcludeExperimentInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(
crate::operation::conclude_experiment::ConcludeExperimentInput {
workspace_id: self.workspace_id
,
org_id: self.org_id
,
id: self.id
,
chosen_variant: self.chosen_variant
,
description: self.description
,
change_reason: self.change_reason
,
}
)
}
}