1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>A structure that contains results of an experiment.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ExperimentReport {
    /// <p>The name of the metric that is analyzed in this experiment report.</p>
    pub metric_name: ::std::option::Option<::std::string::String>,
    /// <p>The name of the variation that this report pertains to.</p>
    pub treatment_name: ::std::option::Option<::std::string::String>,
    /// <p>The type of analysis used for this report.</p>
    pub report_name: ::std::option::Option<crate::types::ExperimentReportName>,
    /// <p>The content of the report.</p>
    pub content: ::std::option::Option<::std::string::String>,
}
impl ExperimentReport {
    /// <p>The name of the metric that is analyzed in this experiment report.</p>
    pub fn metric_name(&self) -> ::std::option::Option<&str> {
        self.metric_name.as_deref()
    }
    /// <p>The name of the variation that this report pertains to.</p>
    pub fn treatment_name(&self) -> ::std::option::Option<&str> {
        self.treatment_name.as_deref()
    }
    /// <p>The type of analysis used for this report.</p>
    pub fn report_name(&self) -> ::std::option::Option<&crate::types::ExperimentReportName> {
        self.report_name.as_ref()
    }
    /// <p>The content of the report.</p>
    pub fn content(&self) -> ::std::option::Option<&str> {
        self.content.as_deref()
    }
}
impl ExperimentReport {
    /// Creates a new builder-style object to manufacture [`ExperimentReport`](crate::types::ExperimentReport).
    pub fn builder() -> crate::types::builders::ExperimentReportBuilder {
        crate::types::builders::ExperimentReportBuilder::default()
    }
}

/// A builder for [`ExperimentReport`](crate::types::ExperimentReport).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ExperimentReportBuilder {
    pub(crate) metric_name: ::std::option::Option<::std::string::String>,
    pub(crate) treatment_name: ::std::option::Option<::std::string::String>,
    pub(crate) report_name: ::std::option::Option<crate::types::ExperimentReportName>,
    pub(crate) content: ::std::option::Option<::std::string::String>,
}
impl ExperimentReportBuilder {
    /// <p>The name of the metric that is analyzed in this experiment report.</p>
    pub fn metric_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.metric_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the metric that is analyzed in this experiment report.</p>
    pub fn set_metric_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.metric_name = input;
        self
    }
    /// <p>The name of the metric that is analyzed in this experiment report.</p>
    pub fn get_metric_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.metric_name
    }
    /// <p>The name of the variation that this report pertains to.</p>
    pub fn treatment_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.treatment_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the variation that this report pertains to.</p>
    pub fn set_treatment_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.treatment_name = input;
        self
    }
    /// <p>The name of the variation that this report pertains to.</p>
    pub fn get_treatment_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.treatment_name
    }
    /// <p>The type of analysis used for this report.</p>
    pub fn report_name(mut self, input: crate::types::ExperimentReportName) -> Self {
        self.report_name = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of analysis used for this report.</p>
    pub fn set_report_name(mut self, input: ::std::option::Option<crate::types::ExperimentReportName>) -> Self {
        self.report_name = input;
        self
    }
    /// <p>The type of analysis used for this report.</p>
    pub fn get_report_name(&self) -> &::std::option::Option<crate::types::ExperimentReportName> {
        &self.report_name
    }
    /// <p>The content of the report.</p>
    pub fn content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.content = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The content of the report.</p>
    pub fn set_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.content = input;
        self
    }
    /// <p>The content of the report.</p>
    pub fn get_content(&self) -> &::std::option::Option<::std::string::String> {
        &self.content
    }
    /// Consumes the builder and constructs a [`ExperimentReport`](crate::types::ExperimentReport).
    pub fn build(self) -> crate::types::ExperimentReport {
        crate::types::ExperimentReport {
            metric_name: self.metric_name,
            treatment_name: self.treatment_name,
            report_name: self.report_name,
            content: self.content,
        }
    }
}