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
// 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 PutLoggingConfigurationInput {
/// <p>The Amazon Kinesis Data Firehose that contains the inspected traffic information, the redacted fields details, and the Amazon Resource Name (ARN) of the web ACL to monitor.</p><note>
/// <p>When specifying <code>Type</code> in <code>RedactedFields</code>, you must use one of the following values: <code>URI</code>, <code>QUERY_STRING</code>, <code>HEADER</code>, or <code>METHOD</code>.</p>
/// </note>
pub logging_configuration: ::std::option::Option<crate::types::LoggingConfiguration>,
}
impl PutLoggingConfigurationInput {
/// <p>The Amazon Kinesis Data Firehose that contains the inspected traffic information, the redacted fields details, and the Amazon Resource Name (ARN) of the web ACL to monitor.</p><note>
/// <p>When specifying <code>Type</code> in <code>RedactedFields</code>, you must use one of the following values: <code>URI</code>, <code>QUERY_STRING</code>, <code>HEADER</code>, or <code>METHOD</code>.</p>
/// </note>
pub fn logging_configuration(&self) -> ::std::option::Option<&crate::types::LoggingConfiguration> {
self.logging_configuration.as_ref()
}
}
impl PutLoggingConfigurationInput {
/// Creates a new builder-style object to manufacture [`PutLoggingConfigurationInput`](crate::operation::put_logging_configuration::PutLoggingConfigurationInput).
pub fn builder() -> crate::operation::put_logging_configuration::builders::PutLoggingConfigurationInputBuilder {
crate::operation::put_logging_configuration::builders::PutLoggingConfigurationInputBuilder::default()
}
}
/// A builder for [`PutLoggingConfigurationInput`](crate::operation::put_logging_configuration::PutLoggingConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct PutLoggingConfigurationInputBuilder {
pub(crate) logging_configuration: ::std::option::Option<crate::types::LoggingConfiguration>,
}
impl PutLoggingConfigurationInputBuilder {
/// <p>The Amazon Kinesis Data Firehose that contains the inspected traffic information, the redacted fields details, and the Amazon Resource Name (ARN) of the web ACL to monitor.</p><note>
/// <p>When specifying <code>Type</code> in <code>RedactedFields</code>, you must use one of the following values: <code>URI</code>, <code>QUERY_STRING</code>, <code>HEADER</code>, or <code>METHOD</code>.</p>
/// </note>
/// This field is required.
pub fn logging_configuration(mut self, input: crate::types::LoggingConfiguration) -> Self {
self.logging_configuration = ::std::option::Option::Some(input);
self
}
/// <p>The Amazon Kinesis Data Firehose that contains the inspected traffic information, the redacted fields details, and the Amazon Resource Name (ARN) of the web ACL to monitor.</p><note>
/// <p>When specifying <code>Type</code> in <code>RedactedFields</code>, you must use one of the following values: <code>URI</code>, <code>QUERY_STRING</code>, <code>HEADER</code>, or <code>METHOD</code>.</p>
/// </note>
pub fn set_logging_configuration(mut self, input: ::std::option::Option<crate::types::LoggingConfiguration>) -> Self {
self.logging_configuration = input;
self
}
/// <p>The Amazon Kinesis Data Firehose that contains the inspected traffic information, the redacted fields details, and the Amazon Resource Name (ARN) of the web ACL to monitor.</p><note>
/// <p>When specifying <code>Type</code> in <code>RedactedFields</code>, you must use one of the following values: <code>URI</code>, <code>QUERY_STRING</code>, <code>HEADER</code>, or <code>METHOD</code>.</p>
/// </note>
pub fn get_logging_configuration(&self) -> &::std::option::Option<crate::types::LoggingConfiguration> {
&self.logging_configuration
}
/// Consumes the builder and constructs a [`PutLoggingConfigurationInput`](crate::operation::put_logging_configuration::PutLoggingConfigurationInput).
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::put_logging_configuration::PutLoggingConfigurationInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::put_logging_configuration::PutLoggingConfigurationInput {
logging_configuration: self.logging_configuration,
})
}
}