Interface BundleObject

All Superinterfaces:
GenericValidation, SdoDefaultValidator, Serializable, Stix, StixCustomProperties
All Known Implementing Classes:
Bundle

bundle

A Bundle is a collection of arbitrary STIX Objects and Marking Definitions grouped together in a single container.

  • Method Details

    • getType

      @NotBlank @JsonPropertyDescription("The type property identifies the type of STIX Object (SDO, Relationship Object, etc). The value of the type field MUST be one of the types defined by a STIX Object (e.g., indicator).") @Pattern(regexp="^\\-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\\-?$") @Size(min=3, max=250) @NotBlank @Pattern(regexp="^\\-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\\-?$") @Size(min=3,max=250) String getType()
    • getId

      @NotBlank @JsonPropertyDescription("Represents identifiers across the CTI specifications. The format consists of the name of the top-level object being identified, followed by two dashes (--), followed by a UUIDv4.") @Pattern(regexp="^[a-z][a-z-]+[a-z]--[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") @NotBlank @Pattern(regexp="^[a-z][a-z-]+[a-z]--[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") String getId()
    • getSpecVersion

      @NotBlank @JsonPropertyDescription("The version of the STIX specification used to represent the content in this bundle.") @Default default @NotBlank String getSpecVersion()
    • getObjects

      @Size(min=1, message="Must have at least 1 object in bundle") @JsonPropertyDescription("Specifies a set of one or more STIX Objects.") @Size(min=1,message="Must have at least 1 object in bundle") Set<BundleableObject> getObjects()
    • toJsonString

      @Lazy default String toJsonString()