Skip to main content

aws_sdk_computeoptimizer/operation/export_license_recommendations/
_export_license_recommendations_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ExportLicenseRecommendationsOutput {
6    /// <p>The identification number of the export job.</p>
7    /// <p>To view the status of an export job, use the <code>DescribeRecommendationExportJobs</code> action and specify the job ID.</p>
8    pub job_id: ::std::option::Option<::std::string::String>,
9    /// <p>Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a recommendations export file, and its associated metadata file.</p>
10    pub s3_destination: ::std::option::Option<crate::types::S3Destination>,
11    _request_id: Option<String>,
12}
13impl ExportLicenseRecommendationsOutput {
14    /// <p>The identification number of the export job.</p>
15    /// <p>To view the status of an export job, use the <code>DescribeRecommendationExportJobs</code> action and specify the job ID.</p>
16    pub fn job_id(&self) -> ::std::option::Option<&str> {
17        self.job_id.as_deref()
18    }
19    /// <p>Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a recommendations export file, and its associated metadata file.</p>
20    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    /// Creates a new builder-style object to manufacture [`ExportLicenseRecommendationsOutput`](crate::operation::export_license_recommendations::ExportLicenseRecommendationsOutput).
31    pub fn builder() -> crate::operation::export_license_recommendations::builders::ExportLicenseRecommendationsOutputBuilder {
32        crate::operation::export_license_recommendations::builders::ExportLicenseRecommendationsOutputBuilder::default()
33    }
34}
35
36/// A builder for [`ExportLicenseRecommendationsOutput`](crate::operation::export_license_recommendations::ExportLicenseRecommendationsOutput).
37#[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    /// <p>The identification number of the export job.</p>
46    /// <p>To view the status of an export job, use the <code>DescribeRecommendationExportJobs</code> action and specify the job ID.</p>
47    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    /// <p>The identification number of the export job.</p>
52    /// <p>To view the status of an export job, use the <code>DescribeRecommendationExportJobs</code> action and specify the job ID.</p>
53    pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
54        self.job_id = input;
55        self
56    }
57    /// <p>The identification number of the export job.</p>
58    /// <p>To view the status of an export job, use the <code>DescribeRecommendationExportJobs</code> action and specify the job ID.</p>
59    pub fn get_job_id(&self) -> &::std::option::Option<::std::string::String> {
60        &self.job_id
61    }
62    /// <p>Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a recommendations export file, and its associated metadata file.</p>
63    pub fn s3_destination(mut self, input: crate::types::S3Destination) -> Self {
64        self.s3_destination = ::std::option::Option::Some(input);
65        self
66    }
67    /// <p>Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a recommendations export file, and its associated metadata file.</p>
68    pub fn set_s3_destination(mut self, input: ::std::option::Option<crate::types::S3Destination>) -> Self {
69        self.s3_destination = input;
70        self
71    }
72    /// <p>Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a recommendations export file, and its associated metadata file.</p>
73    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    /// Consumes the builder and constructs a [`ExportLicenseRecommendationsOutput`](crate::operation::export_license_recommendations::ExportLicenseRecommendationsOutput).
86    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}