Class MalwareAnalysis.Builder
java.lang.Object
security.whisper.javastix.sdo.objects.MalwareAnalysis.Builder
- Enclosing class:
MalwareAnalysis
Builds instances of type
MalwareAnalysis.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionfinal MalwareAnalysis.BuilderaddAllAnalysisScoRefs(Iterable<String> elements) Adds elements toanalysisScoRefsset.final MalwareAnalysis.BuilderaddAllExternalReferences(Iterable<? extends ExternalReferenceType> elements) Adds elements toexternalReferencesset.final MalwareAnalysis.BuilderaddAllGranularMarkings(Iterable<? extends GranularMarkingDm> elements) Adds elements togranularMarkingsset.final MalwareAnalysis.BuilderaddAllInstalledSoftwareRefs(Iterable<String> elements) Adds elements toinstalledSoftwareRefsset.final MalwareAnalysis.BuilderaddAllLabels(Iterable<String> elements) Adds elements tolabelsset.final MalwareAnalysis.BuilderaddAllObjectMarkingRefs(Iterable<? extends MarkingDefinitionDm> elements) Adds elements toobjectMarkingRefsset.final MalwareAnalysis.BuilderaddAllRelationships(Iterable<? extends RelationshipSro> elements) Adds elements torelationshipsset.final MalwareAnalysis.BuilderaddAnalysisScoRef(String element) Adds one element toanalysisScoRefsset.final MalwareAnalysis.BuilderaddAnalysisScoRefs(String... elements) Adds elements toanalysisScoRefsset.final MalwareAnalysis.BuilderAdds one element toexternalReferencesset.final MalwareAnalysis.BuilderaddExternalReferences(ExternalReferenceType... elements) Adds elements toexternalReferencesset.final MalwareAnalysis.BuilderaddGranularMarking(GranularMarkingDm element) Adds one element togranularMarkingsset.final MalwareAnalysis.BuilderaddGranularMarkings(GranularMarkingDm... elements) Adds elements togranularMarkingsset.final MalwareAnalysis.BuilderaddInstalledSoftwareRef(String element) Adds one element toinstalledSoftwareRefsset.final MalwareAnalysis.BuilderaddInstalledSoftwareRefs(String... elements) Adds elements toinstalledSoftwareRefsset.final MalwareAnalysis.BuilderAdds one element tolabelsset.final MalwareAnalysis.BuilderAdds elements tolabelsset.final MalwareAnalysis.BuilderaddObjectMarkingRef(MarkingDefinitionDm element) Adds one element toobjectMarkingRefsset.final MalwareAnalysis.BuilderaddObjectMarkingRefs(MarkingDefinitionDm... elements) Adds elements toobjectMarkingRefsset.final MalwareAnalysis.BuilderaddRelationship(RelationshipSro element) Adds one element torelationshipsset.final MalwareAnalysis.BuilderaddRelationships(RelationshipSro... elements) Adds elements torelationshipsset.final MalwareAnalysis.BuilderanalysisDefinitionVersion(String analysisDefinitionVersion) Initializes the optional valueanalysisDefinitionVersionto analysisDefinitionVersion.final MalwareAnalysis.BuilderanalysisDefinitionVersion(Optional<String> analysisDefinitionVersion) Initializes the optional valueanalysisDefinitionVersionto analysisDefinitionVersion.final MalwareAnalysis.BuilderanalysisEnded(Optional<? extends StixInstant> analysisEnded) Initializes the optional valueanalysisEndedto analysisEnded.final MalwareAnalysis.BuilderanalysisEnded(StixInstant analysisEnded) Initializes the optional valueanalysisEndedto analysisEnded.final MalwareAnalysis.BuilderanalysisEngineVersion(String analysisEngineVersion) Initializes the optional valueanalysisEngineVersionto analysisEngineVersion.final MalwareAnalysis.BuilderanalysisEngineVersion(Optional<String> analysisEngineVersion) Initializes the optional valueanalysisEngineVersionto analysisEngineVersion.final MalwareAnalysis.BuilderanalysisScoRefs(Iterable<String> elements) Sets or replaces all elements foranalysisScoRefsset.final MalwareAnalysis.BuilderanalysisStarted(Optional<? extends StixInstant> analysisStarted) Initializes the optional valueanalysisStartedto analysisStarted.final MalwareAnalysis.BuilderanalysisStarted(StixInstant analysisStarted) Initializes the optional valueanalysisStartedto analysisStarted.final MalwareAnalysis.BuilderInitializes the optional valueavResultto avResult.final MalwareAnalysis.BuilderInitializes the optional valueavResultto avResult.build()Builds a newMalwareAnalysis.final MalwareAnalysis.BuilderconfigurationVersion(String configurationVersion) Initializes the optional valueconfigurationVersionto configurationVersion.final MalwareAnalysis.BuilderconfigurationVersion(Optional<String> configurationVersion) Initializes the optional valueconfigurationVersionto configurationVersion.final MalwareAnalysis.Buildercreated(StixInstant created) Initializes the value for thecreatedattribute.final MalwareAnalysis.BuildercreatedByRef(Optional<? extends IdentitySdo> createdByRef) Initializes the optional valuecreatedByRefto createdByRef.final MalwareAnalysis.BuildercreatedByRef(IdentitySdo createdByRef) Initializes the optional valuecreatedByRefto createdByRef.final MalwareAnalysis.BuildercustomProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thecustomPropertiesmap.final MalwareAnalysis.BuilderexternalReferences(Iterable<? extends ExternalReferenceType> elements) Sets or replaces all elements forexternalReferencesset.final MalwareAnalysis.Builderfrom(BundleableObject instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.bundle.BundleableObjectinstance.final MalwareAnalysis.Builderfrom(StixCommonProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixCommonPropertiesinstance.final MalwareAnalysis.Builderfrom(StixCustomProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixCustomPropertiesinstance.final MalwareAnalysis.Builderfrom(StixLabels instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixLabelsinstance.final MalwareAnalysis.Builderfrom(StixModified instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixModifiedinstance.final MalwareAnalysis.Builderfrom(StixRevoked instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixRevokedinstance.final MalwareAnalysis.Builderfrom(DomainObject instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.sdo.DomainObjectinstance.final MalwareAnalysis.Builderfrom(MalwareAnalysisSdo instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.sdo.objects.MalwareAnalysisSdoinstance.final MalwareAnalysis.BuildergranularMarkings(Iterable<? extends GranularMarkingDm> elements) Sets or replaces all elements forgranularMarkingsset.final MalwareAnalysis.BuilderInitializes the optional valuehostVmRefto hostVmRef.final MalwareAnalysis.BuilderInitializes the optional valuehostVmRefto hostVmRef.final MalwareAnalysis.Builderhydrated(boolean hydrated) Initializes the value for thehydratedattribute.final MalwareAnalysis.BuilderInitializes the value for theidattribute.final MalwareAnalysis.BuilderinstalledSoftwareRefs(Iterable<String> elements) Sets or replaces all elements forinstalledSoftwareRefsset.final MalwareAnalysis.BuilderSets or replaces all elements forlabelsset.final MalwareAnalysis.BuilderInitializes the optional valuelangto lang.final MalwareAnalysis.BuilderInitializes the optional valuelangto lang.final MalwareAnalysis.Buildermodified(StixInstant modified) Initializes the value for themodifiedattribute.final MalwareAnalysis.BuilderInitializes the optional valuemoduleto module.final MalwareAnalysis.BuilderInitializes the optional valuemoduleto module.final MalwareAnalysis.BuilderobjectMarkingRefs(Iterable<? extends MarkingDefinitionDm> elements) Sets or replaces all elements forobjectMarkingRefsset.final MalwareAnalysis.BuilderoperatingSystemRef(String operatingSystemRef) Initializes the optional valueoperatingSystemRefto operatingSystemRef.final MalwareAnalysis.BuilderoperatingSystemRef(Optional<String> operatingSystemRef) Initializes the optional valueoperatingSystemRefto operatingSystemRef.final MalwareAnalysis.BuilderInitializes the value for theproductattribute.final MalwareAnalysis.BuilderputAllCustomProperties(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tocustomPropertiesmap.final MalwareAnalysis.BuilderputCustomProperty(String key, Object value) Put one entry to thecustomPropertiesmap.final MalwareAnalysis.BuilderputCustomProperty(Map.Entry<String, ? extends Object> entry) Put one entry to thecustomPropertiesmap.final MalwareAnalysis.Builderrelationships(Iterable<? extends RelationshipSro> elements) Sets or replaces all elements forrelationshipsset.final MalwareAnalysis.Builderrevoked(StixBoolean revoked) Initializes the value for therevokedattribute.final MalwareAnalysis.BuilderInitializes the optional valuesampleRefto sampleRef.final MalwareAnalysis.BuilderInitializes the optional valuesampleRefto sampleRef.final MalwareAnalysis.Buildersubmitted(Optional<? extends StixInstant> submitted) Initializes the optional valuesubmittedto submitted.final MalwareAnalysis.Buildersubmitted(StixInstant submitted) Initializes the optional valuesubmittedto submitted.final MalwareAnalysis.BuilderInitializes the value for thetypeattribute.final MalwareAnalysis.BuilderInitializes the optional valueversionto version.final MalwareAnalysis.BuilderInitializes the optional valueversionto version.
-
Method Details
-
from
Fill a builder with attribute values from the providedsecurity.whisper.javastix.bundle.BundleableObjectinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixCommonPropertiesinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixRevokedinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixCustomPropertiesinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixLabelsinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixModifiedinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedsecurity.whisper.javastix.sdo.objects.MalwareAnalysisSdoinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedsecurity.whisper.javastix.sdo.DomainObjectinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
product
@CanIgnoreReturnValue @JsonPropertyDescription("The name of the analysis product that was used to perform the analysis.") public final MalwareAnalysis.Builder product(String product) Initializes the value for theproductattribute.- Parameters:
product- The value for product (can benull)- Returns:
thisbuilder for use in a chained invocation
-
version
Initializes the optional valueversionto version.- Parameters:
version- The value for version- Returns:
thisbuilder for chained invocation
-
version
@CanIgnoreReturnValue @JsonPropertyDescription("The version of the analysis product that was used to perform the analysis.") public final MalwareAnalysis.Builder version(Optional<String> version) Initializes the optional valueversionto version.- Parameters:
version- The value for version- Returns:
thisbuilder for use in a chained invocation
-
hostVmRef
Initializes the optional valuehostVmRefto hostVmRef.- Parameters:
hostVmRef- The value for hostVmRef- Returns:
thisbuilder for chained invocation
-
hostVmRef
@CanIgnoreReturnValue @JsonPropertyDescription("A reference to a SCO Software object for the VM that hosted the malware during the analysis.") public final MalwareAnalysis.Builder hostVmRef(Optional<String> hostVmRef) Initializes the optional valuehostVmRefto hostVmRef.- Parameters:
hostVmRef- The value for hostVmRef- Returns:
thisbuilder for use in a chained invocation
-
operatingSystemRef
@CanIgnoreReturnValue public final MalwareAnalysis.Builder operatingSystemRef(String operatingSystemRef) Initializes the optional valueoperatingSystemRefto operatingSystemRef.- Parameters:
operatingSystemRef- The value for operatingSystemRef- Returns:
thisbuilder for chained invocation
-
operatingSystemRef
@CanIgnoreReturnValue @JsonPropertyDescription("A reference to a SCO Software object for the operating system used for the analysis VM.") public final MalwareAnalysis.Builder operatingSystemRef(Optional<String> operatingSystemRef) Initializes the optional valueoperatingSystemRefto operatingSystemRef.- Parameters:
operatingSystemRef- The value for operatingSystemRef- Returns:
thisbuilder for use in a chained invocation
-
addInstalledSoftwareRef
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addInstalledSoftwareRef(@Nullable String element) Adds one element toinstalledSoftwareRefsset.- Parameters:
element- A installedSoftwareRefs element- Returns:
thisbuilder for use in a chained invocation
-
addInstalledSoftwareRefs
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addInstalledSoftwareRefs(String... elements) Adds elements toinstalledSoftwareRefsset.- Parameters:
elements- An array of installedSoftwareRefs elements- Returns:
thisbuilder for use in a chained invocation
-
installedSoftwareRefs
@CanIgnoreReturnValue @JsonPropertyDescription("A list of references to SCO Software objects for the operating system software installed on the analysis VM.") public final MalwareAnalysis.Builder installedSoftwareRefs(Iterable<String> elements) Sets or replaces all elements forinstalledSoftwareRefsset.- Parameters:
elements- An iterable of installedSoftwareRefs elements- Returns:
thisbuilder for use in a chained invocation
-
addAllInstalledSoftwareRefs
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addAllInstalledSoftwareRefs(Iterable<String> elements) Adds elements toinstalledSoftwareRefsset.- Parameters:
elements- An iterable of installedSoftwareRefs elements- Returns:
thisbuilder for use in a chained invocation
-
configurationVersion
@CanIgnoreReturnValue public final MalwareAnalysis.Builder configurationVersion(String configurationVersion) Initializes the optional valueconfigurationVersionto configurationVersion.- Parameters:
configurationVersion- The value for configurationVersion- Returns:
thisbuilder for chained invocation
-
configurationVersion
@CanIgnoreReturnValue @JsonPropertyDescription("The version of the configuration used for the analysis.") public final MalwareAnalysis.Builder configurationVersion(Optional<String> configurationVersion) Initializes the optional valueconfigurationVersionto configurationVersion.- Parameters:
configurationVersion- The value for configurationVersion- Returns:
thisbuilder for use in a chained invocation
-
module
Initializes the optional valuemoduleto module.- Parameters:
module- The value for module- Returns:
thisbuilder for chained invocation
-
module
@CanIgnoreReturnValue @JsonPropertyDescription("The name of the specific analysis module that was used, if different from the product.") public final MalwareAnalysis.Builder module(Optional<String> module) Initializes the optional valuemoduleto module.- Parameters:
module- The value for module- Returns:
thisbuilder for use in a chained invocation
-
analysisEngineVersion
@CanIgnoreReturnValue public final MalwareAnalysis.Builder analysisEngineVersion(String analysisEngineVersion) Initializes the optional valueanalysisEngineVersionto analysisEngineVersion.- Parameters:
analysisEngineVersion- The value for analysisEngineVersion- Returns:
thisbuilder for chained invocation
-
analysisEngineVersion
@CanIgnoreReturnValue @JsonPropertyDescription("The version of the analysis engine or runtime environment.") public final MalwareAnalysis.Builder analysisEngineVersion(Optional<String> analysisEngineVersion) Initializes the optional valueanalysisEngineVersionto analysisEngineVersion.- Parameters:
analysisEngineVersion- The value for analysisEngineVersion- Returns:
thisbuilder for use in a chained invocation
-
analysisDefinitionVersion
@CanIgnoreReturnValue public final MalwareAnalysis.Builder analysisDefinitionVersion(String analysisDefinitionVersion) Initializes the optional valueanalysisDefinitionVersionto analysisDefinitionVersion.- Parameters:
analysisDefinitionVersion- The value for analysisDefinitionVersion- Returns:
thisbuilder for chained invocation
-
analysisDefinitionVersion
@CanIgnoreReturnValue @JsonPropertyDescription("The version of the analysis definitions used (e.g., virus definition version).") public final MalwareAnalysis.Builder analysisDefinitionVersion(Optional<String> analysisDefinitionVersion) Initializes the optional valueanalysisDefinitionVersionto analysisDefinitionVersion.- Parameters:
analysisDefinitionVersion- The value for analysisDefinitionVersion- Returns:
thisbuilder for use in a chained invocation
-
submitted
Initializes the optional valuesubmittedto submitted.- Parameters:
submitted- The value for submitted- Returns:
thisbuilder for chained invocation
-
submitted
@CanIgnoreReturnValue @JsonPropertyDescription("The date and time that the malware sample was submitted for analysis.") public final MalwareAnalysis.Builder submitted(Optional<? extends StixInstant> submitted) Initializes the optional valuesubmittedto submitted.- Parameters:
submitted- The value for submitted- Returns:
thisbuilder for use in a chained invocation
-
analysisStarted
@CanIgnoreReturnValue public final MalwareAnalysis.Builder analysisStarted(StixInstant analysisStarted) Initializes the optional valueanalysisStartedto analysisStarted.- Parameters:
analysisStarted- The value for analysisStarted- Returns:
thisbuilder for chained invocation
-
analysisStarted
@CanIgnoreReturnValue @JsonPropertyDescription("The date and time that the malware analysis started.") public final MalwareAnalysis.Builder analysisStarted(Optional<? extends StixInstant> analysisStarted) Initializes the optional valueanalysisStartedto analysisStarted.- Parameters:
analysisStarted- The value for analysisStarted- Returns:
thisbuilder for use in a chained invocation
-
analysisEnded
Initializes the optional valueanalysisEndedto analysisEnded.- Parameters:
analysisEnded- The value for analysisEnded- Returns:
thisbuilder for chained invocation
-
analysisEnded
@CanIgnoreReturnValue @JsonPropertyDescription("The date and time that the malware analysis ended.") public final MalwareAnalysis.Builder analysisEnded(Optional<? extends StixInstant> analysisEnded) Initializes the optional valueanalysisEndedto analysisEnded.- Parameters:
analysisEnded- The value for analysisEnded- Returns:
thisbuilder for use in a chained invocation
-
avResult
Initializes the optional valueavResultto avResult.- Parameters:
avResult- The value for avResult- Returns:
thisbuilder for chained invocation
-
avResult
@CanIgnoreReturnValue @JsonPropertyDescription("The result of the anti-virus analysis. Open vocabulary - malware-av-result-ov") public final MalwareAnalysis.Builder avResult(Optional<String> avResult) Initializes the optional valueavResultto avResult.- Parameters:
avResult- The value for avResult- Returns:
thisbuilder for use in a chained invocation
-
addAnalysisScoRef
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addAnalysisScoRef(@Nullable String element) Adds one element toanalysisScoRefsset.- Parameters:
element- A analysisScoRefs element- Returns:
thisbuilder for use in a chained invocation
-
addAnalysisScoRefs
Adds elements toanalysisScoRefsset.- Parameters:
elements- An array of analysisScoRefs elements- Returns:
thisbuilder for use in a chained invocation
-
analysisScoRefs
@CanIgnoreReturnValue @JsonPropertyDescription("A list of references to SCOs that were captured during the analysis process.") public final MalwareAnalysis.Builder analysisScoRefs(Iterable<String> elements) Sets or replaces all elements foranalysisScoRefsset.- Parameters:
elements- An iterable of analysisScoRefs elements- Returns:
thisbuilder for use in a chained invocation
-
addAllAnalysisScoRefs
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addAllAnalysisScoRefs(Iterable<String> elements) Adds elements toanalysisScoRefsset.- Parameters:
elements- An iterable of analysisScoRefs elements- Returns:
thisbuilder for use in a chained invocation
-
sampleRef
Initializes the optional valuesampleRefto sampleRef.- Parameters:
sampleRef- The value for sampleRef- Returns:
thisbuilder for chained invocation
-
sampleRef
@CanIgnoreReturnValue @JsonPropertyDescription("A reference to the SCO file, malware or artifact object that was analyzed.") public final MalwareAnalysis.Builder sampleRef(Optional<String> sampleRef) Initializes the optional valuesampleRefto sampleRef.- Parameters:
sampleRef- The value for sampleRef- Returns:
thisbuilder for use in a chained invocation
-
addRelationship
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addRelationship(@Nullable RelationshipSro element) Adds one element torelationshipsset.- Parameters:
element- A relationships element- Returns:
thisbuilder for use in a chained invocation
-
addRelationships
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addRelationships(RelationshipSro... elements) Adds elements torelationshipsset.- Parameters:
elements- An array of relationships elements- Returns:
thisbuilder for use in a chained invocation
-
relationships
@CanIgnoreReturnValue public final MalwareAnalysis.Builder relationships(Iterable<? extends RelationshipSro> elements) Sets or replaces all elements forrelationshipsset.- Parameters:
elements- An iterable of relationships elements- Returns:
thisbuilder for use in a chained invocation
-
addAllRelationships
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addAllRelationships(Iterable<? extends RelationshipSro> elements) Adds elements torelationshipsset.- Parameters:
elements- An iterable of relationships elements- Returns:
thisbuilder for use in a chained invocation
-
hydrated
Initializes the value for thehydratedattribute.If not set, this attribute will have a default value as returned by the initializer of
hydrated.- Parameters:
hydrated- The value for hydrated- Returns:
thisbuilder for use in a chained invocation
-
type
@CanIgnoreReturnValue @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).") public final MalwareAnalysis.Builder type(String type) Initializes the value for thetypeattribute.- Parameters:
type- The value for type (can benull)- Returns:
thisbuilder for use in a chained invocation
-
id
@CanIgnoreReturnValue @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.") public final MalwareAnalysis.Builder id(String id) Initializes the value for theidattribute.- Parameters:
id- The value for id (can benull)- Returns:
thisbuilder for use in a chained invocation
-
createdByRef
Initializes the optional valuecreatedByRefto createdByRef.- Parameters:
createdByRef- The value for createdByRef- Returns:
thisbuilder for chained invocation
-
createdByRef
@CanIgnoreReturnValue @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.") public final MalwareAnalysis.Builder createdByRef(Optional<? extends IdentitySdo> createdByRef) Initializes the optional valuecreatedByRefto createdByRef.- Parameters:
createdByRef- The value for createdByRef- Returns:
thisbuilder for use in a chained invocation
-
created
@CanIgnoreReturnValue @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.") public final MalwareAnalysis.Builder created(StixInstant created) Initializes the value for thecreatedattribute.If not set, this attribute will have a default value as returned by the initializer of
created.- Parameters:
created- The value for created- Returns:
thisbuilder for use in a chained invocation
-
lang
Initializes the optional valuelangto lang.- Parameters:
lang- The value for lang- Returns:
thisbuilder for chained invocation
-
lang
@CanIgnoreReturnValue @JsonPropertyDescription("Identifies the language of the text content in this object using ISO 639-2 language codes.") public final MalwareAnalysis.Builder lang(Optional<String> lang) Initializes the optional valuelangto lang.- Parameters:
lang- The value for lang- Returns:
thisbuilder for use in a chained invocation
-
addExternalReference
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addExternalReference(@Nullable ExternalReferenceType element) Adds one element toexternalReferencesset.- Parameters:
element- A externalReferences element- Returns:
thisbuilder for use in a chained invocation
-
addExternalReferences
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addExternalReferences(ExternalReferenceType... elements) Adds elements toexternalReferencesset.- Parameters:
elements- An array of externalReferences elements- Returns:
thisbuilder for use in a chained invocation
-
externalReferences
@CanIgnoreReturnValue @JsonPropertyDescription("A list of external references which refers to non-STIX information.") public final MalwareAnalysis.Builder externalReferences(Iterable<? extends ExternalReferenceType> elements) Sets or replaces all elements forexternalReferencesset.- Parameters:
elements- An iterable of externalReferences elements- Returns:
thisbuilder for use in a chained invocation
-
addAllExternalReferences
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addAllExternalReferences(Iterable<? extends ExternalReferenceType> elements) Adds elements toexternalReferencesset.- Parameters:
elements- An iterable of externalReferences elements- Returns:
thisbuilder for use in a chained invocation
-
addObjectMarkingRef
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addObjectMarkingRef(@Nullable MarkingDefinitionDm element) Adds one element toobjectMarkingRefsset.- Parameters:
element- A objectMarkingRefs element- Returns:
thisbuilder for use in a chained invocation
-
addObjectMarkingRefs
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addObjectMarkingRefs(MarkingDefinitionDm... elements) Adds elements toobjectMarkingRefsset.- Parameters:
elements- An array of objectMarkingRefs elements- Returns:
thisbuilder for use in a chained invocation
-
objectMarkingRefs
@CanIgnoreReturnValue @JsonPropertyDescription("The list of marking-definition objects to be applied to this object.") public final MalwareAnalysis.Builder objectMarkingRefs(Iterable<? extends MarkingDefinitionDm> elements) Sets or replaces all elements forobjectMarkingRefsset.- Parameters:
elements- An iterable of objectMarkingRefs elements- Returns:
thisbuilder for use in a chained invocation
-
addAllObjectMarkingRefs
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addAllObjectMarkingRefs(Iterable<? extends MarkingDefinitionDm> elements) Adds elements toobjectMarkingRefsset.- Parameters:
elements- An iterable of objectMarkingRefs elements- Returns:
thisbuilder for use in a chained invocation
-
addGranularMarking
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addGranularMarking(@Nullable GranularMarkingDm element) Adds one element togranularMarkingsset.- Parameters:
element- A granularMarkings element- Returns:
thisbuilder for use in a chained invocation
-
addGranularMarkings
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addGranularMarkings(GranularMarkingDm... elements) Adds elements togranularMarkingsset.- Parameters:
elements- An array of granularMarkings elements- Returns:
thisbuilder for use in a chained invocation
-
granularMarkings
@CanIgnoreReturnValue @JsonPropertyDescription("The set of granular markings that apply to this object.") public final MalwareAnalysis.Builder granularMarkings(Iterable<? extends GranularMarkingDm> elements) Sets or replaces all elements forgranularMarkingsset.- Parameters:
elements- An iterable of granularMarkings elements- Returns:
thisbuilder for use in a chained invocation
-
addAllGranularMarkings
@CanIgnoreReturnValue public final MalwareAnalysis.Builder addAllGranularMarkings(Iterable<? extends GranularMarkingDm> elements) Adds elements togranularMarkingsset.- Parameters:
elements- An iterable of granularMarkings elements- Returns:
thisbuilder for use in a chained invocation
-
putCustomProperty
@CanIgnoreReturnValue public final MalwareAnalysis.Builder putCustomProperty(String key, Object value) Put one entry to thecustomPropertiesmap.- Parameters:
key- The key in the customProperties mapvalue- The associated value in the customProperties map- Returns:
thisbuilder for use in a chained invocation
-
putCustomProperty
@CanIgnoreReturnValue public final MalwareAnalysis.Builder putCustomProperty(Map.Entry<String, ? extends Object> entry) Put one entry to thecustomPropertiesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
customProperties
@CanIgnoreReturnValue public final MalwareAnalysis.Builder customProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thecustomPropertiesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the customProperties map- Returns:
thisbuilder for use in a chained invocation
-
putAllCustomProperties
@CanIgnoreReturnValue public final MalwareAnalysis.Builder putAllCustomProperties(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tocustomPropertiesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the customProperties map- Returns:
thisbuilder for use in a chained invocation
-
addLabel
Adds one element tolabelsset.- Parameters:
element- A labels element- Returns:
thisbuilder for use in a chained invocation
-
addLabels
Adds elements tolabelsset.- Parameters:
elements- An array of labels elements- Returns:
thisbuilder for use in a chained invocation
-
labels
@CanIgnoreReturnValue @JsonPropertyDescription("The labels property specifies a set of classifications.") public final MalwareAnalysis.Builder labels(Iterable<String> elements) Sets or replaces all elements forlabelsset.- Parameters:
elements- An iterable of labels elements- Returns:
thisbuilder for use in a chained invocation
-
addAllLabels
Adds elements tolabelsset.- Parameters:
elements- An iterable of labels elements- Returns:
thisbuilder for use in a chained invocation
-
modified
@CanIgnoreReturnValue @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.") public final MalwareAnalysis.Builder modified(StixInstant modified) Initializes the value for themodifiedattribute.If not set, this attribute will have a default value as returned by the initializer of
modified.- Parameters:
modified- The value for modified- Returns:
thisbuilder for use in a chained invocation
-
revoked
@CanIgnoreReturnValue @JsonPropertyDescription("The revoked property indicates whether the object has been revoked.") public final MalwareAnalysis.Builder revoked(StixBoolean revoked) Initializes the value for therevokedattribute.If not set, this attribute will have a default value as returned by the initializer of
revoked.- Parameters:
revoked- The value for revoked- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newMalwareAnalysis.- Returns:
- An immutable instance of MalwareAnalysis
- Throws:
IllegalStateException- if any required attributes are missing
-