@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsSchemaRemapper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_OVERRIDE_ON_CONFLICT |
static String |
JSON_PROPERTY_PRESERVE_SOURCE |
static String |
JSON_PROPERTY_SOURCES |
static String |
JSON_PROPERTY_TARGET |
static String |
JSON_PROPERTY_TARGET_FORMAT |
static String |
JSON_PROPERTY_TYPE |
boolean |
unparsed |
| Constructor and Description |
|---|
LogsSchemaRemapper() |
LogsSchemaRemapper(String name,
List<String> sources,
String target,
LogsSchemaRemapperType type) |
| Modifier and Type | Method and Description |
|---|---|
LogsSchemaRemapper |
addSourcesItem(String sourcesItem) |
boolean |
equals(Object o)
Return true if this LogsSchemaRemapper object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getName()
Name of the logs schema remapper.
|
Boolean |
getOverrideOnConflict()
Override or not the target element if already set.
|
Boolean |
getPreserveSource()
Remove or preserve the remapped source element.
|
List<String> |
getSources()
Array of source attributes.
|
String |
getTarget()
Target field to map log source field to.
|
TargetFormatType |
getTargetFormat()
If the
target_type of the remapper is attribute, try to cast the
value to a new specific type. |
LogsSchemaRemapperType |
getType()
Type of logs schema remapper.
|
int |
hashCode() |
LogsSchemaRemapper |
name(String name) |
LogsSchemaRemapper |
overrideOnConflict(Boolean overrideOnConflict) |
LogsSchemaRemapper |
preserveSource(Boolean preserveSource) |
LogsSchemaRemapper |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setName(String name) |
void |
setOverrideOnConflict(Boolean overrideOnConflict) |
void |
setPreserveSource(Boolean preserveSource) |
void |
setSources(List<String> sources) |
void |
setTarget(String target) |
void |
setTargetFormat(TargetFormatType targetFormat) |
void |
setType(LogsSchemaRemapperType type) |
LogsSchemaRemapper |
sources(List<String> sources) |
LogsSchemaRemapper |
target(String target) |
LogsSchemaRemapper |
targetFormat(TargetFormatType targetFormat) |
String |
toString() |
LogsSchemaRemapper |
type(LogsSchemaRemapperType type) |
public boolean unparsed
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_OVERRIDE_ON_CONFLICT
public static final String JSON_PROPERTY_PRESERVE_SOURCE
public static final String JSON_PROPERTY_SOURCES
public static final String JSON_PROPERTY_TARGET
public static final String JSON_PROPERTY_TARGET_FORMAT
public static final String JSON_PROPERTY_TYPE
public LogsSchemaRemapper()
public LogsSchemaRemapper(String name, List<String> sources, String target, LogsSchemaRemapperType type)
public LogsSchemaRemapper name(String name)
public String getName()
public void setName(String name)
public LogsSchemaRemapper overrideOnConflict(Boolean overrideOnConflict)
@Nullable public Boolean getOverrideOnConflict()
public void setOverrideOnConflict(Boolean overrideOnConflict)
public LogsSchemaRemapper preserveSource(Boolean preserveSource)
@Nullable public Boolean getPreserveSource()
public void setPreserveSource(Boolean preserveSource)
public LogsSchemaRemapper sources(List<String> sources)
public LogsSchemaRemapper addSourcesItem(String sourcesItem)
public LogsSchemaRemapper target(String target)
public String getTarget()
public void setTarget(String target)
public LogsSchemaRemapper targetFormat(TargetFormatType targetFormat)
@Nullable public TargetFormatType getTargetFormat()
target_type of the remapper is attribute, try to cast the
value to a new specific type. If the cast is not possible, the original type is kept.
string, integer, or double are the possible types. If the
target_type is tag, this parameter may not be specified.public void setTargetFormat(TargetFormatType targetFormat)
public LogsSchemaRemapper type(LogsSchemaRemapperType type)
public LogsSchemaRemapperType getType()
public void setType(LogsSchemaRemapperType type)
public LogsSchemaRemapper putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.