Class ThreatActor
java.lang.Object
security.whisper.javastix.sdo.objects.ThreatActor
- All Implemented Interfaces:
Serializable,BundleableObject,Stix,StixCommonProperties,StixCustomProperties,StixLabels,StixModified,StixRevoked,StixSpecVersion,DomainObject,ThreatActorSdo,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
@Redactable(useMask=false,
redactionMask="\u2588\u2588REDACTED\u2588\u2588")
public final class ThreatActor
extends Object
implements ThreatActorSdo
threat-actor
Threat Actors are actual individuals, groups, or organizations believed to be operating with malicious intent.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreatActor.Builderbuilder()Creates a builder forThreatActor.static ThreatActorcopyOf(ThreatActorSdo instance) Creates an immutable copy of aThreatActorSdovalue.booleanThis instance is equal to all instances ofThreatActorthat have equal attribute values.com.google.common.collect.ImmutableSet<String> Custom Properties for STIX Objects.com.google.common.collect.ImmutableSet<ExternalReferenceType> com.google.common.collect.ImmutableSet<String> getGoals()com.google.common.collect.ImmutableSet<GranularMarkingDm> booleanDictates if the object is hydrated.getId()com.google.common.collect.ImmutableSet<String> getLang()getName()com.google.common.collect.ImmutableSet<MarkingDefinitionDm> com.google.common.collect.ImmutableSet<String> com.google.common.collect.ImmutableSet<RelationshipSro> This is used with the SROs.com.google.common.collect.ImmutableSet<String> getRoles()com.google.common.collect.ImmutableSet<String> Helper attribute to track the STIX Spec Version that was used for this object.getType()inthashCode()Computes a hash code from attributes:labels,name,description,aliases,roles,goals,sophistication,resourceLevel,primaryMotivation,secondaryMotivations,personalMotivations,relationships,hydrated,type,id,createdByRef,created,lang,externalReferences,objectMarkingRefs,granularMarkings,customProperties,modified,revoked.toString()Prints the immutable valueThreatActorwith attribute values.final ThreatActorwithAliases(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofaliases.final ThreatActorwithAliases(String... elements) Copy the current immutable object with elements that replace the content ofaliases.final ThreatActorwithCreated(StixInstant value) Copy the current immutable object by setting a value for thecreatedattribute.final ThreatActorwithCreatedByRef(Optional<? extends IdentitySdo> optional) Copy the current immutable object by setting an optional value for thecreatedByRefattribute.final ThreatActorwithCreatedByRef(IdentitySdo value) Copy the current immutable object by setting a present value for the optionalcreatedByRefattribute.final ThreatActorwithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final ThreatActorwithDescription(String value) Copy the current immutable object by setting a present value for the optionaldescriptionattribute.final ThreatActorwithDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescriptionattribute.final ThreatActorwithExternalReferences(Iterable<? extends ExternalReferenceType> elements) Copy the current immutable object with elements that replace the content ofexternalReferences.final ThreatActorwithExternalReferences(ExternalReferenceType... elements) Copy the current immutable object with elements that replace the content ofexternalReferences.final ThreatActorCopy the current immutable object with elements that replace the content ofgoals.final ThreatActorCopy the current immutable object with elements that replace the content ofgoals.final ThreatActorwithGranularMarkings(Iterable<? extends GranularMarkingDm> elements) Copy the current immutable object with elements that replace the content ofgranularMarkings.final ThreatActorwithGranularMarkings(GranularMarkingDm... elements) Copy the current immutable object with elements that replace the content ofgranularMarkings.final ThreatActorwithHydrated(boolean value) Copy the current immutable object by setting a value for thehydratedattribute.final ThreatActorCopy the current immutable object by setting a value for theidattribute.final ThreatActorwithLabels(Iterable<String> elements) Copy the current immutable object with elements that replace the content oflabels.final ThreatActorwithLabels(String... elements) Copy the current immutable object with elements that replace the content oflabels.final ThreatActorCopy the current immutable object by setting a present value for the optionallangattribute.final ThreatActorCopy the current immutable object by setting an optional value for thelangattribute.final ThreatActorwithModified(StixInstant value) Copy the current immutable object by setting a value for themodifiedattribute.final ThreatActorCopy the current immutable object by setting a value for thenameattribute.final ThreatActorwithObjectMarkingRefs(Iterable<? extends MarkingDefinitionDm> elements) Copy the current immutable object with elements that replace the content ofobjectMarkingRefs.final ThreatActorwithObjectMarkingRefs(MarkingDefinitionDm... elements) Copy the current immutable object with elements that replace the content ofobjectMarkingRefs.final ThreatActorwithPersonalMotivations(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofpersonalMotivations.final ThreatActorwithPersonalMotivations(String... elements) Copy the current immutable object with elements that replace the content ofpersonalMotivations.final ThreatActorwithPrimaryMotivation(String value) Copy the current immutable object by setting a present value for the optionalprimaryMotivationattribute.final ThreatActorwithPrimaryMotivation(Optional<String> optional) Copy the current immutable object by setting an optional value for theprimaryMotivationattribute.final ThreatActorwithRelationships(Iterable<? extends RelationshipSro> elements) Copy the current immutable object with elements that replace the content ofrelationships.final ThreatActorwithRelationships(RelationshipSro... elements) Copy the current immutable object with elements that replace the content ofrelationships.final ThreatActorwithResourceLevel(String value) Copy the current immutable object by setting a present value for the optionalresourceLevelattribute.final ThreatActorwithResourceLevel(Optional<String> optional) Copy the current immutable object by setting an optional value for theresourceLevelattribute.final ThreatActorwithRevoked(StixBoolean value) Copy the current immutable object by setting a value for therevokedattribute.final ThreatActorCopy the current immutable object with elements that replace the content ofroles.final ThreatActorCopy the current immutable object with elements that replace the content ofroles.final ThreatActorwithSecondaryMotivations(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofsecondaryMotivations.final ThreatActorwithSecondaryMotivations(String... elements) Copy the current immutable object with elements that replace the content ofsecondaryMotivations.final ThreatActorwithSophistication(String value) Copy the current immutable object by setting a present value for the optionalsophisticationattribute.final ThreatActorwithSophistication(Optional<String> optional) Copy the current immutable object by setting an optional value for thesophisticationattribute.final ThreatActorCopy the current immutable object by setting a value for thetypeattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
validate, validateOnlyIdMethods inherited from interface security.whisper.javastix.common.StixCommonProperties
checkHydrationValidation
-
Method Details
-
getLabels
@JsonPropertyDescription("This field specifies the type of threat actor. Open Vocab - threat-actor-label-ov") @Redactable(useMask=true, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<String> getLabels()- Specified by:
getLabelsin interfaceStixLabels- Specified by:
getLabelsin interfaceThreatActorSdo- Returns:
- The value of the
labelsattribute
-
getName
@JsonPropertyDescription("A name used to identify this Threat Actor or Threat Actor group.") @Redactable(useMask=true, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public String getName()- Specified by:
getNamein interfaceThreatActorSdo- Returns:
- The value of the
nameattribute
-
getDescription
@JsonPropertyDescription("A description that provides more details and context about the Threat Actor.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getDescription()- Specified by:
getDescriptionin interfaceThreatActorSdo- Returns:
- The value of the
descriptionattribute
-
getAliases
@JsonPropertyDescription("A list of other names that this Threat Actor is believed to use.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<String> getAliases()- Specified by:
getAliasesin interfaceThreatActorSdo- Returns:
- The value of the
aliasesattribute
-
getRoles
@JsonPropertyDescription("This is a list of roles the Threat Actor plays. Open Vocab - threat-actor-role-ov") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<String> getRoles()- Specified by:
getRolesin interfaceThreatActorSdo- Returns:
- The value of the
rolesattribute
-
getGoals
@JsonPropertyDescription("The high level goals of this Threat Actor, namely, what are they trying to do.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<String> getGoals()- Specified by:
getGoalsin interfaceThreatActorSdo- Returns:
- The value of the
goalsattribute
-
getSophistication
@JsonPropertyDescription("The skill, specific knowledge, special training, or expertise a Threat Actor must have to perform the attack. Open Vocab - threat-actor-sophistication-ov") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getSophistication()- Specified by:
getSophisticationin interfaceThreatActorSdo- Returns:
- The value of the
sophisticationattribute
-
getResourceLevel
@JsonPropertyDescription("This defines the organizational level at which this Threat Actor typically works. Open Vocab - attack-resource-level-ov") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getResourceLevel()- Specified by:
getResourceLevelin interfaceThreatActorSdo- Returns:
- The value of the
resourceLevelattribute
-
getPrimaryMotivation
@JsonPropertyDescription("The primary reason, motivation, or purpose behind this Threat Actor. Open Vocab - attack-motivation-ov") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getPrimaryMotivation()- Specified by:
getPrimaryMotivationin interfaceThreatActorSdo- Returns:
- The value of the
primaryMotivationattribute
-
getSecondaryMotivations
@JsonPropertyDescription("The secondary reasons, motivations, or purposes behind this Threat Actor. Open Vocab - attack-motivation-ov") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<String> getSecondaryMotivations()- Specified by:
getSecondaryMotivationsin interfaceThreatActorSdo- Returns:
- The value of the
secondaryMotivationsattribute
-
getPersonalMotivations
@JsonPropertyDescription("The personal reasons, motivations, or purposes of the Threat Actor regardless of organizational goals. Open Vocab - attack-motivation-ov") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<String> getPersonalMotivations()- Specified by:
getPersonalMotivationsin interfaceThreatActorSdo- Returns:
- The value of the
personalMotivationsattribute
-
getRelationships
@Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<RelationshipSro> getRelationships()This is used with the SROs. The SRO interface enforces what relationships can be created. The Relationships can then be stored in the Domain object if they choose. Otherwise you would typically add these Relationship SROs that are specific to SDOs, can be grabbed during bundle creation.- Specified by:
getRelationshipsin interfaceDomainObject- Returns:
- Set of Relationship SROs
-
getHydrated
@Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public boolean getHydrated()Dictates if the object is hydrated. Hydration is defined as if the Object has only a "ID" or has been properly hydrated with the expected required fields- Specified by:
getHydratedin interfaceBundleableObject- Specified by:
getHydratedin interfaceStixCommonProperties- Returns:
- boolean
-
getType
@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).") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public String getType()- Specified by:
getTypein interfaceBundleableObject- Specified by:
getTypein interfaceStixCommonProperties- Returns:
- The value of the
typeattribute
-
getId
@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.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public String getId()- Specified by:
getIdin interfaceBundleableObject- Specified by:
getIdin interfaceStixCommonProperties- Returns:
- The value of the
idattribute
-
getCreatedByRef
@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.") @Redactable(useMask=true, redactionMask="identity--__REDACTED__") public Optional<IdentitySdo> getCreatedByRef()- Specified by:
getCreatedByRefin interfaceStixCommonProperties- Returns:
- The value of the
createdByRefattribute
-
getCreated
@JsonPropertyDescription("The created property represents the time at which the first version of this object was created. The timstamp value MUST be precise to the nearest millisecond.") @Redactable(useMask=true, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public StixInstant getCreated()- Specified by:
getCreatedin interfaceStixCommonProperties- Returns:
- The value of the
createdattribute
-
getLang
@JsonPropertyDescription("Identifies the language of the text content in this object using ISO 639-2 language codes.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getLang()- Specified by:
getLangin interfaceStixCommonProperties- Returns:
- The value of the
langattribute
-
getExternalReferences
@JsonPropertyDescription("A list of external references which refers to non-STIX information.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<ExternalReferenceType> getExternalReferences()- Specified by:
getExternalReferencesin interfaceStixCommonProperties- Returns:
- The value of the
externalReferencesattribute
-
getObjectMarkingRefs
@JsonPropertyDescription("The list of marking-definition objects to be applied to this object.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<MarkingDefinitionDm> getObjectMarkingRefs()- Specified by:
getObjectMarkingRefsin interfaceBundleableObject- Specified by:
getObjectMarkingRefsin interfaceStixCommonProperties- Returns:
- The value of the
objectMarkingRefsattribute
-
getGranularMarkings
@JsonPropertyDescription("The set of granular markings that apply to this object.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<GranularMarkingDm> getGranularMarkings()- Specified by:
getGranularMarkingsin interfaceBundleableObject- Specified by:
getGranularMarkingsin interfaceStixCommonProperties- Returns:
- The value of the
granularMarkingsattribute
-
getCustomProperties
@Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableMap<String,Object> getCustomProperties()Custom Properties for STIX Objects. Any object that supports custom properties will have a validation of the custom property prefix (typically "x_"). If the additional property in the JSON does not meet the StartsWith condition, then the JSON will be rejected.- Specified by:
getCustomPropertiesin interfaceStixCustomProperties- Returns:
- Map of custom properties
Map<String, Object>
-
getModified
@JsonPropertyDescription("The modified property represents the time that this particular version of the object was created. The timstamp value MUST be precise to the nearest millisecond.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public StixInstant getModified()- Specified by:
getModifiedin interfaceStixModified- Returns:
- The value of the
modifiedattribute
-
getRevoked
@JsonPropertyDescription("The revoked property indicates whether the object has been revoked.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public StixBoolean getRevoked()- Specified by:
getRevokedin interfaceStixRevoked- Returns:
- The value of the
revokedattribute
-
withLabels
Copy the current immutable object with elements that replace the content oflabels.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLabels
Copy the current immutable object with elements that replace the content oflabels. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of labels elements to set- Returns:
- A modified copy of
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy of the
thisobject
-
withDescription
Copy the current immutable object by setting a present value for the optionaldescriptionattribute.- Parameters:
value- The value for description- Returns:
- A modified copy of
thisobject
-
withDescription
Copy the current immutable object by setting an optional value for thedescriptionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for description- Returns:
- A modified copy of
thisobject
-
withAliases
Copy the current immutable object with elements that replace the content ofaliases.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withAliases
Copy the current immutable object with elements that replace the content ofaliases. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of aliases elements to set- Returns:
- A modified copy of
thisobject
-
withRoles
Copy the current immutable object with elements that replace the content ofroles.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRoles
Copy the current immutable object with elements that replace the content ofroles. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of roles elements to set- Returns:
- A modified copy of
thisobject
-
withGoals
Copy the current immutable object with elements that replace the content ofgoals.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withGoals
Copy the current immutable object with elements that replace the content ofgoals. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of goals elements to set- Returns:
- A modified copy of
thisobject
-
withSophistication
Copy the current immutable object by setting a present value for the optionalsophisticationattribute.- Parameters:
value- The value for sophistication- Returns:
- A modified copy of
thisobject
-
withSophistication
Copy the current immutable object by setting an optional value for thesophisticationattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sophistication- Returns:
- A modified copy of
thisobject
-
withResourceLevel
Copy the current immutable object by setting a present value for the optionalresourceLevelattribute.- Parameters:
value- The value for resourceLevel- Returns:
- A modified copy of
thisobject
-
withResourceLevel
Copy the current immutable object by setting an optional value for theresourceLevelattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for resourceLevel- Returns:
- A modified copy of
thisobject
-
withPrimaryMotivation
Copy the current immutable object by setting a present value for the optionalprimaryMotivationattribute.- Parameters:
value- The value for primaryMotivation- Returns:
- A modified copy of
thisobject
-
withPrimaryMotivation
Copy the current immutable object by setting an optional value for theprimaryMotivationattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for primaryMotivation- Returns:
- A modified copy of
thisobject
-
withSecondaryMotivations
Copy the current immutable object with elements that replace the content ofsecondaryMotivations.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSecondaryMotivations
Copy the current immutable object with elements that replace the content ofsecondaryMotivations. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of secondaryMotivations elements to set- Returns:
- A modified copy of
thisobject
-
withPersonalMotivations
Copy the current immutable object with elements that replace the content ofpersonalMotivations.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withPersonalMotivations
Copy the current immutable object with elements that replace the content ofpersonalMotivations. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of personalMotivations elements to set- Returns:
- A modified copy of
thisobject
-
withRelationships
Copy the current immutable object with elements that replace the content ofrelationships.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRelationships
Copy the current immutable object with elements that replace the content ofrelationships. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of relationships elements to set- Returns:
- A modified copy of
thisobject
-
withHydrated
Copy the current immutable object by setting a value for thehydratedattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hydrated- Returns:
- A modified copy of the
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type (can benull)- Returns:
- A modified copy of the
thisobject
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id (can benull)- Returns:
- A modified copy of the
thisobject
-
withCreatedByRef
Copy the current immutable object by setting a present value for the optionalcreatedByRefattribute.- Parameters:
value- The value for createdByRef- Returns:
- A modified copy of
thisobject
-
withCreatedByRef
Copy the current immutable object by setting an optional value for thecreatedByRefattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for createdByRef- Returns:
- A modified copy of
thisobject
-
withCreated
Copy the current immutable object by setting a value for thecreatedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for created- Returns:
- A modified copy of the
thisobject
-
withLang
Copy the current immutable object by setting a present value for the optionallangattribute.- Parameters:
value- The value for lang- Returns:
- A modified copy of
thisobject
-
withLang
Copy the current immutable object by setting an optional value for thelangattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for lang- Returns:
- A modified copy of
thisobject
-
withExternalReferences
Copy the current immutable object with elements that replace the content ofexternalReferences.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withExternalReferences
Copy the current immutable object with elements that replace the content ofexternalReferences. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of externalReferences elements to set- Returns:
- A modified copy of
thisobject
-
withObjectMarkingRefs
Copy the current immutable object with elements that replace the content ofobjectMarkingRefs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withObjectMarkingRefs
Copy the current immutable object with elements that replace the content ofobjectMarkingRefs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of objectMarkingRefs elements to set- Returns:
- A modified copy of
thisobject
-
withGranularMarkings
Copy the current immutable object with elements that replace the content ofgranularMarkings.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withGranularMarkings
Copy the current immutable object with elements that replace the content ofgranularMarkings. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of granularMarkings elements to set- Returns:
- A modified copy of
thisobject
-
withCustomProperties
Copy the current immutable object by replacing thecustomPropertiesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the customProperties map- Returns:
- A modified copy of
thisobject
-
withModified
Copy the current immutable object by setting a value for themodifiedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for modified- Returns:
- A modified copy of the
thisobject
-
withRevoked
Copy the current immutable object by setting a value for therevokedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for revoked- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofThreatActorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:labels,name,description,aliases,roles,goals,sophistication,resourceLevel,primaryMotivation,secondaryMotivations,personalMotivations,relationships,hydrated,type,id,createdByRef,created,lang,externalReferences,objectMarkingRefs,granularMarkings,customProperties,modified,revoked. -
toString
Prints the immutable valueThreatActorwith attribute values. -
toJsonString
@Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public String toJsonString()Returns a lazily initialized value of the
toJsonStringattribute. Initialized once and only once and stored for subsequent access with proper synchronization.- Specified by:
toJsonStringin interfaceBundleableObject- Specified by:
toJsonStringin interfaceStixCommonProperties- Returns:
- A lazily initialized value of the
toJsonStringattribute
-
getSpecVersion
@Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public String getSpecVersion()Helper attribute to track the STIX Spec Version that was used for this object.Returns a lazily initialized value of the
specVersionattribute. Initialized once and only once and stored for subsequent access with proper synchronization.- Specified by:
getSpecVersionin interfaceStixSpecVersion- Returns:
- A lazily initialized value of the
specVersionattribute
-
copyOf
Creates an immutable copy of aThreatActorSdovalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ThreatActor instance
-
builder
Creates a builder forThreatActor.- Returns:
- A new ThreatActor builder
-