Class MalwareAnalysis
java.lang.Object
security.whisper.javastix.sdo.objects.MalwareAnalysis
- All Implemented Interfaces:
Serializable,BundleableObject,Stix,StixCommonProperties,StixCustomProperties,StixLabels,StixModified,StixRevoked,StixSpecVersion,DomainObject,MalwareAnalysisSdo,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
@Redactable(useMask=false,
redactionMask="\u2588\u2588REDACTED\u2588\u2588")
public final class MalwareAnalysis
extends Object
implements MalwareAnalysisSdo
malware-analysis
A Malware Analysis captures the results of a particular analysis performed on a malware instance or family. Each result captures the analysis product (including version) that was used to analyze the malware along with the result of that analysis.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionstatic MalwareAnalysis.Builderbuilder()Creates a builder forMalwareAnalysis.static MalwareAnalysiscopyOf(MalwareAnalysisSdo instance) Creates an immutable copy of aMalwareAnalysisSdovalue.booleanThis instance is equal to all instances ofMalwareAnalysisthat 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<GranularMarkingDm> booleanDictates if the object is hydrated.getId()com.google.common.collect.ImmutableSet<String> com.google.common.collect.ImmutableSet<String> getLang()com.google.common.collect.ImmutableSet<MarkingDefinitionDm> com.google.common.collect.ImmutableSet<RelationshipSro> This is used with the SROs.Helper attribute to track the STIX Spec Version that was used for this object.getType()inthashCode()Computes a hash code from attributes:product,version,hostVmRef,operatingSystemRef,installedSoftwareRefs,configurationVersion,module,analysisEngineVersion,analysisDefinitionVersion,submitted,analysisStarted,analysisEnded,avResult,analysisScoRefs,sampleRef,relationships,hydrated,type,id,createdByRef,created,lang,externalReferences,objectMarkingRefs,granularMarkings,customProperties,labels,modified,revoked.toString()Prints the immutable valueMalwareAnalysiswith attribute values.final MalwareAnalysisCopy the current immutable object by setting a present value for the optionalanalysisDefinitionVersionattribute.final MalwareAnalysiswithAnalysisDefinitionVersion(Optional<String> optional) Copy the current immutable object by setting an optional value for theanalysisDefinitionVersionattribute.final MalwareAnalysiswithAnalysisEnded(Optional<? extends StixInstant> optional) Copy the current immutable object by setting an optional value for theanalysisEndedattribute.final MalwareAnalysiswithAnalysisEnded(StixInstant value) Copy the current immutable object by setting a present value for the optionalanalysisEndedattribute.final MalwareAnalysiswithAnalysisEngineVersion(String value) Copy the current immutable object by setting a present value for the optionalanalysisEngineVersionattribute.final MalwareAnalysiswithAnalysisEngineVersion(Optional<String> optional) Copy the current immutable object by setting an optional value for theanalysisEngineVersionattribute.final MalwareAnalysiswithAnalysisScoRefs(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofanalysisScoRefs.final MalwareAnalysiswithAnalysisScoRefs(String... elements) Copy the current immutable object with elements that replace the content ofanalysisScoRefs.final MalwareAnalysiswithAnalysisStarted(Optional<? extends StixInstant> optional) Copy the current immutable object by setting an optional value for theanalysisStartedattribute.final MalwareAnalysiswithAnalysisStarted(StixInstant value) Copy the current immutable object by setting a present value for the optionalanalysisStartedattribute.final MalwareAnalysiswithAvResult(String value) Copy the current immutable object by setting a present value for the optionalavResultattribute.final MalwareAnalysiswithAvResult(Optional<String> optional) Copy the current immutable object by setting an optional value for theavResultattribute.final MalwareAnalysiswithConfigurationVersion(String value) Copy the current immutable object by setting a present value for the optionalconfigurationVersionattribute.final MalwareAnalysiswithConfigurationVersion(Optional<String> optional) Copy the current immutable object by setting an optional value for theconfigurationVersionattribute.final MalwareAnalysiswithCreated(StixInstant value) Copy the current immutable object by setting a value for thecreatedattribute.final MalwareAnalysiswithCreatedByRef(Optional<? extends IdentitySdo> optional) Copy the current immutable object by setting an optional value for thecreatedByRefattribute.final MalwareAnalysiswithCreatedByRef(IdentitySdo value) Copy the current immutable object by setting a present value for the optionalcreatedByRefattribute.final MalwareAnalysiswithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final MalwareAnalysiswithExternalReferences(Iterable<? extends ExternalReferenceType> elements) Copy the current immutable object with elements that replace the content ofexternalReferences.final MalwareAnalysiswithExternalReferences(ExternalReferenceType... elements) Copy the current immutable object with elements that replace the content ofexternalReferences.final MalwareAnalysiswithGranularMarkings(Iterable<? extends GranularMarkingDm> elements) Copy the current immutable object with elements that replace the content ofgranularMarkings.final MalwareAnalysiswithGranularMarkings(GranularMarkingDm... elements) Copy the current immutable object with elements that replace the content ofgranularMarkings.final MalwareAnalysiswithHostVmRef(String value) Copy the current immutable object by setting a present value for the optionalhostVmRefattribute.final MalwareAnalysiswithHostVmRef(Optional<String> optional) Copy the current immutable object by setting an optional value for thehostVmRefattribute.final MalwareAnalysiswithHydrated(boolean value) Copy the current immutable object by setting a value for thehydratedattribute.final MalwareAnalysisCopy the current immutable object by setting a value for theidattribute.final MalwareAnalysiswithInstalledSoftwareRefs(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofinstalledSoftwareRefs.final MalwareAnalysiswithInstalledSoftwareRefs(String... elements) Copy the current immutable object with elements that replace the content ofinstalledSoftwareRefs.final MalwareAnalysiswithLabels(Iterable<String> elements) Copy the current immutable object with elements that replace the content oflabels.final MalwareAnalysiswithLabels(String... elements) Copy the current immutable object with elements that replace the content oflabels.final MalwareAnalysisCopy the current immutable object by setting a present value for the optionallangattribute.final MalwareAnalysisCopy the current immutable object by setting an optional value for thelangattribute.final MalwareAnalysiswithModified(StixInstant value) Copy the current immutable object by setting a value for themodifiedattribute.final MalwareAnalysiswithModule(String value) Copy the current immutable object by setting a present value for the optionalmoduleattribute.final MalwareAnalysiswithModule(Optional<String> optional) Copy the current immutable object by setting an optional value for themoduleattribute.final MalwareAnalysiswithObjectMarkingRefs(Iterable<? extends MarkingDefinitionDm> elements) Copy the current immutable object with elements that replace the content ofobjectMarkingRefs.final MalwareAnalysiswithObjectMarkingRefs(MarkingDefinitionDm... elements) Copy the current immutable object with elements that replace the content ofobjectMarkingRefs.final MalwareAnalysiswithOperatingSystemRef(String value) Copy the current immutable object by setting a present value for the optionaloperatingSystemRefattribute.final MalwareAnalysiswithOperatingSystemRef(Optional<String> optional) Copy the current immutable object by setting an optional value for theoperatingSystemRefattribute.final MalwareAnalysiswithProduct(String value) Copy the current immutable object by setting a value for theproductattribute.final MalwareAnalysiswithRelationships(Iterable<? extends RelationshipSro> elements) Copy the current immutable object with elements that replace the content ofrelationships.final MalwareAnalysiswithRelationships(RelationshipSro... elements) Copy the current immutable object with elements that replace the content ofrelationships.final MalwareAnalysiswithRevoked(StixBoolean value) Copy the current immutable object by setting a value for therevokedattribute.final MalwareAnalysiswithSampleRef(String value) Copy the current immutable object by setting a present value for the optionalsampleRefattribute.final MalwareAnalysiswithSampleRef(Optional<String> optional) Copy the current immutable object by setting an optional value for thesampleRefattribute.final MalwareAnalysiswithSubmitted(Optional<? extends StixInstant> optional) Copy the current immutable object by setting an optional value for thesubmittedattribute.final MalwareAnalysiswithSubmitted(StixInstant value) Copy the current immutable object by setting a present value for the optionalsubmittedattribute.final MalwareAnalysisCopy the current immutable object by setting a value for thetypeattribute.final MalwareAnalysiswithVersion(String value) Copy the current immutable object by setting a present value for the optionalversionattribute.final MalwareAnalysiswithVersion(Optional<String> optional) Copy the current immutable object by setting an optional value for theversionattribute.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
-
getProduct
@JsonPropertyDescription("The name of the analysis product that was used to perform the analysis.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public String getProduct()- Specified by:
getProductin interfaceMalwareAnalysisSdo- Returns:
- The value of the
productattribute
-
getVersion
@JsonPropertyDescription("The version of the analysis product that was used to perform the analysis.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getVersion()- Specified by:
getVersionin interfaceMalwareAnalysisSdo- Returns:
- The value of the
versionattribute
-
getHostVmRef
@JsonPropertyDescription("A reference to a SCO Software object for the VM that hosted the malware during the analysis.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getHostVmRef()- Specified by:
getHostVmRefin interfaceMalwareAnalysisSdo- Returns:
- The value of the
hostVmRefattribute
-
getOperatingSystemRef
@JsonPropertyDescription("A reference to a SCO Software object for the operating system used for the analysis VM.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getOperatingSystemRef()- Specified by:
getOperatingSystemRefin interfaceMalwareAnalysisSdo- Returns:
- The value of the
operatingSystemRefattribute
-
getInstalledSoftwareRefs
@JsonPropertyDescription("A list of references to SCO Software objects for the operating system software installed on the analysis VM.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<String> getInstalledSoftwareRefs()- Specified by:
getInstalledSoftwareRefsin interfaceMalwareAnalysisSdo- Returns:
- The value of the
installedSoftwareRefsattribute
-
getConfigurationVersion
@JsonPropertyDescription("The version of the configuration used for the analysis.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getConfigurationVersion()- Specified by:
getConfigurationVersionin interfaceMalwareAnalysisSdo- Returns:
- The value of the
configurationVersionattribute
-
getModule
@JsonPropertyDescription("The name of the specific analysis module that was used, if different from the product.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getModule()- Specified by:
getModulein interfaceMalwareAnalysisSdo- Returns:
- The value of the
moduleattribute
-
getAnalysisEngineVersion
@JsonPropertyDescription("The version of the analysis engine or runtime environment.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getAnalysisEngineVersion()- Specified by:
getAnalysisEngineVersionin interfaceMalwareAnalysisSdo- Returns:
- The value of the
analysisEngineVersionattribute
-
getAnalysisDefinitionVersion
@JsonPropertyDescription("The version of the analysis definitions used (e.g., virus definition version).") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getAnalysisDefinitionVersion()- Specified by:
getAnalysisDefinitionVersionin interfaceMalwareAnalysisSdo- Returns:
- The value of the
analysisDefinitionVersionattribute
-
getSubmitted
@JsonPropertyDescription("The date and time that the malware sample was submitted for analysis.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<StixInstant> getSubmitted()- Specified by:
getSubmittedin interfaceMalwareAnalysisSdo- Returns:
- The value of the
submittedattribute
-
getAnalysisStarted
@JsonPropertyDescription("The date and time that the malware analysis started.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<StixInstant> getAnalysisStarted()- Specified by:
getAnalysisStartedin interfaceMalwareAnalysisSdo- Returns:
- The value of the
analysisStartedattribute
-
getAnalysisEnded
@JsonPropertyDescription("The date and time that the malware analysis ended.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<StixInstant> getAnalysisEnded()- Specified by:
getAnalysisEndedin interfaceMalwareAnalysisSdo- Returns:
- The value of the
analysisEndedattribute
-
getAvResult
@JsonPropertyDescription("The result of the anti-virus analysis. Open vocabulary - malware-av-result-ov") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getAvResult()- Specified by:
getAvResultin interfaceMalwareAnalysisSdo- Returns:
- The value of the
avResultattribute
-
getAnalysisScoRefs
@JsonPropertyDescription("A list of references to SCOs that were captured during the analysis process.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<String> getAnalysisScoRefs()- Specified by:
getAnalysisScoRefsin interfaceMalwareAnalysisSdo- Returns:
- The value of the
analysisScoRefsattribute
-
getSampleRef
@JsonPropertyDescription("A reference to the SCO file, malware or artifact object that was analyzed.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public Optional<String> getSampleRef()- Specified by:
getSampleRefin interfaceMalwareAnalysisSdo- Returns:
- The value of the
sampleRefattribute
-
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>
-
getLabels
@JsonPropertyDescription("The labels property specifies a set of classifications.") @Redactable(useMask=false, redactionMask="\u2588\u2588REDACTED\u2588\u2588") public com.google.common.collect.ImmutableSet<String> getLabels()- Specified by:
getLabelsin interfaceStixLabels- Returns:
- The value of the
labelsattribute
-
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
-
withProduct
Copy the current immutable object by setting a value for theproductattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for product (can benull)- Returns:
- A modified copy of the
thisobject
-
withVersion
Copy the current immutable object by setting a present value for the optionalversionattribute.- Parameters:
value- The value for version- Returns:
- A modified copy of
thisobject
-
withVersion
Copy the current immutable object by setting an optional value for theversionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for version- Returns:
- A modified copy of
thisobject
-
withHostVmRef
Copy the current immutable object by setting a present value for the optionalhostVmRefattribute.- Parameters:
value- The value for hostVmRef- Returns:
- A modified copy of
thisobject
-
withHostVmRef
Copy the current immutable object by setting an optional value for thehostVmRefattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for hostVmRef- Returns:
- A modified copy of
thisobject
-
withOperatingSystemRef
Copy the current immutable object by setting a present value for the optionaloperatingSystemRefattribute.- Parameters:
value- The value for operatingSystemRef- Returns:
- A modified copy of
thisobject
-
withOperatingSystemRef
Copy the current immutable object by setting an optional value for theoperatingSystemRefattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for operatingSystemRef- Returns:
- A modified copy of
thisobject
-
withInstalledSoftwareRefs
Copy the current immutable object with elements that replace the content ofinstalledSoftwareRefs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withInstalledSoftwareRefs
Copy the current immutable object with elements that replace the content ofinstalledSoftwareRefs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of installedSoftwareRefs elements to set- Returns:
- A modified copy of
thisobject
-
withConfigurationVersion
Copy the current immutable object by setting a present value for the optionalconfigurationVersionattribute.- Parameters:
value- The value for configurationVersion- Returns:
- A modified copy of
thisobject
-
withConfigurationVersion
Copy the current immutable object by setting an optional value for theconfigurationVersionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for configurationVersion- Returns:
- A modified copy of
thisobject
-
withModule
Copy the current immutable object by setting a present value for the optionalmoduleattribute.- Parameters:
value- The value for module- Returns:
- A modified copy of
thisobject
-
withModule
Copy the current immutable object by setting an optional value for themoduleattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for module- Returns:
- A modified copy of
thisobject
-
withAnalysisEngineVersion
Copy the current immutable object by setting a present value for the optionalanalysisEngineVersionattribute.- Parameters:
value- The value for analysisEngineVersion- Returns:
- A modified copy of
thisobject
-
withAnalysisEngineVersion
Copy the current immutable object by setting an optional value for theanalysisEngineVersionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for analysisEngineVersion- Returns:
- A modified copy of
thisobject
-
withAnalysisDefinitionVersion
Copy the current immutable object by setting a present value for the optionalanalysisDefinitionVersionattribute.- Parameters:
value- The value for analysisDefinitionVersion- Returns:
- A modified copy of
thisobject
-
withAnalysisDefinitionVersion
Copy the current immutable object by setting an optional value for theanalysisDefinitionVersionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for analysisDefinitionVersion- Returns:
- A modified copy of
thisobject
-
withSubmitted
Copy the current immutable object by setting a present value for the optionalsubmittedattribute.- Parameters:
value- The value for submitted- Returns:
- A modified copy of
thisobject
-
withSubmitted
Copy the current immutable object by setting an optional value for thesubmittedattribute. 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 submitted- Returns:
- A modified copy of
thisobject
-
withAnalysisStarted
Copy the current immutable object by setting a present value for the optionalanalysisStartedattribute.- Parameters:
value- The value for analysisStarted- Returns:
- A modified copy of
thisobject
-
withAnalysisStarted
Copy the current immutable object by setting an optional value for theanalysisStartedattribute. 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 analysisStarted- Returns:
- A modified copy of
thisobject
-
withAnalysisEnded
Copy the current immutable object by setting a present value for the optionalanalysisEndedattribute.- Parameters:
value- The value for analysisEnded- Returns:
- A modified copy of
thisobject
-
withAnalysisEnded
Copy the current immutable object by setting an optional value for theanalysisEndedattribute. 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 analysisEnded- Returns:
- A modified copy of
thisobject
-
withAvResult
Copy the current immutable object by setting a present value for the optionalavResultattribute.- Parameters:
value- The value for avResult- Returns:
- A modified copy of
thisobject
-
withAvResult
Copy the current immutable object by setting an optional value for theavResultattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for avResult- Returns:
- A modified copy of
thisobject
-
withAnalysisScoRefs
Copy the current immutable object with elements that replace the content ofanalysisScoRefs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withAnalysisScoRefs
Copy the current immutable object with elements that replace the content ofanalysisScoRefs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of analysisScoRefs elements to set- Returns:
- A modified copy of
thisobject
-
withSampleRef
Copy the current immutable object by setting a present value for the optionalsampleRefattribute.- Parameters:
value- The value for sampleRef- Returns:
- A modified copy of
thisobject
-
withSampleRef
Copy the current immutable object by setting an optional value for thesampleRefattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sampleRef- 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
public final MalwareAnalysis withExternalReferences(Iterable<? extends ExternalReferenceType> elements) 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
public final MalwareAnalysis withObjectMarkingRefs(Iterable<? extends MarkingDefinitionDm> elements) 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
-
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
-
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 ofMalwareAnalysisthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:product,version,hostVmRef,operatingSystemRef,installedSoftwareRefs,configurationVersion,module,analysisEngineVersion,analysisDefinitionVersion,submitted,analysisStarted,analysisEnded,avResult,analysisScoRefs,sampleRef,relationships,hydrated,type,id,createdByRef,created,lang,externalReferences,objectMarkingRefs,granularMarkings,customProperties,labels,modified,revoked. -
toString
Prints the immutable valueMalwareAnalysiswith 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 aMalwareAnalysisSdovalue. 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 MalwareAnalysis instance
-
builder
Creates a builder forMalwareAnalysis.- Returns:
- A new MalwareAnalysis builder
-