aws_sdk_codebuild/types/
_report_with_raw_data.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ReportWithRawData {
7 pub report_arn: ::std::option::Option<::std::string::String>,
9 pub data: ::std::option::Option<::std::string::String>,
11}
12impl ReportWithRawData {
13 pub fn report_arn(&self) -> ::std::option::Option<&str> {
15 self.report_arn.as_deref()
16 }
17 pub fn data(&self) -> ::std::option::Option<&str> {
19 self.data.as_deref()
20 }
21}
22impl ReportWithRawData {
23 pub fn builder() -> crate::types::builders::ReportWithRawDataBuilder {
25 crate::types::builders::ReportWithRawDataBuilder::default()
26 }
27}
28
29#[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 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 pub fn set_report_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.report_arn = input;
45 self
46 }
47 pub fn get_report_arn(&self) -> &::std::option::Option<::std::string::String> {
49 &self.report_arn
50 }
51 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 pub fn set_data(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.data = input;
59 self
60 }
61 pub fn get_data(&self) -> &::std::option::Option<::std::string::String> {
63 &self.data
64 }
65 pub fn build(self) -> crate::types::ReportWithRawData {
67 crate::types::ReportWithRawData {
68 report_arn: self.report_arn,
69 data: self.data,
70 }
71 }
72}