aws_sdk_iotmanagedintegrations/operation/get_destination/
_get_destination_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)]
5pub struct GetDestinationOutput {
6    /// <p>The description of the customer-managed destination.</p>
7    pub description: ::std::option::Option<::std::string::String>,
8    /// <p>The Amazon Resource Name (ARN) of the customer-managed destination.</p>
9    pub delivery_destination_arn: ::std::option::Option<::std::string::String>,
10    /// <p>The destination type for the customer-managed destination.</p>
11    pub delivery_destination_type: ::std::option::Option<crate::types::DeliveryDestinationType>,
12    /// <p>The name of the customer-managed destination.</p>
13    pub name: ::std::option::Option<::std::string::String>,
14    /// <p>The Amazon Resource Name (ARN) of the delivery destination role.</p>
15    pub role_arn: ::std::option::Option<::std::string::String>,
16    /// <p>The timestamp value of when the destination creation requset occurred.</p>
17    pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
18    /// <p>The timestamp value of when the destination update requset occurred.</p>
19    pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
20    /// <p>A set of key/value pairs that are used to manage the customer-managed destination.</p>
21    #[deprecated(note = "Tags has been deprecated from this api", since = "06-25-2025")]
22    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
23    _request_id: Option<String>,
24}
25impl GetDestinationOutput {
26    /// <p>The description of the customer-managed destination.</p>
27    pub fn description(&self) -> ::std::option::Option<&str> {
28        self.description.as_deref()
29    }
30    /// <p>The Amazon Resource Name (ARN) of the customer-managed destination.</p>
31    pub fn delivery_destination_arn(&self) -> ::std::option::Option<&str> {
32        self.delivery_destination_arn.as_deref()
33    }
34    /// <p>The destination type for the customer-managed destination.</p>
35    pub fn delivery_destination_type(&self) -> ::std::option::Option<&crate::types::DeliveryDestinationType> {
36        self.delivery_destination_type.as_ref()
37    }
38    /// <p>The name of the customer-managed destination.</p>
39    pub fn name(&self) -> ::std::option::Option<&str> {
40        self.name.as_deref()
41    }
42    /// <p>The Amazon Resource Name (ARN) of the delivery destination role.</p>
43    pub fn role_arn(&self) -> ::std::option::Option<&str> {
44        self.role_arn.as_deref()
45    }
46    /// <p>The timestamp value of when the destination creation requset occurred.</p>
47    pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
48        self.created_at.as_ref()
49    }
50    /// <p>The timestamp value of when the destination update requset occurred.</p>
51    pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
52        self.updated_at.as_ref()
53    }
54    /// <p>A set of key/value pairs that are used to manage the customer-managed destination.</p>
55    #[deprecated(note = "Tags has been deprecated from this api", since = "06-25-2025")]
56    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
57        self.tags.as_ref()
58    }
59}
60impl ::std::fmt::Debug for GetDestinationOutput {
61    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
62        let mut formatter = f.debug_struct("GetDestinationOutput");
63        formatter.field("description", &self.description);
64        formatter.field("delivery_destination_arn", &self.delivery_destination_arn);
65        formatter.field("delivery_destination_type", &self.delivery_destination_type);
66        formatter.field("name", &self.name);
67        formatter.field("role_arn", &self.role_arn);
68        formatter.field("created_at", &self.created_at);
69        formatter.field("updated_at", &self.updated_at);
70        formatter.field("tags", &"*** Sensitive Data Redacted ***");
71        formatter.field("_request_id", &self._request_id);
72        formatter.finish()
73    }
74}
75impl ::aws_types::request_id::RequestId for GetDestinationOutput {
76    fn request_id(&self) -> Option<&str> {
77        self._request_id.as_deref()
78    }
79}
80impl GetDestinationOutput {
81    /// Creates a new builder-style object to manufacture [`GetDestinationOutput`](crate::operation::get_destination::GetDestinationOutput).
82    pub fn builder() -> crate::operation::get_destination::builders::GetDestinationOutputBuilder {
83        crate::operation::get_destination::builders::GetDestinationOutputBuilder::default()
84    }
85}
86
87/// A builder for [`GetDestinationOutput`](crate::operation::get_destination::GetDestinationOutput).
88#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
89#[non_exhaustive]
90pub struct GetDestinationOutputBuilder {
91    pub(crate) description: ::std::option::Option<::std::string::String>,
92    pub(crate) delivery_destination_arn: ::std::option::Option<::std::string::String>,
93    pub(crate) delivery_destination_type: ::std::option::Option<crate::types::DeliveryDestinationType>,
94    pub(crate) name: ::std::option::Option<::std::string::String>,
95    pub(crate) role_arn: ::std::option::Option<::std::string::String>,
96    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
97    pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
98    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
99    _request_id: Option<String>,
100}
101impl GetDestinationOutputBuilder {
102    /// <p>The description of the customer-managed destination.</p>
103    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
104        self.description = ::std::option::Option::Some(input.into());
105        self
106    }
107    /// <p>The description of the customer-managed destination.</p>
108    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
109        self.description = input;
110        self
111    }
112    /// <p>The description of the customer-managed destination.</p>
113    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
114        &self.description
115    }
116    /// <p>The Amazon Resource Name (ARN) of the customer-managed destination.</p>
117    pub fn delivery_destination_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
118        self.delivery_destination_arn = ::std::option::Option::Some(input.into());
119        self
120    }
121    /// <p>The Amazon Resource Name (ARN) of the customer-managed destination.</p>
122    pub fn set_delivery_destination_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
123        self.delivery_destination_arn = input;
124        self
125    }
126    /// <p>The Amazon Resource Name (ARN) of the customer-managed destination.</p>
127    pub fn get_delivery_destination_arn(&self) -> &::std::option::Option<::std::string::String> {
128        &self.delivery_destination_arn
129    }
130    /// <p>The destination type for the customer-managed destination.</p>
131    pub fn delivery_destination_type(mut self, input: crate::types::DeliveryDestinationType) -> Self {
132        self.delivery_destination_type = ::std::option::Option::Some(input);
133        self
134    }
135    /// <p>The destination type for the customer-managed destination.</p>
136    pub fn set_delivery_destination_type(mut self, input: ::std::option::Option<crate::types::DeliveryDestinationType>) -> Self {
137        self.delivery_destination_type = input;
138        self
139    }
140    /// <p>The destination type for the customer-managed destination.</p>
141    pub fn get_delivery_destination_type(&self) -> &::std::option::Option<crate::types::DeliveryDestinationType> {
142        &self.delivery_destination_type
143    }
144    /// <p>The name of the customer-managed destination.</p>
145    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
146        self.name = ::std::option::Option::Some(input.into());
147        self
148    }
149    /// <p>The name of the customer-managed destination.</p>
150    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
151        self.name = input;
152        self
153    }
154    /// <p>The name of the customer-managed destination.</p>
155    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
156        &self.name
157    }
158    /// <p>The Amazon Resource Name (ARN) of the delivery destination role.</p>
159    pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
160        self.role_arn = ::std::option::Option::Some(input.into());
161        self
162    }
163    /// <p>The Amazon Resource Name (ARN) of the delivery destination role.</p>
164    pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
165        self.role_arn = input;
166        self
167    }
168    /// <p>The Amazon Resource Name (ARN) of the delivery destination role.</p>
169    pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
170        &self.role_arn
171    }
172    /// <p>The timestamp value of when the destination creation requset occurred.</p>
173    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
174        self.created_at = ::std::option::Option::Some(input);
175        self
176    }
177    /// <p>The timestamp value of when the destination creation requset occurred.</p>
178    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
179        self.created_at = input;
180        self
181    }
182    /// <p>The timestamp value of when the destination creation requset occurred.</p>
183    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
184        &self.created_at
185    }
186    /// <p>The timestamp value of when the destination update requset occurred.</p>
187    pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
188        self.updated_at = ::std::option::Option::Some(input);
189        self
190    }
191    /// <p>The timestamp value of when the destination update requset occurred.</p>
192    pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
193        self.updated_at = input;
194        self
195    }
196    /// <p>The timestamp value of when the destination update requset occurred.</p>
197    pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
198        &self.updated_at
199    }
200    /// Adds a key-value pair to `tags`.
201    ///
202    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
203    ///
204    /// <p>A set of key/value pairs that are used to manage the customer-managed destination.</p>
205    #[deprecated(note = "Tags has been deprecated from this api", since = "06-25-2025")]
206    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
207        let mut hash_map = self.tags.unwrap_or_default();
208        hash_map.insert(k.into(), v.into());
209        self.tags = ::std::option::Option::Some(hash_map);
210        self
211    }
212    /// <p>A set of key/value pairs that are used to manage the customer-managed destination.</p>
213    #[deprecated(note = "Tags has been deprecated from this api", since = "06-25-2025")]
214    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
215        self.tags = input;
216        self
217    }
218    /// <p>A set of key/value pairs that are used to manage the customer-managed destination.</p>
219    #[deprecated(note = "Tags has been deprecated from this api", since = "06-25-2025")]
220    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
221        &self.tags
222    }
223    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
224        self._request_id = Some(request_id.into());
225        self
226    }
227
228    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
229        self._request_id = request_id;
230        self
231    }
232    /// Consumes the builder and constructs a [`GetDestinationOutput`](crate::operation::get_destination::GetDestinationOutput).
233    pub fn build(self) -> crate::operation::get_destination::GetDestinationOutput {
234        crate::operation::get_destination::GetDestinationOutput {
235            description: self.description,
236            delivery_destination_arn: self.delivery_destination_arn,
237            delivery_destination_type: self.delivery_destination_type,
238            name: self.name,
239            role_arn: self.role_arn,
240            created_at: self.created_at,
241            updated_at: self.updated_at,
242            tags: self.tags,
243            _request_id: self._request_id,
244        }
245    }
246}
247impl ::std::fmt::Debug for GetDestinationOutputBuilder {
248    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
249        let mut formatter = f.debug_struct("GetDestinationOutputBuilder");
250        formatter.field("description", &self.description);
251        formatter.field("delivery_destination_arn", &self.delivery_destination_arn);
252        formatter.field("delivery_destination_type", &self.delivery_destination_type);
253        formatter.field("name", &self.name);
254        formatter.field("role_arn", &self.role_arn);
255        formatter.field("created_at", &self.created_at);
256        formatter.field("updated_at", &self.updated_at);
257        formatter.field("tags", &"*** Sensitive Data Redacted ***");
258        formatter.field("_request_id", &self._request_id);
259        formatter.finish()
260    }
261}