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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StartAssessmentInput {
    /// <p> The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with <code>migrationhub-strategy-</code>. </p>
    pub s3bucket_for_analysis_data: ::std::option::Option<::std::string::String>,
    /// <p> The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with <code>migrationhub-strategy-</code>. </p>
    pub s3bucket_for_report_data: ::std::option::Option<::std::string::String>,
    /// <p>List of criteria for assessment.</p>
    pub assessment_targets: ::std::option::Option<::std::vec::Vec<crate::types::AssessmentTarget>>,
}
impl StartAssessmentInput {
    /// <p> The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with <code>migrationhub-strategy-</code>. </p>
    pub fn s3bucket_for_analysis_data(&self) -> ::std::option::Option<&str> {
        self.s3bucket_for_analysis_data.as_deref()
    }
    /// <p> The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with <code>migrationhub-strategy-</code>. </p>
    pub fn s3bucket_for_report_data(&self) -> ::std::option::Option<&str> {
        self.s3bucket_for_report_data.as_deref()
    }
    /// <p>List of criteria for assessment.</p>
    pub fn assessment_targets(&self) -> ::std::option::Option<&[crate::types::AssessmentTarget]> {
        self.assessment_targets.as_deref()
    }
}
impl StartAssessmentInput {
    /// Creates a new builder-style object to manufacture [`StartAssessmentInput`](crate::operation::start_assessment::StartAssessmentInput).
    pub fn builder() -> crate::operation::start_assessment::builders::StartAssessmentInputBuilder {
        crate::operation::start_assessment::builders::StartAssessmentInputBuilder::default()
    }
}

/// A builder for [`StartAssessmentInput`](crate::operation::start_assessment::StartAssessmentInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StartAssessmentInputBuilder {
    pub(crate) s3bucket_for_analysis_data: ::std::option::Option<::std::string::String>,
    pub(crate) s3bucket_for_report_data: ::std::option::Option<::std::string::String>,
    pub(crate) assessment_targets: ::std::option::Option<::std::vec::Vec<crate::types::AssessmentTarget>>,
}
impl StartAssessmentInputBuilder {
    /// <p> The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with <code>migrationhub-strategy-</code>. </p>
    pub fn s3bucket_for_analysis_data(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.s3bucket_for_analysis_data = ::std::option::Option::Some(input.into());
        self
    }
    /// <p> The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with <code>migrationhub-strategy-</code>. </p>
    pub fn set_s3bucket_for_analysis_data(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.s3bucket_for_analysis_data = input;
        self
    }
    /// <p> The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with <code>migrationhub-strategy-</code>. </p>
    pub fn get_s3bucket_for_analysis_data(&self) -> &::std::option::Option<::std::string::String> {
        &self.s3bucket_for_analysis_data
    }
    /// <p> The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with <code>migrationhub-strategy-</code>. </p>
    pub fn s3bucket_for_report_data(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.s3bucket_for_report_data = ::std::option::Option::Some(input.into());
        self
    }
    /// <p> The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with <code>migrationhub-strategy-</code>. </p>
    pub fn set_s3bucket_for_report_data(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.s3bucket_for_report_data = input;
        self
    }
    /// <p> The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with <code>migrationhub-strategy-</code>. </p>
    pub fn get_s3bucket_for_report_data(&self) -> &::std::option::Option<::std::string::String> {
        &self.s3bucket_for_report_data
    }
    /// Appends an item to `assessment_targets`.
    ///
    /// To override the contents of this collection use [`set_assessment_targets`](Self::set_assessment_targets).
    ///
    /// <p>List of criteria for assessment.</p>
    pub fn assessment_targets(mut self, input: crate::types::AssessmentTarget) -> Self {
        let mut v = self.assessment_targets.unwrap_or_default();
        v.push(input);
        self.assessment_targets = ::std::option::Option::Some(v);
        self
    }
    /// <p>List of criteria for assessment.</p>
    pub fn set_assessment_targets(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AssessmentTarget>>) -> Self {
        self.assessment_targets = input;
        self
    }
    /// <p>List of criteria for assessment.</p>
    pub fn get_assessment_targets(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AssessmentTarget>> {
        &self.assessment_targets
    }
    /// Consumes the builder and constructs a [`StartAssessmentInput`](crate::operation::start_assessment::StartAssessmentInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::start_assessment::StartAssessmentInput, ::aws_smithy_http::operation::error::BuildError> {
        ::std::result::Result::Ok(crate::operation::start_assessment::StartAssessmentInput {
            s3bucket_for_analysis_data: self.s3bucket_for_analysis_data,
            s3bucket_for_report_data: self.s3bucket_for_report_data,
            assessment_targets: self.assessment_targets,
        })
    }
}