pub struct Builder { /* private fields */ }
Expand description
A builder for AwsElasticsearchDomainLogPublishingOptions
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn index_slow_logs(
self,
input: AwsElasticsearchDomainLogPublishingOptionsLogConfig
) -> Self
pub fn index_slow_logs(
self,
input: AwsElasticsearchDomainLogPublishingOptionsLogConfig
) -> Self
Configures the OpenSearch index logs publishing.
sourcepub fn set_index_slow_logs(
self,
input: Option<AwsElasticsearchDomainLogPublishingOptionsLogConfig>
) -> Self
pub fn set_index_slow_logs(
self,
input: Option<AwsElasticsearchDomainLogPublishingOptionsLogConfig>
) -> Self
Configures the OpenSearch index logs publishing.
Examples found in repository?
src/json_deser.rs (lines 23845-23847)
23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainLogPublishingOptions>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_elasticsearch_domain_log_publishing_options::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"IndexSlowLogs" => {
builder = builder.set_index_slow_logs(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options_log_config(tokens)?
);
}
"SearchSlowLogs" => {
builder = builder.set_search_slow_logs(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options_log_config(tokens)?
);
}
"AuditLogs" => {
builder = builder.set_audit_logs(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options_log_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn search_slow_logs(
self,
input: AwsElasticsearchDomainLogPublishingOptionsLogConfig
) -> Self
pub fn search_slow_logs(
self,
input: AwsElasticsearchDomainLogPublishingOptionsLogConfig
) -> Self
Configures the OpenSearch search slow log publishing.
sourcepub fn set_search_slow_logs(
self,
input: Option<AwsElasticsearchDomainLogPublishingOptionsLogConfig>
) -> Self
pub fn set_search_slow_logs(
self,
input: Option<AwsElasticsearchDomainLogPublishingOptionsLogConfig>
) -> Self
Configures the OpenSearch search slow log publishing.
Examples found in repository?
src/json_deser.rs (lines 23850-23852)
23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainLogPublishingOptions>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_elasticsearch_domain_log_publishing_options::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"IndexSlowLogs" => {
builder = builder.set_index_slow_logs(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options_log_config(tokens)?
);
}
"SearchSlowLogs" => {
builder = builder.set_search_slow_logs(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options_log_config(tokens)?
);
}
"AuditLogs" => {
builder = builder.set_audit_logs(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options_log_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn audit_logs(
self,
input: AwsElasticsearchDomainLogPublishingOptionsLogConfig
) -> Self
pub fn audit_logs(
self,
input: AwsElasticsearchDomainLogPublishingOptionsLogConfig
) -> Self
The log configuration.
sourcepub fn set_audit_logs(
self,
input: Option<AwsElasticsearchDomainLogPublishingOptionsLogConfig>
) -> Self
pub fn set_audit_logs(
self,
input: Option<AwsElasticsearchDomainLogPublishingOptionsLogConfig>
) -> Self
The log configuration.
Examples found in repository?
src/json_deser.rs (lines 23855-23857)
23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainLogPublishingOptions>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_elasticsearch_domain_log_publishing_options::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"IndexSlowLogs" => {
builder = builder.set_index_slow_logs(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options_log_config(tokens)?
);
}
"SearchSlowLogs" => {
builder = builder.set_search_slow_logs(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options_log_config(tokens)?
);
}
"AuditLogs" => {
builder = builder.set_audit_logs(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options_log_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> AwsElasticsearchDomainLogPublishingOptions
pub fn build(self) -> AwsElasticsearchDomainLogPublishingOptions
Consumes the builder and constructs a AwsElasticsearchDomainLogPublishingOptions
.
Examples found in repository?
src/json_deser.rs (line 23872)
23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainLogPublishingOptions>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder =
crate::model::aws_elasticsearch_domain_log_publishing_options::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"IndexSlowLogs" => {
builder = builder.set_index_slow_logs(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options_log_config(tokens)?
);
}
"SearchSlowLogs" => {
builder = builder.set_search_slow_logs(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options_log_config(tokens)?
);
}
"AuditLogs" => {
builder = builder.set_audit_logs(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options_log_config(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}