Skip to main content

aws_sdk_glue/operation/put_attachment/
_put_attachment_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 PutAttachmentOutput {
6    /// <p>The unique identifier of the asset.</p>
7    pub asset_identifier: ::std::option::Option<::std::string::String>,
8    /// <p>The name of the iterable form, if the attachment targets an item.</p>
9    pub iterable_form_name: ::std::option::Option<::std::string::String>,
10    /// <p>The identifier of the item within the iterable form, if applicable.</p>
11    pub item_identifier: ::std::option::Option<::std::string::String>,
12    /// <p>The name of the attachment.</p>
13    pub attachment_name: ::std::option::Option<::std::string::String>,
14    /// <p>The identifier of the form type for this attachment.</p>
15    pub form_type_id: ::std::option::Option<::std::string::String>,
16    _request_id: Option<String>,
17}
18impl PutAttachmentOutput {
19    /// <p>The unique identifier of the asset.</p>
20    pub fn asset_identifier(&self) -> ::std::option::Option<&str> {
21        self.asset_identifier.as_deref()
22    }
23    /// <p>The name of the iterable form, if the attachment targets an item.</p>
24    pub fn iterable_form_name(&self) -> ::std::option::Option<&str> {
25        self.iterable_form_name.as_deref()
26    }
27    /// <p>The identifier of the item within the iterable form, if applicable.</p>
28    pub fn item_identifier(&self) -> ::std::option::Option<&str> {
29        self.item_identifier.as_deref()
30    }
31    /// <p>The name of the attachment.</p>
32    pub fn attachment_name(&self) -> ::std::option::Option<&str> {
33        self.attachment_name.as_deref()
34    }
35    /// <p>The identifier of the form type for this attachment.</p>
36    pub fn form_type_id(&self) -> ::std::option::Option<&str> {
37        self.form_type_id.as_deref()
38    }
39}
40impl ::aws_types::request_id::RequestId for PutAttachmentOutput {
41    fn request_id(&self) -> Option<&str> {
42        self._request_id.as_deref()
43    }
44}
45impl PutAttachmentOutput {
46    /// Creates a new builder-style object to manufacture [`PutAttachmentOutput`](crate::operation::put_attachment::PutAttachmentOutput).
47    pub fn builder() -> crate::operation::put_attachment::builders::PutAttachmentOutputBuilder {
48        crate::operation::put_attachment::builders::PutAttachmentOutputBuilder::default()
49    }
50}
51
52/// A builder for [`PutAttachmentOutput`](crate::operation::put_attachment::PutAttachmentOutput).
53#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
54#[non_exhaustive]
55pub struct PutAttachmentOutputBuilder {
56    pub(crate) asset_identifier: ::std::option::Option<::std::string::String>,
57    pub(crate) iterable_form_name: ::std::option::Option<::std::string::String>,
58    pub(crate) item_identifier: ::std::option::Option<::std::string::String>,
59    pub(crate) attachment_name: ::std::option::Option<::std::string::String>,
60    pub(crate) form_type_id: ::std::option::Option<::std::string::String>,
61    _request_id: Option<String>,
62}
63impl PutAttachmentOutputBuilder {
64    /// <p>The unique identifier of the asset.</p>
65    pub fn asset_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66        self.asset_identifier = ::std::option::Option::Some(input.into());
67        self
68    }
69    /// <p>The unique identifier of the asset.</p>
70    pub fn set_asset_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
71        self.asset_identifier = input;
72        self
73    }
74    /// <p>The unique identifier of the asset.</p>
75    pub fn get_asset_identifier(&self) -> &::std::option::Option<::std::string::String> {
76        &self.asset_identifier
77    }
78    /// <p>The name of the iterable form, if the attachment targets an item.</p>
79    pub fn iterable_form_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
80        self.iterable_form_name = ::std::option::Option::Some(input.into());
81        self
82    }
83    /// <p>The name of the iterable form, if the attachment targets an item.</p>
84    pub fn set_iterable_form_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
85        self.iterable_form_name = input;
86        self
87    }
88    /// <p>The name of the iterable form, if the attachment targets an item.</p>
89    pub fn get_iterable_form_name(&self) -> &::std::option::Option<::std::string::String> {
90        &self.iterable_form_name
91    }
92    /// <p>The identifier of the item within the iterable form, if applicable.</p>
93    pub fn item_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
94        self.item_identifier = ::std::option::Option::Some(input.into());
95        self
96    }
97    /// <p>The identifier of the item within the iterable form, if applicable.</p>
98    pub fn set_item_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
99        self.item_identifier = input;
100        self
101    }
102    /// <p>The identifier of the item within the iterable form, if applicable.</p>
103    pub fn get_item_identifier(&self) -> &::std::option::Option<::std::string::String> {
104        &self.item_identifier
105    }
106    /// <p>The name of the attachment.</p>
107    pub fn attachment_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
108        self.attachment_name = ::std::option::Option::Some(input.into());
109        self
110    }
111    /// <p>The name of the attachment.</p>
112    pub fn set_attachment_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
113        self.attachment_name = input;
114        self
115    }
116    /// <p>The name of the attachment.</p>
117    pub fn get_attachment_name(&self) -> &::std::option::Option<::std::string::String> {
118        &self.attachment_name
119    }
120    /// <p>The identifier of the form type for this attachment.</p>
121    pub fn form_type_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
122        self.form_type_id = ::std::option::Option::Some(input.into());
123        self
124    }
125    /// <p>The identifier of the form type for this attachment.</p>
126    pub fn set_form_type_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
127        self.form_type_id = input;
128        self
129    }
130    /// <p>The identifier of the form type for this attachment.</p>
131    pub fn get_form_type_id(&self) -> &::std::option::Option<::std::string::String> {
132        &self.form_type_id
133    }
134    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
135        self._request_id = Some(request_id.into());
136        self
137    }
138
139    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
140        self._request_id = request_id;
141        self
142    }
143    /// Consumes the builder and constructs a [`PutAttachmentOutput`](crate::operation::put_attachment::PutAttachmentOutput).
144    pub fn build(self) -> crate::operation::put_attachment::PutAttachmentOutput {
145        crate::operation::put_attachment::PutAttachmentOutput {
146            asset_identifier: self.asset_identifier,
147            iterable_form_name: self.iterable_form_name,
148            item_identifier: self.item_identifier,
149            attachment_name: self.attachment_name,
150            form_type_id: self.form_type_id,
151            _request_id: self._request_id,
152        }
153    }
154}