Class CustomDestinationCreateRequestAttributes

java.lang.Object
com.datadog.api.client.v2.model.CustomDestinationCreateRequestAttributes

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CustomDestinationCreateRequestAttributes extends Object
The attributes associated with the custom destination.
  • Field Details

  • Constructor Details

    • CustomDestinationCreateRequestAttributes

      public CustomDestinationCreateRequestAttributes()
    • CustomDestinationCreateRequestAttributes

      public CustomDestinationCreateRequestAttributes(CustomDestinationForwardDestination forwarderDestination, String name)
  • Method Details

    • enabled

    • getEnabled

      @Nullable public Boolean getEnabled()
      Whether logs matching this custom destination should be forwarded or not.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • forwardTags

      public CustomDestinationCreateRequestAttributes forwardTags(Boolean forwardTags)
    • getForwardTags

      @Nullable public Boolean getForwardTags()
      Whether tags from the forwarded logs should be forwarded or not.
      Returns:
      forwardTags
    • setForwardTags

      public void setForwardTags(Boolean forwardTags)
    • forwardTagsRestrictionList

      public CustomDestinationCreateRequestAttributes forwardTagsRestrictionList(List<String> forwardTagsRestrictionList)
    • addForwardTagsRestrictionListItem

      public CustomDestinationCreateRequestAttributes addForwardTagsRestrictionListItem(String forwardTagsRestrictionListItem)
    • getForwardTagsRestrictionList

      @Nullable public List<String> getForwardTagsRestrictionList()
      List of keys of tags to be filtered.

      An empty list represents no restriction is in place and either all or no tags will be forwarded depending on forward_tags_restriction_list_type parameter.

      Returns:
      forwardTagsRestrictionList
    • setForwardTagsRestrictionList

      public void setForwardTagsRestrictionList(List<String> forwardTagsRestrictionList)
    • forwardTagsRestrictionListType

      public CustomDestinationCreateRequestAttributes forwardTagsRestrictionListType(CustomDestinationAttributeTagsRestrictionListType forwardTagsRestrictionListType)
    • getForwardTagsRestrictionListType

      @Nullable public CustomDestinationAttributeTagsRestrictionListType getForwardTagsRestrictionListType()
      How forward_tags_restriction_list parameter should be interpreted. If ALLOW_LIST, then only tags whose keys on the forwarded logs match the ones on the restriction list are forwarded.

      BLOCK_LIST works the opposite way. It does not forward the tags matching the ones on the list.

      Returns:
      forwardTagsRestrictionListType
    • setForwardTagsRestrictionListType

      public void setForwardTagsRestrictionListType(CustomDestinationAttributeTagsRestrictionListType forwardTagsRestrictionListType)
    • forwarderDestination

      public CustomDestinationCreateRequestAttributes forwarderDestination(CustomDestinationForwardDestination forwarderDestination)
    • getForwarderDestination

      public CustomDestinationForwardDestination getForwarderDestination()
      A custom destination's location to forward logs.
      Returns:
      forwarderDestination
    • setForwarderDestination

      public void setForwarderDestination(CustomDestinationForwardDestination forwarderDestination)
    • name

    • getName

      public String getName()
      The custom destination name.
      Returns:
      name
    • setName

      public void setName(String name)
    • query

    • getQuery

      @Nullable public String getQuery()
      The custom destination query and filter. Logs matching this query are forwarded to the destination.
      Returns:
      query
    • setQuery

      public void setQuery(String query)
    • putAdditionalProperty

      public CustomDestinationCreateRequestAttributes 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:
      CustomDestinationCreateRequestAttributes
    • 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 CustomDestinationCreateRequestAttributes 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