aws_sdk_migrationhubstrategy/types/
_antipattern_report_result.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The anti-pattern report result.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct AntipatternReportResult {
7    /// <p>The analyzer name.</p>
8    pub analyzer_name: ::std::option::Option<crate::types::AnalyzerNameUnion>,
9    /// <p>Contains the S3 bucket name and the Amazon S3 key name.</p>
10    pub anti_pattern_report_s3_object: ::std::option::Option<crate::types::S3Object>,
11    /// <p>The status of the anti-pattern report generation.</p>
12    pub antipattern_report_status: ::std::option::Option<crate::types::AntipatternReportStatus>,
13    /// <p>The status message for the anti-pattern.</p>
14    pub antipattern_report_status_message: ::std::option::Option<::std::string::String>,
15}
16impl AntipatternReportResult {
17    /// <p>The analyzer name.</p>
18    pub fn analyzer_name(&self) -> ::std::option::Option<&crate::types::AnalyzerNameUnion> {
19        self.analyzer_name.as_ref()
20    }
21    /// <p>Contains the S3 bucket name and the Amazon S3 key name.</p>
22    pub fn anti_pattern_report_s3_object(&self) -> ::std::option::Option<&crate::types::S3Object> {
23        self.anti_pattern_report_s3_object.as_ref()
24    }
25    /// <p>The status of the anti-pattern report generation.</p>
26    pub fn antipattern_report_status(&self) -> ::std::option::Option<&crate::types::AntipatternReportStatus> {
27        self.antipattern_report_status.as_ref()
28    }
29    /// <p>The status message for the anti-pattern.</p>
30    pub fn antipattern_report_status_message(&self) -> ::std::option::Option<&str> {
31        self.antipattern_report_status_message.as_deref()
32    }
33}
34impl AntipatternReportResult {
35    /// Creates a new builder-style object to manufacture [`AntipatternReportResult`](crate::types::AntipatternReportResult).
36    pub fn builder() -> crate::types::builders::AntipatternReportResultBuilder {
37        crate::types::builders::AntipatternReportResultBuilder::default()
38    }
39}
40
41/// A builder for [`AntipatternReportResult`](crate::types::AntipatternReportResult).
42#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
43#[non_exhaustive]
44pub struct AntipatternReportResultBuilder {
45    pub(crate) analyzer_name: ::std::option::Option<crate::types::AnalyzerNameUnion>,
46    pub(crate) anti_pattern_report_s3_object: ::std::option::Option<crate::types::S3Object>,
47    pub(crate) antipattern_report_status: ::std::option::Option<crate::types::AntipatternReportStatus>,
48    pub(crate) antipattern_report_status_message: ::std::option::Option<::std::string::String>,
49}
50impl AntipatternReportResultBuilder {
51    /// <p>The analyzer name.</p>
52    pub fn analyzer_name(mut self, input: crate::types::AnalyzerNameUnion) -> Self {
53        self.analyzer_name = ::std::option::Option::Some(input);
54        self
55    }
56    /// <p>The analyzer name.</p>
57    pub fn set_analyzer_name(mut self, input: ::std::option::Option<crate::types::AnalyzerNameUnion>) -> Self {
58        self.analyzer_name = input;
59        self
60    }
61    /// <p>The analyzer name.</p>
62    pub fn get_analyzer_name(&self) -> &::std::option::Option<crate::types::AnalyzerNameUnion> {
63        &self.analyzer_name
64    }
65    /// <p>Contains the S3 bucket name and the Amazon S3 key name.</p>
66    pub fn anti_pattern_report_s3_object(mut self, input: crate::types::S3Object) -> Self {
67        self.anti_pattern_report_s3_object = ::std::option::Option::Some(input);
68        self
69    }
70    /// <p>Contains the S3 bucket name and the Amazon S3 key name.</p>
71    pub fn set_anti_pattern_report_s3_object(mut self, input: ::std::option::Option<crate::types::S3Object>) -> Self {
72        self.anti_pattern_report_s3_object = input;
73        self
74    }
75    /// <p>Contains the S3 bucket name and the Amazon S3 key name.</p>
76    pub fn get_anti_pattern_report_s3_object(&self) -> &::std::option::Option<crate::types::S3Object> {
77        &self.anti_pattern_report_s3_object
78    }
79    /// <p>The status of the anti-pattern report generation.</p>
80    pub fn antipattern_report_status(mut self, input: crate::types::AntipatternReportStatus) -> Self {
81        self.antipattern_report_status = ::std::option::Option::Some(input);
82        self
83    }
84    /// <p>The status of the anti-pattern report generation.</p>
85    pub fn set_antipattern_report_status(mut self, input: ::std::option::Option<crate::types::AntipatternReportStatus>) -> Self {
86        self.antipattern_report_status = input;
87        self
88    }
89    /// <p>The status of the anti-pattern report generation.</p>
90    pub fn get_antipattern_report_status(&self) -> &::std::option::Option<crate::types::AntipatternReportStatus> {
91        &self.antipattern_report_status
92    }
93    /// <p>The status message for the anti-pattern.</p>
94    pub fn antipattern_report_status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
95        self.antipattern_report_status_message = ::std::option::Option::Some(input.into());
96        self
97    }
98    /// <p>The status message for the anti-pattern.</p>
99    pub fn set_antipattern_report_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
100        self.antipattern_report_status_message = input;
101        self
102    }
103    /// <p>The status message for the anti-pattern.</p>
104    pub fn get_antipattern_report_status_message(&self) -> &::std::option::Option<::std::string::String> {
105        &self.antipattern_report_status_message
106    }
107    /// Consumes the builder and constructs a [`AntipatternReportResult`](crate::types::AntipatternReportResult).
108    pub fn build(self) -> crate::types::AntipatternReportResult {
109        crate::types::AntipatternReportResult {
110            analyzer_name: self.analyzer_name,
111            anti_pattern_report_s3_object: self.anti_pattern_report_s3_object,
112            antipattern_report_status: self.antipattern_report_status,
113            antipattern_report_status_message: self.antipattern_report_status_message,
114        }
115    }
116}