aws_sdk_iotmanagedintegrations/operation/get_destination/
_get_destination_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
5pub struct GetDestinationOutput {
6 pub description: ::std::option::Option<::std::string::String>,
8 pub delivery_destination_arn: ::std::option::Option<::std::string::String>,
10 pub delivery_destination_type: ::std::option::Option<crate::types::DeliveryDestinationType>,
12 pub name: ::std::option::Option<::std::string::String>,
14 pub role_arn: ::std::option::Option<::std::string::String>,
16 pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
18 pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
20 #[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 pub fn description(&self) -> ::std::option::Option<&str> {
28 self.description.as_deref()
29 }
30 pub fn delivery_destination_arn(&self) -> ::std::option::Option<&str> {
32 self.delivery_destination_arn.as_deref()
33 }
34 pub fn delivery_destination_type(&self) -> ::std::option::Option<&crate::types::DeliveryDestinationType> {
36 self.delivery_destination_type.as_ref()
37 }
38 pub fn name(&self) -> ::std::option::Option<&str> {
40 self.name.as_deref()
41 }
42 pub fn role_arn(&self) -> ::std::option::Option<&str> {
44 self.role_arn.as_deref()
45 }
46 pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
48 self.created_at.as_ref()
49 }
50 pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
52 self.updated_at.as_ref()
53 }
54 #[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 pub fn builder() -> crate::operation::get_destination::builders::GetDestinationOutputBuilder {
83 crate::operation::get_destination::builders::GetDestinationOutputBuilder::default()
84 }
85}
86
87#[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 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 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
109 self.description = input;
110 self
111 }
112 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
114 &self.description
115 }
116 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 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 pub fn get_delivery_destination_arn(&self) -> &::std::option::Option<::std::string::String> {
128 &self.delivery_destination_arn
129 }
130 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 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 pub fn get_delivery_destination_type(&self) -> &::std::option::Option<crate::types::DeliveryDestinationType> {
142 &self.delivery_destination_type
143 }
144 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 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
151 self.name = input;
152 self
153 }
154 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
156 &self.name
157 }
158 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 pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
165 self.role_arn = input;
166 self
167 }
168 pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
170 &self.role_arn
171 }
172 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 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 pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
184 &self.created_at
185 }
186 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 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 pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
198 &self.updated_at
199 }
200 #[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 #[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 #[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 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}