aws_sdk_quicksight/types/
_asset_bundle_import_job_summary.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>A summary of the import job that includes details of the requested job's configuration and its current status.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct AssetBundleImportJobSummary {
7    /// <p>The current status of the import job.</p>
8    pub job_status: ::std::option::Option<crate::types::AssetBundleImportJobStatus>,
9    /// <p>The ARN of the import job.</p>
10    pub arn: ::std::option::Option<::std::string::String>,
11    /// <p>The time that the import job was created.</p>
12    pub created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
13    /// <p>The ID of the job. This ID is unique while the job is running. After the job is completed, you can reuse this ID for another job.</p>
14    pub asset_bundle_import_job_id: ::std::option::Option<::std::string::String>,
15    /// <p>The failure action for the import job.</p>
16    pub failure_action: ::std::option::Option<crate::types::AssetBundleImportFailureAction>,
17}
18impl AssetBundleImportJobSummary {
19    /// <p>The current status of the import job.</p>
20    pub fn job_status(&self) -> ::std::option::Option<&crate::types::AssetBundleImportJobStatus> {
21        self.job_status.as_ref()
22    }
23    /// <p>The ARN of the import job.</p>
24    pub fn arn(&self) -> ::std::option::Option<&str> {
25        self.arn.as_deref()
26    }
27    /// <p>The time that the import job was created.</p>
28    pub fn created_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
29        self.created_time.as_ref()
30    }
31    /// <p>The ID of the job. This ID is unique while the job is running. After the job is completed, you can reuse this ID for another job.</p>
32    pub fn asset_bundle_import_job_id(&self) -> ::std::option::Option<&str> {
33        self.asset_bundle_import_job_id.as_deref()
34    }
35    /// <p>The failure action for the import job.</p>
36    pub fn failure_action(&self) -> ::std::option::Option<&crate::types::AssetBundleImportFailureAction> {
37        self.failure_action.as_ref()
38    }
39}
40impl AssetBundleImportJobSummary {
41    /// Creates a new builder-style object to manufacture [`AssetBundleImportJobSummary`](crate::types::AssetBundleImportJobSummary).
42    pub fn builder() -> crate::types::builders::AssetBundleImportJobSummaryBuilder {
43        crate::types::builders::AssetBundleImportJobSummaryBuilder::default()
44    }
45}
46
47/// A builder for [`AssetBundleImportJobSummary`](crate::types::AssetBundleImportJobSummary).
48#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
49#[non_exhaustive]
50pub struct AssetBundleImportJobSummaryBuilder {
51    pub(crate) job_status: ::std::option::Option<crate::types::AssetBundleImportJobStatus>,
52    pub(crate) arn: ::std::option::Option<::std::string::String>,
53    pub(crate) created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
54    pub(crate) asset_bundle_import_job_id: ::std::option::Option<::std::string::String>,
55    pub(crate) failure_action: ::std::option::Option<crate::types::AssetBundleImportFailureAction>,
56}
57impl AssetBundleImportJobSummaryBuilder {
58    /// <p>The current status of the import job.</p>
59    pub fn job_status(mut self, input: crate::types::AssetBundleImportJobStatus) -> Self {
60        self.job_status = ::std::option::Option::Some(input);
61        self
62    }
63    /// <p>The current status of the import job.</p>
64    pub fn set_job_status(mut self, input: ::std::option::Option<crate::types::AssetBundleImportJobStatus>) -> Self {
65        self.job_status = input;
66        self
67    }
68    /// <p>The current status of the import job.</p>
69    pub fn get_job_status(&self) -> &::std::option::Option<crate::types::AssetBundleImportJobStatus> {
70        &self.job_status
71    }
72    /// <p>The ARN of the import job.</p>
73    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
74        self.arn = ::std::option::Option::Some(input.into());
75        self
76    }
77    /// <p>The ARN of the import job.</p>
78    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
79        self.arn = input;
80        self
81    }
82    /// <p>The ARN of the import job.</p>
83    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
84        &self.arn
85    }
86    /// <p>The time that the import job was created.</p>
87    pub fn created_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
88        self.created_time = ::std::option::Option::Some(input);
89        self
90    }
91    /// <p>The time that the import job was created.</p>
92    pub fn set_created_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
93        self.created_time = input;
94        self
95    }
96    /// <p>The time that the import job was created.</p>
97    pub fn get_created_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
98        &self.created_time
99    }
100    /// <p>The ID of the job. This ID is unique while the job is running. After the job is completed, you can reuse this ID for another job.</p>
101    pub fn asset_bundle_import_job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
102        self.asset_bundle_import_job_id = ::std::option::Option::Some(input.into());
103        self
104    }
105    /// <p>The ID of the job. This ID is unique while the job is running. After the job is completed, you can reuse this ID for another job.</p>
106    pub fn set_asset_bundle_import_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
107        self.asset_bundle_import_job_id = input;
108        self
109    }
110    /// <p>The ID of the job. This ID is unique while the job is running. After the job is completed, you can reuse this ID for another job.</p>
111    pub fn get_asset_bundle_import_job_id(&self) -> &::std::option::Option<::std::string::String> {
112        &self.asset_bundle_import_job_id
113    }
114    /// <p>The failure action for the import job.</p>
115    pub fn failure_action(mut self, input: crate::types::AssetBundleImportFailureAction) -> Self {
116        self.failure_action = ::std::option::Option::Some(input);
117        self
118    }
119    /// <p>The failure action for the import job.</p>
120    pub fn set_failure_action(mut self, input: ::std::option::Option<crate::types::AssetBundleImportFailureAction>) -> Self {
121        self.failure_action = input;
122        self
123    }
124    /// <p>The failure action for the import job.</p>
125    pub fn get_failure_action(&self) -> &::std::option::Option<crate::types::AssetBundleImportFailureAction> {
126        &self.failure_action
127    }
128    /// Consumes the builder and constructs a [`AssetBundleImportJobSummary`](crate::types::AssetBundleImportJobSummary).
129    pub fn build(self) -> crate::types::AssetBundleImportJobSummary {
130        crate::types::AssetBundleImportJobSummary {
131            job_status: self.job_status,
132            arn: self.arn,
133            created_time: self.created_time,
134            asset_bundle_import_job_id: self.asset_bundle_import_job_id,
135            failure_action: self.failure_action,
136        }
137    }
138}