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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// 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 RemoveAttributesInput {
/// <p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p>
pub application_id: ::std::option::Option<::std::string::String>,
/// <p>The type of attribute or attributes to remove. Valid values are:</p>
/// <ul>
/// <li>
/// <p>endpoint-custom-attributes - Custom attributes that describe endpoints, such as the date when an associated user opted in or out of receiving communications from you through a specific type of channel.</p></li>
/// <li>
/// <p>endpoint-metric-attributes - Custom metrics that your app reports to Amazon Pinpoint for endpoints, such as the number of app sessions or the number of items left in a cart.</p></li>
/// <li>
/// <p>endpoint-user-attributes - Custom attributes that describe users, such as first name, last name, and age.</p></li>
/// </ul>
pub attribute_type: ::std::option::Option<::std::string::String>,
/// <p>Specifies one or more attributes to remove from all the endpoints that are associated with an application.</p>
pub update_attributes_request: ::std::option::Option<crate::types::UpdateAttributesRequest>,
}
impl RemoveAttributesInput {
/// <p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p>
pub fn application_id(&self) -> ::std::option::Option<&str> {
self.application_id.as_deref()
}
/// <p>The type of attribute or attributes to remove. Valid values are:</p>
/// <ul>
/// <li>
/// <p>endpoint-custom-attributes - Custom attributes that describe endpoints, such as the date when an associated user opted in or out of receiving communications from you through a specific type of channel.</p></li>
/// <li>
/// <p>endpoint-metric-attributes - Custom metrics that your app reports to Amazon Pinpoint for endpoints, such as the number of app sessions or the number of items left in a cart.</p></li>
/// <li>
/// <p>endpoint-user-attributes - Custom attributes that describe users, such as first name, last name, and age.</p></li>
/// </ul>
pub fn attribute_type(&self) -> ::std::option::Option<&str> {
self.attribute_type.as_deref()
}
/// <p>Specifies one or more attributes to remove from all the endpoints that are associated with an application.</p>
pub fn update_attributes_request(&self) -> ::std::option::Option<&crate::types::UpdateAttributesRequest> {
self.update_attributes_request.as_ref()
}
}
impl RemoveAttributesInput {
/// Creates a new builder-style object to manufacture [`RemoveAttributesInput`](crate::operation::remove_attributes::RemoveAttributesInput).
pub fn builder() -> crate::operation::remove_attributes::builders::RemoveAttributesInputBuilder {
crate::operation::remove_attributes::builders::RemoveAttributesInputBuilder::default()
}
}
/// A builder for [`RemoveAttributesInput`](crate::operation::remove_attributes::RemoveAttributesInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RemoveAttributesInputBuilder {
pub(crate) application_id: ::std::option::Option<::std::string::String>,
pub(crate) attribute_type: ::std::option::Option<::std::string::String>,
pub(crate) update_attributes_request: ::std::option::Option<crate::types::UpdateAttributesRequest>,
}
impl RemoveAttributesInputBuilder {
/// <p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p>
/// This field is required.
pub fn application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.application_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p>
pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.application_id = input;
self
}
/// <p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p>
pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
&self.application_id
}
/// <p>The type of attribute or attributes to remove. Valid values are:</p>
/// <ul>
/// <li>
/// <p>endpoint-custom-attributes - Custom attributes that describe endpoints, such as the date when an associated user opted in or out of receiving communications from you through a specific type of channel.</p></li>
/// <li>
/// <p>endpoint-metric-attributes - Custom metrics that your app reports to Amazon Pinpoint for endpoints, such as the number of app sessions or the number of items left in a cart.</p></li>
/// <li>
/// <p>endpoint-user-attributes - Custom attributes that describe users, such as first name, last name, and age.</p></li>
/// </ul>
/// This field is required.
pub fn attribute_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.attribute_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The type of attribute or attributes to remove. Valid values are:</p>
/// <ul>
/// <li>
/// <p>endpoint-custom-attributes - Custom attributes that describe endpoints, such as the date when an associated user opted in or out of receiving communications from you through a specific type of channel.</p></li>
/// <li>
/// <p>endpoint-metric-attributes - Custom metrics that your app reports to Amazon Pinpoint for endpoints, such as the number of app sessions or the number of items left in a cart.</p></li>
/// <li>
/// <p>endpoint-user-attributes - Custom attributes that describe users, such as first name, last name, and age.</p></li>
/// </ul>
pub fn set_attribute_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.attribute_type = input;
self
}
/// <p>The type of attribute or attributes to remove. Valid values are:</p>
/// <ul>
/// <li>
/// <p>endpoint-custom-attributes - Custom attributes that describe endpoints, such as the date when an associated user opted in or out of receiving communications from you through a specific type of channel.</p></li>
/// <li>
/// <p>endpoint-metric-attributes - Custom metrics that your app reports to Amazon Pinpoint for endpoints, such as the number of app sessions or the number of items left in a cart.</p></li>
/// <li>
/// <p>endpoint-user-attributes - Custom attributes that describe users, such as first name, last name, and age.</p></li>
/// </ul>
pub fn get_attribute_type(&self) -> &::std::option::Option<::std::string::String> {
&self.attribute_type
}
/// <p>Specifies one or more attributes to remove from all the endpoints that are associated with an application.</p>
/// This field is required.
pub fn update_attributes_request(mut self, input: crate::types::UpdateAttributesRequest) -> Self {
self.update_attributes_request = ::std::option::Option::Some(input);
self
}
/// <p>Specifies one or more attributes to remove from all the endpoints that are associated with an application.</p>
pub fn set_update_attributes_request(mut self, input: ::std::option::Option<crate::types::UpdateAttributesRequest>) -> Self {
self.update_attributes_request = input;
self
}
/// <p>Specifies one or more attributes to remove from all the endpoints that are associated with an application.</p>
pub fn get_update_attributes_request(&self) -> &::std::option::Option<crate::types::UpdateAttributesRequest> {
&self.update_attributes_request
}
/// Consumes the builder and constructs a [`RemoveAttributesInput`](crate::operation::remove_attributes::RemoveAttributesInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::remove_attributes::RemoveAttributesInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::remove_attributes::RemoveAttributesInput {
application_id: self.application_id,
attribute_type: self.attribute_type,
update_attributes_request: self.update_attributes_request,
})
}
}