aws_sdk_pipes/operation/describe_pipe/
_describe_pipe_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 DescribePipeOutput {
6    /// <p>The ARN of the pipe.</p>
7    pub arn: ::std::option::Option<::std::string::String>,
8    /// <p>The name of the pipe.</p>
9    pub name: ::std::option::Option<::std::string::String>,
10    /// <p>A description of the pipe.</p>
11    pub description: ::std::option::Option<::std::string::String>,
12    /// <p>The state the pipe should be in.</p>
13    pub desired_state: ::std::option::Option<crate::types::RequestedPipeStateDescribeResponse>,
14    /// <p>The state the pipe is in.</p>
15    pub current_state: ::std::option::Option<crate::types::PipeState>,
16    /// <p>The reason the pipe is in its current state.</p>
17    pub state_reason: ::std::option::Option<::std::string::String>,
18    /// <p>The ARN of the source resource.</p>
19    pub source: ::std::option::Option<::std::string::String>,
20    /// <p>The parameters required to set up a source for your pipe.</p>
21    pub source_parameters: ::std::option::Option<crate::types::PipeSourceParameters>,
22    /// <p>The ARN of the enrichment resource.</p>
23    pub enrichment: ::std::option::Option<::std::string::String>,
24    /// <p>The parameters required to set up enrichment on your pipe.</p>
25    pub enrichment_parameters: ::std::option::Option<crate::types::PipeEnrichmentParameters>,
26    /// <p>The ARN of the target resource.</p>
27    pub target: ::std::option::Option<::std::string::String>,
28    /// <p>The parameters required to set up a target for your pipe.</p>
29    /// <p>For more information about pipe target parameters, including how to use dynamic path parameters, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-target.html">Target parameters</a> in the <i>Amazon EventBridge User Guide</i>.</p>
30    pub target_parameters: ::std::option::Option<crate::types::PipeTargetParameters>,
31    /// <p>The ARN of the role that allows the pipe to send data to the target.</p>
32    pub role_arn: ::std::option::Option<::std::string::String>,
33    /// <p>The list of key-value pairs to associate with the pipe.</p>
34    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
35    /// <p>The time the pipe was created.</p>
36    pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
37    /// <p>When the pipe was last updated, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
38    pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
39    /// <p>The logging configuration settings for the pipe.</p>
40    pub log_configuration: ::std::option::Option<crate::types::PipeLogConfiguration>,
41    /// <p>The identifier of the KMS customer managed key for EventBridge to use to encrypt pipe data, if one has been specified.</p>
42    /// <p>For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html">Data encryption in EventBridge</a> in the <i>Amazon EventBridge User Guide</i>.</p>
43    pub kms_key_identifier: ::std::option::Option<::std::string::String>,
44    _request_id: Option<String>,
45}
46impl DescribePipeOutput {
47    /// <p>The ARN of the pipe.</p>
48    pub fn arn(&self) -> ::std::option::Option<&str> {
49        self.arn.as_deref()
50    }
51    /// <p>The name of the pipe.</p>
52    pub fn name(&self) -> ::std::option::Option<&str> {
53        self.name.as_deref()
54    }
55    /// <p>A description of the pipe.</p>
56    pub fn description(&self) -> ::std::option::Option<&str> {
57        self.description.as_deref()
58    }
59    /// <p>The state the pipe should be in.</p>
60    pub fn desired_state(&self) -> ::std::option::Option<&crate::types::RequestedPipeStateDescribeResponse> {
61        self.desired_state.as_ref()
62    }
63    /// <p>The state the pipe is in.</p>
64    pub fn current_state(&self) -> ::std::option::Option<&crate::types::PipeState> {
65        self.current_state.as_ref()
66    }
67    /// <p>The reason the pipe is in its current state.</p>
68    pub fn state_reason(&self) -> ::std::option::Option<&str> {
69        self.state_reason.as_deref()
70    }
71    /// <p>The ARN of the source resource.</p>
72    pub fn source(&self) -> ::std::option::Option<&str> {
73        self.source.as_deref()
74    }
75    /// <p>The parameters required to set up a source for your pipe.</p>
76    pub fn source_parameters(&self) -> ::std::option::Option<&crate::types::PipeSourceParameters> {
77        self.source_parameters.as_ref()
78    }
79    /// <p>The ARN of the enrichment resource.</p>
80    pub fn enrichment(&self) -> ::std::option::Option<&str> {
81        self.enrichment.as_deref()
82    }
83    /// <p>The parameters required to set up enrichment on your pipe.</p>
84    pub fn enrichment_parameters(&self) -> ::std::option::Option<&crate::types::PipeEnrichmentParameters> {
85        self.enrichment_parameters.as_ref()
86    }
87    /// <p>The ARN of the target resource.</p>
88    pub fn target(&self) -> ::std::option::Option<&str> {
89        self.target.as_deref()
90    }
91    /// <p>The parameters required to set up a target for your pipe.</p>
92    /// <p>For more information about pipe target parameters, including how to use dynamic path parameters, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-target.html">Target parameters</a> in the <i>Amazon EventBridge User Guide</i>.</p>
93    pub fn target_parameters(&self) -> ::std::option::Option<&crate::types::PipeTargetParameters> {
94        self.target_parameters.as_ref()
95    }
96    /// <p>The ARN of the role that allows the pipe to send data to the target.</p>
97    pub fn role_arn(&self) -> ::std::option::Option<&str> {
98        self.role_arn.as_deref()
99    }
100    /// <p>The list of key-value pairs to associate with the pipe.</p>
101    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
102        self.tags.as_ref()
103    }
104    /// <p>The time the pipe was created.</p>
105    pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
106        self.creation_time.as_ref()
107    }
108    /// <p>When the pipe was last updated, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
109    pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
110        self.last_modified_time.as_ref()
111    }
112    /// <p>The logging configuration settings for the pipe.</p>
113    pub fn log_configuration(&self) -> ::std::option::Option<&crate::types::PipeLogConfiguration> {
114        self.log_configuration.as_ref()
115    }
116    /// <p>The identifier of the KMS customer managed key for EventBridge to use to encrypt pipe data, if one has been specified.</p>
117    /// <p>For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html">Data encryption in EventBridge</a> in the <i>Amazon EventBridge User Guide</i>.</p>
118    pub fn kms_key_identifier(&self) -> ::std::option::Option<&str> {
119        self.kms_key_identifier.as_deref()
120    }
121}
122impl ::std::fmt::Debug for DescribePipeOutput {
123    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
124        let mut formatter = f.debug_struct("DescribePipeOutput");
125        formatter.field("arn", &self.arn);
126        formatter.field("name", &self.name);
127        formatter.field("description", &"*** Sensitive Data Redacted ***");
128        formatter.field("desired_state", &self.desired_state);
129        formatter.field("current_state", &self.current_state);
130        formatter.field("state_reason", &self.state_reason);
131        formatter.field("source", &self.source);
132        formatter.field("source_parameters", &self.source_parameters);
133        formatter.field("enrichment", &self.enrichment);
134        formatter.field("enrichment_parameters", &self.enrichment_parameters);
135        formatter.field("target", &self.target);
136        formatter.field("target_parameters", &self.target_parameters);
137        formatter.field("role_arn", &self.role_arn);
138        formatter.field("tags", &"*** Sensitive Data Redacted ***");
139        formatter.field("creation_time", &self.creation_time);
140        formatter.field("last_modified_time", &self.last_modified_time);
141        formatter.field("log_configuration", &self.log_configuration);
142        formatter.field("kms_key_identifier", &self.kms_key_identifier);
143        formatter.field("_request_id", &self._request_id);
144        formatter.finish()
145    }
146}
147impl ::aws_types::request_id::RequestId for DescribePipeOutput {
148    fn request_id(&self) -> Option<&str> {
149        self._request_id.as_deref()
150    }
151}
152impl DescribePipeOutput {
153    /// Creates a new builder-style object to manufacture [`DescribePipeOutput`](crate::operation::describe_pipe::DescribePipeOutput).
154    pub fn builder() -> crate::operation::describe_pipe::builders::DescribePipeOutputBuilder {
155        crate::operation::describe_pipe::builders::DescribePipeOutputBuilder::default()
156    }
157}
158
159/// A builder for [`DescribePipeOutput`](crate::operation::describe_pipe::DescribePipeOutput).
160#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
161#[non_exhaustive]
162pub struct DescribePipeOutputBuilder {
163    pub(crate) arn: ::std::option::Option<::std::string::String>,
164    pub(crate) name: ::std::option::Option<::std::string::String>,
165    pub(crate) description: ::std::option::Option<::std::string::String>,
166    pub(crate) desired_state: ::std::option::Option<crate::types::RequestedPipeStateDescribeResponse>,
167    pub(crate) current_state: ::std::option::Option<crate::types::PipeState>,
168    pub(crate) state_reason: ::std::option::Option<::std::string::String>,
169    pub(crate) source: ::std::option::Option<::std::string::String>,
170    pub(crate) source_parameters: ::std::option::Option<crate::types::PipeSourceParameters>,
171    pub(crate) enrichment: ::std::option::Option<::std::string::String>,
172    pub(crate) enrichment_parameters: ::std::option::Option<crate::types::PipeEnrichmentParameters>,
173    pub(crate) target: ::std::option::Option<::std::string::String>,
174    pub(crate) target_parameters: ::std::option::Option<crate::types::PipeTargetParameters>,
175    pub(crate) role_arn: ::std::option::Option<::std::string::String>,
176    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
177    pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
178    pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
179    pub(crate) log_configuration: ::std::option::Option<crate::types::PipeLogConfiguration>,
180    pub(crate) kms_key_identifier: ::std::option::Option<::std::string::String>,
181    _request_id: Option<String>,
182}
183impl DescribePipeOutputBuilder {
184    /// <p>The ARN of the pipe.</p>
185    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
186        self.arn = ::std::option::Option::Some(input.into());
187        self
188    }
189    /// <p>The ARN of the pipe.</p>
190    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
191        self.arn = input;
192        self
193    }
194    /// <p>The ARN of the pipe.</p>
195    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
196        &self.arn
197    }
198    /// <p>The name of the pipe.</p>
199    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
200        self.name = ::std::option::Option::Some(input.into());
201        self
202    }
203    /// <p>The name of the pipe.</p>
204    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
205        self.name = input;
206        self
207    }
208    /// <p>The name of the pipe.</p>
209    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
210        &self.name
211    }
212    /// <p>A description of the pipe.</p>
213    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
214        self.description = ::std::option::Option::Some(input.into());
215        self
216    }
217    /// <p>A description of the pipe.</p>
218    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
219        self.description = input;
220        self
221    }
222    /// <p>A description of the pipe.</p>
223    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
224        &self.description
225    }
226    /// <p>The state the pipe should be in.</p>
227    pub fn desired_state(mut self, input: crate::types::RequestedPipeStateDescribeResponse) -> Self {
228        self.desired_state = ::std::option::Option::Some(input);
229        self
230    }
231    /// <p>The state the pipe should be in.</p>
232    pub fn set_desired_state(mut self, input: ::std::option::Option<crate::types::RequestedPipeStateDescribeResponse>) -> Self {
233        self.desired_state = input;
234        self
235    }
236    /// <p>The state the pipe should be in.</p>
237    pub fn get_desired_state(&self) -> &::std::option::Option<crate::types::RequestedPipeStateDescribeResponse> {
238        &self.desired_state
239    }
240    /// <p>The state the pipe is in.</p>
241    pub fn current_state(mut self, input: crate::types::PipeState) -> Self {
242        self.current_state = ::std::option::Option::Some(input);
243        self
244    }
245    /// <p>The state the pipe is in.</p>
246    pub fn set_current_state(mut self, input: ::std::option::Option<crate::types::PipeState>) -> Self {
247        self.current_state = input;
248        self
249    }
250    /// <p>The state the pipe is in.</p>
251    pub fn get_current_state(&self) -> &::std::option::Option<crate::types::PipeState> {
252        &self.current_state
253    }
254    /// <p>The reason the pipe is in its current state.</p>
255    pub fn state_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
256        self.state_reason = ::std::option::Option::Some(input.into());
257        self
258    }
259    /// <p>The reason the pipe is in its current state.</p>
260    pub fn set_state_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
261        self.state_reason = input;
262        self
263    }
264    /// <p>The reason the pipe is in its current state.</p>
265    pub fn get_state_reason(&self) -> &::std::option::Option<::std::string::String> {
266        &self.state_reason
267    }
268    /// <p>The ARN of the source resource.</p>
269    pub fn source(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
270        self.source = ::std::option::Option::Some(input.into());
271        self
272    }
273    /// <p>The ARN of the source resource.</p>
274    pub fn set_source(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
275        self.source = input;
276        self
277    }
278    /// <p>The ARN of the source resource.</p>
279    pub fn get_source(&self) -> &::std::option::Option<::std::string::String> {
280        &self.source
281    }
282    /// <p>The parameters required to set up a source for your pipe.</p>
283    pub fn source_parameters(mut self, input: crate::types::PipeSourceParameters) -> Self {
284        self.source_parameters = ::std::option::Option::Some(input);
285        self
286    }
287    /// <p>The parameters required to set up a source for your pipe.</p>
288    pub fn set_source_parameters(mut self, input: ::std::option::Option<crate::types::PipeSourceParameters>) -> Self {
289        self.source_parameters = input;
290        self
291    }
292    /// <p>The parameters required to set up a source for your pipe.</p>
293    pub fn get_source_parameters(&self) -> &::std::option::Option<crate::types::PipeSourceParameters> {
294        &self.source_parameters
295    }
296    /// <p>The ARN of the enrichment resource.</p>
297    pub fn enrichment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
298        self.enrichment = ::std::option::Option::Some(input.into());
299        self
300    }
301    /// <p>The ARN of the enrichment resource.</p>
302    pub fn set_enrichment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
303        self.enrichment = input;
304        self
305    }
306    /// <p>The ARN of the enrichment resource.</p>
307    pub fn get_enrichment(&self) -> &::std::option::Option<::std::string::String> {
308        &self.enrichment
309    }
310    /// <p>The parameters required to set up enrichment on your pipe.</p>
311    pub fn enrichment_parameters(mut self, input: crate::types::PipeEnrichmentParameters) -> Self {
312        self.enrichment_parameters = ::std::option::Option::Some(input);
313        self
314    }
315    /// <p>The parameters required to set up enrichment on your pipe.</p>
316    pub fn set_enrichment_parameters(mut self, input: ::std::option::Option<crate::types::PipeEnrichmentParameters>) -> Self {
317        self.enrichment_parameters = input;
318        self
319    }
320    /// <p>The parameters required to set up enrichment on your pipe.</p>
321    pub fn get_enrichment_parameters(&self) -> &::std::option::Option<crate::types::PipeEnrichmentParameters> {
322        &self.enrichment_parameters
323    }
324    /// <p>The ARN of the target resource.</p>
325    pub fn target(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
326        self.target = ::std::option::Option::Some(input.into());
327        self
328    }
329    /// <p>The ARN of the target resource.</p>
330    pub fn set_target(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
331        self.target = input;
332        self
333    }
334    /// <p>The ARN of the target resource.</p>
335    pub fn get_target(&self) -> &::std::option::Option<::std::string::String> {
336        &self.target
337    }
338    /// <p>The parameters required to set up a target for your pipe.</p>
339    /// <p>For more information about pipe target parameters, including how to use dynamic path parameters, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-target.html">Target parameters</a> in the <i>Amazon EventBridge User Guide</i>.</p>
340    pub fn target_parameters(mut self, input: crate::types::PipeTargetParameters) -> Self {
341        self.target_parameters = ::std::option::Option::Some(input);
342        self
343    }
344    /// <p>The parameters required to set up a target for your pipe.</p>
345    /// <p>For more information about pipe target parameters, including how to use dynamic path parameters, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-target.html">Target parameters</a> in the <i>Amazon EventBridge User Guide</i>.</p>
346    pub fn set_target_parameters(mut self, input: ::std::option::Option<crate::types::PipeTargetParameters>) -> Self {
347        self.target_parameters = input;
348        self
349    }
350    /// <p>The parameters required to set up a target for your pipe.</p>
351    /// <p>For more information about pipe target parameters, including how to use dynamic path parameters, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-target.html">Target parameters</a> in the <i>Amazon EventBridge User Guide</i>.</p>
352    pub fn get_target_parameters(&self) -> &::std::option::Option<crate::types::PipeTargetParameters> {
353        &self.target_parameters
354    }
355    /// <p>The ARN of the role that allows the pipe to send data to the target.</p>
356    pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
357        self.role_arn = ::std::option::Option::Some(input.into());
358        self
359    }
360    /// <p>The ARN of the role that allows the pipe to send data to the target.</p>
361    pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
362        self.role_arn = input;
363        self
364    }
365    /// <p>The ARN of the role that allows the pipe to send data to the target.</p>
366    pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
367        &self.role_arn
368    }
369    /// Adds a key-value pair to `tags`.
370    ///
371    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
372    ///
373    /// <p>The list of key-value pairs to associate with the pipe.</p>
374    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
375        let mut hash_map = self.tags.unwrap_or_default();
376        hash_map.insert(k.into(), v.into());
377        self.tags = ::std::option::Option::Some(hash_map);
378        self
379    }
380    /// <p>The list of key-value pairs to associate with the pipe.</p>
381    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
382        self.tags = input;
383        self
384    }
385    /// <p>The list of key-value pairs to associate with the pipe.</p>
386    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
387        &self.tags
388    }
389    /// <p>The time the pipe was created.</p>
390    pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
391        self.creation_time = ::std::option::Option::Some(input);
392        self
393    }
394    /// <p>The time the pipe was created.</p>
395    pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
396        self.creation_time = input;
397        self
398    }
399    /// <p>The time the pipe was created.</p>
400    pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
401        &self.creation_time
402    }
403    /// <p>When the pipe was last updated, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
404    pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
405        self.last_modified_time = ::std::option::Option::Some(input);
406        self
407    }
408    /// <p>When the pipe was last updated, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
409    pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
410        self.last_modified_time = input;
411        self
412    }
413    /// <p>When the pipe was last updated, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
414    pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
415        &self.last_modified_time
416    }
417    /// <p>The logging configuration settings for the pipe.</p>
418    pub fn log_configuration(mut self, input: crate::types::PipeLogConfiguration) -> Self {
419        self.log_configuration = ::std::option::Option::Some(input);
420        self
421    }
422    /// <p>The logging configuration settings for the pipe.</p>
423    pub fn set_log_configuration(mut self, input: ::std::option::Option<crate::types::PipeLogConfiguration>) -> Self {
424        self.log_configuration = input;
425        self
426    }
427    /// <p>The logging configuration settings for the pipe.</p>
428    pub fn get_log_configuration(&self) -> &::std::option::Option<crate::types::PipeLogConfiguration> {
429        &self.log_configuration
430    }
431    /// <p>The identifier of the KMS customer managed key for EventBridge to use to encrypt pipe data, if one has been specified.</p>
432    /// <p>For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html">Data encryption in EventBridge</a> in the <i>Amazon EventBridge User Guide</i>.</p>
433    pub fn kms_key_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
434        self.kms_key_identifier = ::std::option::Option::Some(input.into());
435        self
436    }
437    /// <p>The identifier of the KMS customer managed key for EventBridge to use to encrypt pipe data, if one has been specified.</p>
438    /// <p>For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html">Data encryption in EventBridge</a> in the <i>Amazon EventBridge User Guide</i>.</p>
439    pub fn set_kms_key_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
440        self.kms_key_identifier = input;
441        self
442    }
443    /// <p>The identifier of the KMS customer managed key for EventBridge to use to encrypt pipe data, if one has been specified.</p>
444    /// <p>For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html">Data encryption in EventBridge</a> in the <i>Amazon EventBridge User Guide</i>.</p>
445    pub fn get_kms_key_identifier(&self) -> &::std::option::Option<::std::string::String> {
446        &self.kms_key_identifier
447    }
448    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
449        self._request_id = Some(request_id.into());
450        self
451    }
452
453    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
454        self._request_id = request_id;
455        self
456    }
457    /// Consumes the builder and constructs a [`DescribePipeOutput`](crate::operation::describe_pipe::DescribePipeOutput).
458    pub fn build(self) -> crate::operation::describe_pipe::DescribePipeOutput {
459        crate::operation::describe_pipe::DescribePipeOutput {
460            arn: self.arn,
461            name: self.name,
462            description: self.description,
463            desired_state: self.desired_state,
464            current_state: self.current_state,
465            state_reason: self.state_reason,
466            source: self.source,
467            source_parameters: self.source_parameters,
468            enrichment: self.enrichment,
469            enrichment_parameters: self.enrichment_parameters,
470            target: self.target,
471            target_parameters: self.target_parameters,
472            role_arn: self.role_arn,
473            tags: self.tags,
474            creation_time: self.creation_time,
475            last_modified_time: self.last_modified_time,
476            log_configuration: self.log_configuration,
477            kms_key_identifier: self.kms_key_identifier,
478            _request_id: self._request_id,
479        }
480    }
481}
482impl ::std::fmt::Debug for DescribePipeOutputBuilder {
483    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
484        let mut formatter = f.debug_struct("DescribePipeOutputBuilder");
485        formatter.field("arn", &self.arn);
486        formatter.field("name", &self.name);
487        formatter.field("description", &"*** Sensitive Data Redacted ***");
488        formatter.field("desired_state", &self.desired_state);
489        formatter.field("current_state", &self.current_state);
490        formatter.field("state_reason", &self.state_reason);
491        formatter.field("source", &self.source);
492        formatter.field("source_parameters", &self.source_parameters);
493        formatter.field("enrichment", &self.enrichment);
494        formatter.field("enrichment_parameters", &self.enrichment_parameters);
495        formatter.field("target", &self.target);
496        formatter.field("target_parameters", &self.target_parameters);
497        formatter.field("role_arn", &self.role_arn);
498        formatter.field("tags", &"*** Sensitive Data Redacted ***");
499        formatter.field("creation_time", &self.creation_time);
500        formatter.field("last_modified_time", &self.last_modified_time);
501        formatter.field("log_configuration", &self.log_configuration);
502        formatter.field("kms_key_identifier", &self.kms_key_identifier);
503        formatter.field("_request_id", &self._request_id);
504        formatter.finish()
505    }
506}