1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteAttachmentInput {
/// <p>The unique identifier of the asset from which to delete the attachment.</p>
pub asset_identifier: ::std::option::Option<::std::string::String>,
/// <p>The name of the iterable form. When specified along with <code>itemIdentifier</code>, the attachment is deleted from an item within the iterable form rather than from the asset itself.</p>
pub iterable_form_name: ::std::option::Option<::std::string::String>,
/// <p>The identifier of the item within the iterable form. Required when <code>iterableFormName</code> is specified.</p>
pub item_identifier: ::std::option::Option<::std::string::String>,
/// <p>The name of the attachment to delete.</p>
pub attachment_name: ::std::option::Option<::std::string::String>,
}
impl DeleteAttachmentInput {
/// <p>The unique identifier of the asset from which to delete the attachment.</p>
pub fn asset_identifier(&self) -> ::std::option::Option<&str> {
self.asset_identifier.as_deref()
}
/// <p>The name of the iterable form. When specified along with <code>itemIdentifier</code>, the attachment is deleted from an item within the iterable form rather than from the asset itself.</p>
pub fn iterable_form_name(&self) -> ::std::option::Option<&str> {
self.iterable_form_name.as_deref()
}
/// <p>The identifier of the item within the iterable form. Required when <code>iterableFormName</code> is specified.</p>
pub fn item_identifier(&self) -> ::std::option::Option<&str> {
self.item_identifier.as_deref()
}
/// <p>The name of the attachment to delete.</p>
pub fn attachment_name(&self) -> ::std::option::Option<&str> {
self.attachment_name.as_deref()
}
}
impl DeleteAttachmentInput {
/// Creates a new builder-style object to manufacture [`DeleteAttachmentInput`](crate::operation::delete_attachment::DeleteAttachmentInput).
pub fn builder() -> crate::operation::delete_attachment::builders::DeleteAttachmentInputBuilder {
crate::operation::delete_attachment::builders::DeleteAttachmentInputBuilder::default()
}
}
/// A builder for [`DeleteAttachmentInput`](crate::operation::delete_attachment::DeleteAttachmentInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteAttachmentInputBuilder {
pub(crate) asset_identifier: ::std::option::Option<::std::string::String>,
pub(crate) iterable_form_name: ::std::option::Option<::std::string::String>,
pub(crate) item_identifier: ::std::option::Option<::std::string::String>,
pub(crate) attachment_name: ::std::option::Option<::std::string::String>,
}
impl DeleteAttachmentInputBuilder {
/// <p>The unique identifier of the asset from which to delete the attachment.</p>
/// This field is required.
pub fn asset_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.asset_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique identifier of the asset from which to delete the attachment.</p>
pub fn set_asset_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.asset_identifier = input;
self
}
/// <p>The unique identifier of the asset from which to delete the attachment.</p>
pub fn get_asset_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.asset_identifier
}
/// <p>The name of the iterable form. When specified along with <code>itemIdentifier</code>, the attachment is deleted from an item within the iterable form rather than from the asset itself.</p>
pub fn iterable_form_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.iterable_form_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the iterable form. When specified along with <code>itemIdentifier</code>, the attachment is deleted from an item within the iterable form rather than from the asset itself.</p>
pub fn set_iterable_form_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.iterable_form_name = input;
self
}
/// <p>The name of the iterable form. When specified along with <code>itemIdentifier</code>, the attachment is deleted from an item within the iterable form rather than from the asset itself.</p>
pub fn get_iterable_form_name(&self) -> &::std::option::Option<::std::string::String> {
&self.iterable_form_name
}
/// <p>The identifier of the item within the iterable form. Required when <code>iterableFormName</code> is specified.</p>
pub fn item_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.item_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The identifier of the item within the iterable form. Required when <code>iterableFormName</code> is specified.</p>
pub fn set_item_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.item_identifier = input;
self
}
/// <p>The identifier of the item within the iterable form. Required when <code>iterableFormName</code> is specified.</p>
pub fn get_item_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.item_identifier
}
/// <p>The name of the attachment to delete.</p>
/// This field is required.
pub fn attachment_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.attachment_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the attachment to delete.</p>
pub fn set_attachment_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.attachment_name = input;
self
}
/// <p>The name of the attachment to delete.</p>
pub fn get_attachment_name(&self) -> &::std::option::Option<::std::string::String> {
&self.attachment_name
}
/// Consumes the builder and constructs a [`DeleteAttachmentInput`](crate::operation::delete_attachment::DeleteAttachmentInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_attachment::DeleteAttachmentInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_attachment::DeleteAttachmentInput {
asset_identifier: self.asset_identifier,
iterable_form_name: self.iterable_form_name,
item_identifier: self.item_identifier,
attachment_name: self.attachment_name,
})
}
}