aws_sdk_computeoptimizer/operation/export_license_recommendations/
_export_license_recommendations_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ExportLicenseRecommendationsOutput {
6 pub job_id: ::std::option::Option<::std::string::String>,
9 pub s3_destination: ::std::option::Option<crate::types::S3Destination>,
11 _request_id: Option<String>,
12}
13impl ExportLicenseRecommendationsOutput {
14 pub fn job_id(&self) -> ::std::option::Option<&str> {
17 self.job_id.as_deref()
18 }
19 pub fn s3_destination(&self) -> ::std::option::Option<&crate::types::S3Destination> {
21 self.s3_destination.as_ref()
22 }
23}
24impl ::aws_types::request_id::RequestId for ExportLicenseRecommendationsOutput {
25 fn request_id(&self) -> Option<&str> {
26 self._request_id.as_deref()
27 }
28}
29impl ExportLicenseRecommendationsOutput {
30 pub fn builder() -> crate::operation::export_license_recommendations::builders::ExportLicenseRecommendationsOutputBuilder {
32 crate::operation::export_license_recommendations::builders::ExportLicenseRecommendationsOutputBuilder::default()
33 }
34}
35
36#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
38#[non_exhaustive]
39pub struct ExportLicenseRecommendationsOutputBuilder {
40 pub(crate) job_id: ::std::option::Option<::std::string::String>,
41 pub(crate) s3_destination: ::std::option::Option<crate::types::S3Destination>,
42 _request_id: Option<String>,
43}
44impl ExportLicenseRecommendationsOutputBuilder {
45 pub fn job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
48 self.job_id = ::std::option::Option::Some(input.into());
49 self
50 }
51 pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
54 self.job_id = input;
55 self
56 }
57 pub fn get_job_id(&self) -> &::std::option::Option<::std::string::String> {
60 &self.job_id
61 }
62 pub fn s3_destination(mut self, input: crate::types::S3Destination) -> Self {
64 self.s3_destination = ::std::option::Option::Some(input);
65 self
66 }
67 pub fn set_s3_destination(mut self, input: ::std::option::Option<crate::types::S3Destination>) -> Self {
69 self.s3_destination = input;
70 self
71 }
72 pub fn get_s3_destination(&self) -> &::std::option::Option<crate::types::S3Destination> {
74 &self.s3_destination
75 }
76 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
77 self._request_id = Some(request_id.into());
78 self
79 }
80
81 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
82 self._request_id = request_id;
83 self
84 }
85 pub fn build(self) -> crate::operation::export_license_recommendations::ExportLicenseRecommendationsOutput {
87 crate::operation::export_license_recommendations::ExportLicenseRecommendationsOutput {
88 job_id: self.job_id,
89 s3_destination: self.s3_destination,
90 _request_id: self._request_id,
91 }
92 }
93}