Skip to main content

aws_sdk_glue/operation/delete_attachment/
_delete_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 DeleteAttachmentOutput {
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 deletion 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    _request_id: Option<String>,
13}
14impl DeleteAttachmentOutput {
15    /// <p>The unique identifier of the asset.</p>
16    pub fn asset_identifier(&self) -> ::std::option::Option<&str> {
17        self.asset_identifier.as_deref()
18    }
19    /// <p>The name of the iterable form, if the deletion targets an item.</p>
20    pub fn iterable_form_name(&self) -> ::std::option::Option<&str> {
21        self.iterable_form_name.as_deref()
22    }
23    /// <p>The identifier of the item within the iterable form, if applicable.</p>
24    pub fn item_identifier(&self) -> ::std::option::Option<&str> {
25        self.item_identifier.as_deref()
26    }
27}
28impl ::aws_types::request_id::RequestId for DeleteAttachmentOutput {
29    fn request_id(&self) -> Option<&str> {
30        self._request_id.as_deref()
31    }
32}
33impl DeleteAttachmentOutput {
34    /// Creates a new builder-style object to manufacture [`DeleteAttachmentOutput`](crate::operation::delete_attachment::DeleteAttachmentOutput).
35    pub fn builder() -> crate::operation::delete_attachment::builders::DeleteAttachmentOutputBuilder {
36        crate::operation::delete_attachment::builders::DeleteAttachmentOutputBuilder::default()
37    }
38}
39
40/// A builder for [`DeleteAttachmentOutput`](crate::operation::delete_attachment::DeleteAttachmentOutput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct DeleteAttachmentOutputBuilder {
44    pub(crate) asset_identifier: ::std::option::Option<::std::string::String>,
45    pub(crate) iterable_form_name: ::std::option::Option<::std::string::String>,
46    pub(crate) item_identifier: ::std::option::Option<::std::string::String>,
47    _request_id: Option<String>,
48}
49impl DeleteAttachmentOutputBuilder {
50    /// <p>The unique identifier of the asset.</p>
51    pub fn asset_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
52        self.asset_identifier = ::std::option::Option::Some(input.into());
53        self
54    }
55    /// <p>The unique identifier of the asset.</p>
56    pub fn set_asset_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
57        self.asset_identifier = input;
58        self
59    }
60    /// <p>The unique identifier of the asset.</p>
61    pub fn get_asset_identifier(&self) -> &::std::option::Option<::std::string::String> {
62        &self.asset_identifier
63    }
64    /// <p>The name of the iterable form, if the deletion targets an item.</p>
65    pub fn iterable_form_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66        self.iterable_form_name = ::std::option::Option::Some(input.into());
67        self
68    }
69    /// <p>The name of the iterable form, if the deletion targets an item.</p>
70    pub fn set_iterable_form_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
71        self.iterable_form_name = input;
72        self
73    }
74    /// <p>The name of the iterable form, if the deletion targets an item.</p>
75    pub fn get_iterable_form_name(&self) -> &::std::option::Option<::std::string::String> {
76        &self.iterable_form_name
77    }
78    /// <p>The identifier of the item within the iterable form, if applicable.</p>
79    pub fn item_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
80        self.item_identifier = ::std::option::Option::Some(input.into());
81        self
82    }
83    /// <p>The identifier of the item within the iterable form, if applicable.</p>
84    pub fn set_item_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
85        self.item_identifier = input;
86        self
87    }
88    /// <p>The identifier of the item within the iterable form, if applicable.</p>
89    pub fn get_item_identifier(&self) -> &::std::option::Option<::std::string::String> {
90        &self.item_identifier
91    }
92    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
93        self._request_id = Some(request_id.into());
94        self
95    }
96
97    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
98        self._request_id = request_id;
99        self
100    }
101    /// Consumes the builder and constructs a [`DeleteAttachmentOutput`](crate::operation::delete_attachment::DeleteAttachmentOutput).
102    pub fn build(self) -> crate::operation::delete_attachment::DeleteAttachmentOutput {
103        crate::operation::delete_attachment::DeleteAttachmentOutput {
104            asset_identifier: self.asset_identifier,
105            iterable_form_name: self.iterable_form_name,
106            item_identifier: self.item_identifier,
107            _request_id: self._request_id,
108        }
109    }
110}