Class CustomDestinationResponseAttributes

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

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

  • Constructor Details

    • CustomDestinationResponseAttributes

      public CustomDestinationResponseAttributes()
  • Method Details

    • enabled

      public CustomDestinationResponseAttributes enabled(Boolean 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 CustomDestinationResponseAttributes 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 CustomDestinationResponseAttributes forwardTagsRestrictionList(List<String> forwardTagsRestrictionList)
    • addForwardTagsRestrictionListItem

      public CustomDestinationResponseAttributes 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 CustomDestinationResponseAttributes 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 CustomDestinationResponseAttributes forwarderDestination(CustomDestinationResponseForwardDestination forwarderDestination)
    • getForwarderDestination

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

      public void setForwarderDestination(CustomDestinationResponseForwardDestination forwarderDestination)
    • name

    • getName

      @Nullable 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 filter. Logs matching this query are forwarded to the destination.
      Returns:
      query
    • setQuery

      public void setQuery(String query)
    • putAdditionalProperty

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