Class LogsArrayMapAttributeRemapper

java.lang.Object
com.datadog.api.client.v1.model.LogsArrayMapAttributeRemapper

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsArrayMapAttributeRemapper extends Object
An attribute remapper sub-processor for use inside an array-map processor. Unlike the top-level attribute remapper, is_enabled, source_type, and target_type are not supported.
  • Field Details

  • Constructor Details

    • LogsArrayMapAttributeRemapper

      public LogsArrayMapAttributeRemapper()
    • LogsArrayMapAttributeRemapper

      public LogsArrayMapAttributeRemapper(List<String> sources, String target, LogsAttributeRemapperType type)
  • Method Details

    • name

    • getName

      @Nullable public String getName()
      Name of the sub-processor.
      Returns:
      name
    • setName

      public void setName(String name)
    • overrideOnConflict

      public LogsArrayMapAttributeRemapper overrideOnConflict(Boolean overrideOnConflict)
    • getOverrideOnConflict

      @Nullable public Boolean getOverrideOnConflict()
      Override the target element if already set.
      Returns:
      overrideOnConflict
    • setOverrideOnConflict

      public void setOverrideOnConflict(Boolean overrideOnConflict)
    • preserveSource

      public LogsArrayMapAttributeRemapper preserveSource(Boolean preserveSource)
    • getPreserveSource

      @Nullable public Boolean getPreserveSource()
      Remove or preserve the remapped source element.
      Returns:
      preserveSource
    • setPreserveSource

      public void setPreserveSource(Boolean preserveSource)
    • sources

      public LogsArrayMapAttributeRemapper sources(List<String> sources)
    • addSourcesItem

      public LogsArrayMapAttributeRemapper addSourcesItem(String sourcesItem)
    • getSources

      public List<String> getSources()
      Array of source attribute paths.
      Returns:
      sources
    • setSources

      public void setSources(List<String> sources)
    • target

      public LogsArrayMapAttributeRemapper target(String target)
    • getTarget

      public String getTarget()
      Target attribute path.
      Returns:
      target
    • setTarget

      public void setTarget(String target)
    • targetFormat

      public LogsArrayMapAttributeRemapper targetFormat(TargetFormatType targetFormat)
    • getTargetFormat

      @Nullable public TargetFormatType getTargetFormat()
      If the 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.
      Returns:
      targetFormat
    • setTargetFormat

      public void setTargetFormat(TargetFormatType targetFormat)
    • type

    • getType

      public LogsAttributeRemapperType getType()
      Type of logs attribute remapper.
      Returns:
      type
    • setType

      public void setType(LogsAttributeRemapperType type)
    • putAdditionalProperty

      public LogsArrayMapAttributeRemapper putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      LogsArrayMapAttributeRemapper
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this LogsArrayMapAttributeRemapper object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object