aws_sdk_pinpoint/operation/get_segment_export_jobs/
_get_segment_export_jobs_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetSegmentExportJobsOutput {
6 pub export_jobs_response: ::std::option::Option<crate::types::ExportJobsResponse>,
8 _request_id: Option<String>,
9}
10impl GetSegmentExportJobsOutput {
11 pub fn export_jobs_response(&self) -> ::std::option::Option<&crate::types::ExportJobsResponse> {
13 self.export_jobs_response.as_ref()
14 }
15}
16impl ::aws_types::request_id::RequestId for GetSegmentExportJobsOutput {
17 fn request_id(&self) -> Option<&str> {
18 self._request_id.as_deref()
19 }
20}
21impl GetSegmentExportJobsOutput {
22 pub fn builder() -> crate::operation::get_segment_export_jobs::builders::GetSegmentExportJobsOutputBuilder {
24 crate::operation::get_segment_export_jobs::builders::GetSegmentExportJobsOutputBuilder::default()
25 }
26}
27
28#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct GetSegmentExportJobsOutputBuilder {
32 pub(crate) export_jobs_response: ::std::option::Option<crate::types::ExportJobsResponse>,
33 _request_id: Option<String>,
34}
35impl GetSegmentExportJobsOutputBuilder {
36 pub fn export_jobs_response(mut self, input: crate::types::ExportJobsResponse) -> Self {
39 self.export_jobs_response = ::std::option::Option::Some(input);
40 self
41 }
42 pub fn set_export_jobs_response(mut self, input: ::std::option::Option<crate::types::ExportJobsResponse>) -> Self {
44 self.export_jobs_response = input;
45 self
46 }
47 pub fn get_export_jobs_response(&self) -> &::std::option::Option<crate::types::ExportJobsResponse> {
49 &self.export_jobs_response
50 }
51 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
52 self._request_id = Some(request_id.into());
53 self
54 }
55
56 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
57 self._request_id = request_id;
58 self
59 }
60 pub fn build(self) -> crate::operation::get_segment_export_jobs::GetSegmentExportJobsOutput {
62 crate::operation::get_segment_export_jobs::GetSegmentExportJobsOutput {
63 export_jobs_response: self.export_jobs_response,
64 _request_id: self._request_id,
65 }
66 }
67}