@Generated(value="software.amazon.awssdk:codegen") public class TracingConfig extends Object implements StructuredPojo, ToCopyableBuilder<TracingConfig.Builder,TracingConfig>
The parent object that contains your function's tracing settings.
Modifier and Type | Class and Description |
---|---|
static interface |
TracingConfig.Builder |
Modifier and Type | Method and Description |
---|---|
static TracingConfig.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
TracingMode |
mode()
Can be either PassThrough or Active.
|
String |
modeString()
Can be either PassThrough or Active.
|
static Class<? extends TracingConfig.Builder> |
serializableBuilderClass() |
TracingConfig.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public TracingMode mode()
Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision.
If the service returns an enum value that is not available in the current SDK version, mode
will return
TracingMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
modeString()
.
TracingMode
public String modeString()
Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision.
If the service returns an enum value that is not available in the current SDK version, mode
will return
TracingMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
modeString()
.
TracingMode
public TracingConfig.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TracingConfig.Builder,TracingConfig>
public static TracingConfig.Builder builder()
public static Class<? extends TracingConfig.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.