aws_sdk_codebuild/types/
_report_with_raw_data.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Contains the unmodified data for the report. For more information, see .</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ReportWithRawData {
7    /// <p>The ARN of the report.</p>
8    pub report_arn: ::std::option::Option<::std::string::String>,
9    /// <p>The value of the requested data field from the report.</p>
10    pub data: ::std::option::Option<::std::string::String>,
11}
12impl ReportWithRawData {
13    /// <p>The ARN of the report.</p>
14    pub fn report_arn(&self) -> ::std::option::Option<&str> {
15        self.report_arn.as_deref()
16    }
17    /// <p>The value of the requested data field from the report.</p>
18    pub fn data(&self) -> ::std::option::Option<&str> {
19        self.data.as_deref()
20    }
21}
22impl ReportWithRawData {
23    /// Creates a new builder-style object to manufacture [`ReportWithRawData`](crate::types::ReportWithRawData).
24    pub fn builder() -> crate::types::builders::ReportWithRawDataBuilder {
25        crate::types::builders::ReportWithRawDataBuilder::default()
26    }
27}
28
29/// A builder for [`ReportWithRawData`](crate::types::ReportWithRawData).
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct ReportWithRawDataBuilder {
33    pub(crate) report_arn: ::std::option::Option<::std::string::String>,
34    pub(crate) data: ::std::option::Option<::std::string::String>,
35}
36impl ReportWithRawDataBuilder {
37    /// <p>The ARN of the report.</p>
38    pub fn report_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39        self.report_arn = ::std::option::Option::Some(input.into());
40        self
41    }
42    /// <p>The ARN of the report.</p>
43    pub fn set_report_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44        self.report_arn = input;
45        self
46    }
47    /// <p>The ARN of the report.</p>
48    pub fn get_report_arn(&self) -> &::std::option::Option<::std::string::String> {
49        &self.report_arn
50    }
51    /// <p>The value of the requested data field from the report.</p>
52    pub fn data(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53        self.data = ::std::option::Option::Some(input.into());
54        self
55    }
56    /// <p>The value of the requested data field from the report.</p>
57    pub fn set_data(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58        self.data = input;
59        self
60    }
61    /// <p>The value of the requested data field from the report.</p>
62    pub fn get_data(&self) -> &::std::option::Option<::std::string::String> {
63        &self.data
64    }
65    /// Consumes the builder and constructs a [`ReportWithRawData`](crate::types::ReportWithRawData).
66    pub fn build(self) -> crate::types::ReportWithRawData {
67        crate::types::ReportWithRawData {
68            report_arn: self.report_arn,
69            data: self.data,
70        }
71    }
72}