#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateExperimentRunInput {
pub application_identifier: ::std::option::Option<::std::string::String>,
pub experiment_definition_identifier: ::std::option::Option<::std::string::String>,
pub run: ::std::option::Option<i32>,
pub description: ::std::option::Option<::std::string::String>,
pub exposure_percentage: ::std::option::Option<f32>,
pub treatment_overrides: ::std::option::Option<crate::types::TreatmentOverrides>,
pub deployment_parameters: ::std::option::Option<crate::types::DeploymentParameters>,
}
impl UpdateExperimentRunInput {
pub fn application_identifier(&self) -> ::std::option::Option<&str> {
self.application_identifier.as_deref()
}
pub fn experiment_definition_identifier(&self) -> ::std::option::Option<&str> {
self.experiment_definition_identifier.as_deref()
}
pub fn run(&self) -> ::std::option::Option<i32> {
self.run
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn exposure_percentage(&self) -> ::std::option::Option<f32> {
self.exposure_percentage
}
pub fn treatment_overrides(&self) -> ::std::option::Option<&crate::types::TreatmentOverrides> {
self.treatment_overrides.as_ref()
}
pub fn deployment_parameters(&self) -> ::std::option::Option<&crate::types::DeploymentParameters> {
self.deployment_parameters.as_ref()
}
}
impl UpdateExperimentRunInput {
pub fn builder() -> crate::operation::update_experiment_run::builders::UpdateExperimentRunInputBuilder {
crate::operation::update_experiment_run::builders::UpdateExperimentRunInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateExperimentRunInputBuilder {
pub(crate) application_identifier: ::std::option::Option<::std::string::String>,
pub(crate) experiment_definition_identifier: ::std::option::Option<::std::string::String>,
pub(crate) run: ::std::option::Option<i32>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) exposure_percentage: ::std::option::Option<f32>,
pub(crate) treatment_overrides: ::std::option::Option<crate::types::TreatmentOverrides>,
pub(crate) deployment_parameters: ::std::option::Option<crate::types::DeploymentParameters>,
}
impl UpdateExperimentRunInputBuilder {
pub fn application_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.application_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_application_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.application_identifier = input;
self
}
pub fn get_application_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.application_identifier
}
pub fn experiment_definition_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.experiment_definition_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_experiment_definition_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.experiment_definition_identifier = input;
self
}
pub fn get_experiment_definition_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.experiment_definition_identifier
}
pub fn run(mut self, input: i32) -> Self {
self.run = ::std::option::Option::Some(input);
self
}
pub fn set_run(mut self, input: ::std::option::Option<i32>) -> Self {
self.run = input;
self
}
pub fn get_run(&self) -> &::std::option::Option<i32> {
&self.run
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn exposure_percentage(mut self, input: f32) -> Self {
self.exposure_percentage = ::std::option::Option::Some(input);
self
}
pub fn set_exposure_percentage(mut self, input: ::std::option::Option<f32>) -> Self {
self.exposure_percentage = input;
self
}
pub fn get_exposure_percentage(&self) -> &::std::option::Option<f32> {
&self.exposure_percentage
}
pub fn treatment_overrides(mut self, input: crate::types::TreatmentOverrides) -> Self {
self.treatment_overrides = ::std::option::Option::Some(input);
self
}
pub fn set_treatment_overrides(mut self, input: ::std::option::Option<crate::types::TreatmentOverrides>) -> Self {
self.treatment_overrides = input;
self
}
pub fn get_treatment_overrides(&self) -> &::std::option::Option<crate::types::TreatmentOverrides> {
&self.treatment_overrides
}
pub fn deployment_parameters(mut self, input: crate::types::DeploymentParameters) -> Self {
self.deployment_parameters = ::std::option::Option::Some(input);
self
}
pub fn set_deployment_parameters(mut self, input: ::std::option::Option<crate::types::DeploymentParameters>) -> Self {
self.deployment_parameters = input;
self
}
pub fn get_deployment_parameters(&self) -> &::std::option::Option<crate::types::DeploymentParameters> {
&self.deployment_parameters
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_experiment_run::UpdateExperimentRunInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_experiment_run::UpdateExperimentRunInput {
application_identifier: self.application_identifier,
experiment_definition_identifier: self.experiment_definition_identifier,
run: self.run,
description: self.description,
exposure_percentage: self.exposure_percentage,
treatment_overrides: self.treatment_overrides,
deployment_parameters: self.deployment_parameters,
})
}
}