Class STIXObject

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class STIXObject extends Object
A STIX 2.1 object. Indicator objects are processed and ingested; all other STIX object types are ignored and are not included in the response counters.
  • Field Details

  • Constructor Details

    • STIXObject

      public STIXObject()
    • STIXObject

      public STIXObject(String id, String type)
  • Method Details

    • confidence

      public STIXObject confidence(Integer confidence)
    • getConfidence

      @Nullable public Integer getConfidence()
      The confidence in the correctness of the indicator, from 0 through 100. minimum: 0 maximum: 100
      Returns:
      confidence
    • setConfidence

      public void setConfidence(Integer confidence)
    • created

      public STIXObject created(OffsetDateTime created)
    • getCreated

      @Nullable public OffsetDateTime getCreated()
      The time when the object was created.
      Returns:
      created
    • setCreated

      public void setCreated(OffsetDateTime created)
    • externalReferences

      public STIXObject externalReferences(List<Map<String,Object>> externalReferences)
    • addExternalReferencesItem

      public STIXObject addExternalReferencesItem(Map<String,Object> externalReferencesItem)
    • getExternalReferences

      @Nullable public List<Map<String,Object>> getExternalReferences()
      Optional external reference metadata preserved with the indicator but not interpreted during ingestion.
      Returns:
      externalReferences
    • setExternalReferences

      public void setExternalReferences(List<Map<String,Object>> externalReferences)
    • id

      public STIXObject id(String id)
    • getId

      public String getId()
      The STIX object identifier.
      Returns:
      id
    • setId

      public void setId(String id)
    • indicatorTypes

      public STIXObject indicatorTypes(List<String> indicatorTypes)
    • addIndicatorTypesItem

      public STIXObject addIndicatorTypesItem(String indicatorTypesItem)
    • getIndicatorTypes

      @Nullable public List<String> getIndicatorTypes()
      The open vocabulary terms that categorize the indicator.
      Returns:
      indicatorTypes
    • setIndicatorTypes

      public void setIndicatorTypes(List<String> indicatorTypes)
    • killChainPhases

      public STIXObject killChainPhases(List<Map<String,Object>> killChainPhases)
    • addKillChainPhasesItem

      public STIXObject addKillChainPhasesItem(Map<String,Object> killChainPhasesItem)
    • getKillChainPhases

      @Nullable public List<Map<String,Object>> getKillChainPhases()
      Optional kill chain metadata preserved with the indicator but not interpreted during ingestion.
      Returns:
      killChainPhases
    • setKillChainPhases

      public void setKillChainPhases(List<Map<String,Object>> killChainPhases)
    • labels

      public STIXObject labels(List<String> labels)
    • addLabelsItem

      public STIXObject addLabelsItem(String labelsItem)
    • getLabels

      @Nullable public List<String> getLabels()
      Labels associated with the indicator.
      Returns:
      labels
    • setLabels

      public void setLabels(List<String> labels)
    • modified

      public STIXObject modified(OffsetDateTime modified)
    • getModified

      @Nullable public OffsetDateTime getModified()
      The time when the object was last modified.
      Returns:
      modified
    • setModified

      public void setModified(OffsetDateTime modified)
    • objectMarkingRefs

      public STIXObject objectMarkingRefs(List<String> objectMarkingRefs)
    • addObjectMarkingRefsItem

      public STIXObject addObjectMarkingRefsItem(String objectMarkingRefsItem)
    • getObjectMarkingRefs

      @Nullable public List<String> getObjectMarkingRefs()
      References to marking definition objects that apply to the indicator.
      Returns:
      objectMarkingRefs
    • setObjectMarkingRefs

      public void setObjectMarkingRefs(List<String> objectMarkingRefs)
    • pattern

      public STIXObject pattern(String pattern)
    • getPattern

      @Nullable public String getPattern()
      The STIX pattern that identifies the observable. Present on indicator objects.
      Returns:
      pattern
    • setPattern

      public void setPattern(String pattern)
    • patternType

      public STIXObject patternType(STIXPatternType patternType)
    • getPatternType

      @Nullable public STIXPatternType getPatternType()
      The supported STIX pattern language.
      Returns:
      patternType
    • setPatternType

      public void setPatternType(STIXPatternType patternType)
    • revoked

      public STIXObject revoked(Boolean revoked)
    • getRevoked

      @Nullable public Boolean getRevoked()
      Whether the indicator has been revoked.
      Returns:
      revoked
    • setRevoked

      public void setRevoked(Boolean revoked)
    • specVersion

      public STIXObject specVersion(String specVersion)
    • getSpecVersion

      @Nullable public String getSpecVersion()
      The STIX specification version declared on the object. Objects with an unsupported version are accepted and counted in the unsupported response counter.
      Returns:
      specVersion
    • setSpecVersion

      public void setSpecVersion(String specVersion)
    • type

      public STIXObject type(String type)
    • getType

      public String getType()
      The STIX object type.
      Returns:
      type
    • setType

      public void setType(String type)
    • validFrom

      public STIXObject validFrom(OffsetDateTime validFrom)
    • getValidFrom

      @Nullable public OffsetDateTime getValidFrom()
      The time from which the indicator is considered valid. Present on indicator objects.
      Returns:
      validFrom
    • setValidFrom

      public void setValidFrom(OffsetDateTime validFrom)
    • validUntil

      public STIXObject validUntil(OffsetDateTime validUntil)
    • getValidUntil

      @Nullable public OffsetDateTime getValidUntil()
      The time until which the indicator is considered valid.
      Returns:
      validUntil
    • setValidUntil

      public void setValidUntil(OffsetDateTime validUntil)
    • putAdditionalProperty

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