T - Name of your LoggingConfiguration typeB - Name of the Builder for your LoggingConfiguration typepublic abstract static class SdkHttpLoggingConfiguration.Builder<T extends SdkHttpLoggingConfiguration<T,B>,B extends SdkHttpLoggingConfiguration.Builder<T,B>> extends Object
SdkHttpLoggingConfiguration.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
B |
body(boolean logBody)
Sets whether to log the body.
|
abstract T |
build()
Constructs a
SdkHttpLoggingConfiguration object with the set values. |
B |
excludeHeaders(String... excludeHeaders)
Sets the headers to be excluded from logging.
|
B |
headers(boolean logHeaders)
Sets whether to log the headers.
|
B |
includeHeaders(String... includeHeaders)
Sets the headers to be included in logging.
|
protected abstract B |
self() |
B |
unmaskHeaders(String... unmaskHeaders)
Sets the headers to be unmasked in logging.
|
public B body(boolean logBody)
logBody - True to log the body, otherwise false.public B headers(boolean logHeaders)
logHeaders - True to log the headers, otherwise false.public B excludeHeaders(String... excludeHeaders)
excludeHeaders - The headers to exclude.public B includeHeaders(String... includeHeaders)
includeHeaders - The headers to include.public B unmaskHeaders(String... unmaskHeaders)
unmaskHeaders - The headers to unmask in logging.protected abstract B self()
public abstract T build()
SdkHttpLoggingConfiguration object with the set values.SdkHttpLoggingConfiguration object.Copyright © 2025. All rights reserved.