primaryMotivation
Initializes the optional value
primaryMotivation to primaryMotivation.- Parameters:
primaryMotivation- The value for primaryMotivation- Returns:
thisbuilder for chained invocation
ThreatActorThreatActor.
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.
final ThreatActor.Builderaliases set.final ThreatActor.BuilderaddAliases(String... elements) aliases set.final ThreatActor.BuilderaddAllAliases(Iterable<String> elements) aliases set.final ThreatActor.BuilderaddAllExternalReferences(Iterable<? extends ExternalReferenceType> elements) externalReferences set.final ThreatActor.BuilderaddAllGoals(Iterable<String> elements) goals set.final ThreatActor.BuilderaddAllGranularMarkings(Iterable<? extends GranularMarkingDm> elements) granularMarkings set.final ThreatActor.BuilderaddAllLabels(Iterable<String> elements) labels set.final ThreatActor.BuilderaddAllObjectMarkingRefs(Iterable<? extends MarkingDefinitionDm> elements) objectMarkingRefs set.final ThreatActor.BuilderaddAllPersonalMotivations(Iterable<String> elements) personalMotivations set.final ThreatActor.BuilderaddAllRelationships(Iterable<? extends RelationshipSro> elements) relationships set.final ThreatActor.BuilderaddAllRoles(Iterable<String> elements) roles set.final ThreatActor.BuilderaddAllSecondaryMotivations(Iterable<String> elements) secondaryMotivations set.final ThreatActor.BuilderexternalReferences set.final ThreatActor.BuilderaddExternalReferences(ExternalReferenceType... elements) externalReferences set.final ThreatActor.Buildergoals set.final ThreatActor.Buildergoals set.final ThreatActor.BuilderaddGranularMarking(GranularMarkingDm element) granularMarkings set.final ThreatActor.BuilderaddGranularMarkings(GranularMarkingDm... elements) granularMarkings set.final ThreatActor.Builderlabels set.final ThreatActor.Builderlabels set.final ThreatActor.BuilderaddObjectMarkingRef(MarkingDefinitionDm element) objectMarkingRefs set.final ThreatActor.BuilderaddObjectMarkingRefs(MarkingDefinitionDm... elements) objectMarkingRefs set.final ThreatActor.BuilderaddPersonalMotivation(String element) personalMotivations set.final ThreatActor.BuilderaddPersonalMotivations(String... elements) personalMotivations set.final ThreatActor.BuilderaddRelationship(RelationshipSro element) relationships set.final ThreatActor.BuilderaddRelationships(RelationshipSro... elements) relationships set.final ThreatActor.Builderroles set.final ThreatActor.Builderroles set.final ThreatActor.BuilderaddSecondaryMotivation(String element) secondaryMotivations set.final ThreatActor.BuilderaddSecondaryMotivations(String... elements) secondaryMotivations set.final ThreatActor.Builderaliases set.build()ThreatActor.final ThreatActor.Buildercreated(StixInstant created) created attribute.final ThreatActor.BuildercreatedByRef(Optional<? extends IdentitySdo> createdByRef) createdByRef to createdByRef.final ThreatActor.BuildercreatedByRef(IdentitySdo createdByRef) createdByRef to createdByRef.final ThreatActor.BuildercustomProperties(Map<String,? extends Object> entries) customProperties map.final ThreatActor.Builderdescription(String description) description to description.final ThreatActor.Builderdescription(Optional<String> description) description to description.final ThreatActor.BuilderexternalReferences(Iterable<? extends ExternalReferenceType> elements) externalReferences set.final ThreatActor.Builderfrom(BundleableObject instance) security.whisper.javastix.bundle.BundleableObject instance.final ThreatActor.Builderfrom(StixCommonProperties instance) security.whisper.javastix.common.StixCommonProperties instance.final ThreatActor.Builderfrom(StixCustomProperties instance) security.whisper.javastix.common.StixCustomProperties instance.final ThreatActor.Builderfrom(StixLabels instance) security.whisper.javastix.common.StixLabels instance.final ThreatActor.Builderfrom(StixModified instance) security.whisper.javastix.common.StixModified instance.final ThreatActor.Builderfrom(StixRevoked instance) security.whisper.javastix.common.StixRevoked instance.final ThreatActor.Builderfrom(DomainObject instance) security.whisper.javastix.sdo.DomainObject instance.final ThreatActor.Builderfrom(ThreatActorSdo instance) security.whisper.javastix.sdo.objects.ThreatActorSdo instance.final ThreatActor.Buildergoals set.final ThreatActor.BuildergranularMarkings(Iterable<? extends GranularMarkingDm> elements) granularMarkings set.final ThreatActor.Builderhydrated(boolean hydrated) hydrated attribute.final ThreatActor.Builderid attribute.final ThreatActor.Builderlabels set.final ThreatActor.Builderlang to lang.final ThreatActor.Builderlang to lang.final ThreatActor.Buildermodified(StixInstant modified) modified attribute.final ThreatActor.Buildername attribute.final ThreatActor.BuilderobjectMarkingRefs(Iterable<? extends MarkingDefinitionDm> elements) objectMarkingRefs set.final ThreatActor.BuilderpersonalMotivations(Iterable<String> elements) personalMotivations set.final ThreatActor.BuilderprimaryMotivation(String primaryMotivation) primaryMotivation to primaryMotivation.final ThreatActor.BuilderprimaryMotivation(Optional<String> primaryMotivation) primaryMotivation to primaryMotivation.final ThreatActor.BuilderputAllCustomProperties(Map<String,? extends Object> entries) customProperties map.final ThreatActor.BuilderputCustomProperty(String key,
Object value) customProperties map.final ThreatActor.BuilderputCustomProperty(Map.Entry<String,? extends Object> entry) customProperties map.final ThreatActor.Builderrelationships(Iterable<? extends RelationshipSro> elements) relationships set.final ThreatActor.BuilderresourceLevel(String resourceLevel) resourceLevel to resourceLevel.final ThreatActor.BuilderresourceLevel(Optional<String> resourceLevel) resourceLevel to resourceLevel.final ThreatActor.Builderrevoked(StixBoolean revoked) revoked attribute.final ThreatActor.Builderroles set.final ThreatActor.BuildersecondaryMotivations(Iterable<String> elements) secondaryMotivations set.final ThreatActor.Buildersophistication(String sophistication) sophistication to sophistication.final ThreatActor.Buildersophistication(Optional<String> sophistication) sophistication to sophistication.final ThreatActor.Buildertype attribute.security.whisper.javastix.bundle.BundleableObject instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationsecurity.whisper.javastix.common.StixCommonProperties instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationsecurity.whisper.javastix.common.StixRevoked instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationsecurity.whisper.javastix.sdo.objects.ThreatActorSdo instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationsecurity.whisper.javastix.common.StixCustomProperties instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationsecurity.whisper.javastix.common.StixLabels instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationsecurity.whisper.javastix.common.StixModified instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationsecurity.whisper.javastix.sdo.DomainObject instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationlabels set.element - A labels elementthis builder for use in a chained invocationlabels set.elements - An array of labels elementsthis builder for use in a chained invocationlabels set.elements - An iterable of labels elementsthis builder for use in a chained invocationlabels set.elements - An iterable of labels elementsthis builder for use in a chained invocationname attribute.name - The value for name (can be null)this builder for use in a chained invocationdescription to description.description - The value for descriptionthis builder for chained invocationdescription to description.description - The value for descriptionthis builder for use in a chained invocationaliases set.element - A aliases elementthis builder for use in a chained invocationaliases set.elements - An array of aliases elementsthis builder for use in a chained invocationaliases set.elements - An iterable of aliases elementsthis builder for use in a chained invocationaliases set.elements - An iterable of aliases elementsthis builder for use in a chained invocationroles set.element - A roles elementthis builder for use in a chained invocationroles set.elements - An array of roles elementsthis builder for use in a chained invocationroles set.elements - An iterable of roles elementsthis builder for use in a chained invocationroles set.elements - An iterable of roles elementsthis builder for use in a chained invocationgoals set.element - A goals elementthis builder for use in a chained invocationgoals set.elements - An array of goals elementsthis builder for use in a chained invocationgoals set.elements - An iterable of goals elementsthis builder for use in a chained invocationgoals set.elements - An iterable of goals elementsthis builder for use in a chained invocationsophistication to sophistication.sophistication - The value for sophisticationthis builder for chained invocationsophistication to sophistication.sophistication - The value for sophisticationthis builder for use in a chained invocationresourceLevel to resourceLevel.resourceLevel - The value for resourceLevelthis builder for chained invocationresourceLevel to resourceLevel.resourceLevel - The value for resourceLevelthis builder for use in a chained invocationprimaryMotivation to primaryMotivation.primaryMotivation - The value for primaryMotivationthis builder for chained invocationprimaryMotivation to primaryMotivation.primaryMotivation - The value for primaryMotivationthis builder for use in a chained invocationsecondaryMotivations set.element - A secondaryMotivations elementthis builder for use in a chained invocationsecondaryMotivations set.elements - An array of secondaryMotivations elementsthis builder for use in a chained invocationsecondaryMotivations set.elements - An iterable of secondaryMotivations elementsthis builder for use in a chained invocationsecondaryMotivations set.elements - An iterable of secondaryMotivations elementsthis builder for use in a chained invocationpersonalMotivations set.element - A personalMotivations elementthis builder for use in a chained invocationpersonalMotivations set.elements - An array of personalMotivations elementsthis builder for use in a chained invocationpersonalMotivations set.elements - An iterable of personalMotivations elementsthis builder for use in a chained invocationpersonalMotivations set.elements - An iterable of personalMotivations elementsthis builder for use in a chained invocationrelationships set.element - A relationships elementthis builder for use in a chained invocationrelationships set.elements - An array of relationships elementsthis builder for use in a chained invocationrelationships set.elements - An iterable of relationships elementsthis builder for use in a chained invocationrelationships set.elements - An iterable of relationships elementsthis builder for use in a chained invocationhydrated attribute.
If not set, this attribute will have a default value as returned by the initializer of hydrated.
hydrated - The value for hydratedthis builder for use in a chained invocationtype attribute.type - The value for type (can be null)this builder for use in a chained invocationid attribute.id - The value for id (can be null)this builder for use in a chained invocationcreatedByRef to createdByRef.createdByRef - The value for createdByRefthis builder for chained invocationcreatedByRef to createdByRef.createdByRef - The value for createdByRefthis builder for use in a chained invocationcreated attribute.
If not set, this attribute will have a default value as returned by the initializer of created.
created - The value for createdthis builder for use in a chained invocationlang to lang.lang - The value for langthis builder for chained invocationlang to lang.lang - The value for langthis builder for use in a chained invocationexternalReferences set.element - A externalReferences elementthis builder for use in a chained invocationexternalReferences set.elements - An array of externalReferences elementsthis builder for use in a chained invocationexternalReferences set.elements - An iterable of externalReferences elementsthis builder for use in a chained invocationexternalReferences set.elements - An iterable of externalReferences elementsthis builder for use in a chained invocationobjectMarkingRefs set.element - A objectMarkingRefs elementthis builder for use in a chained invocationobjectMarkingRefs set.elements - An array of objectMarkingRefs elementsthis builder for use in a chained invocationobjectMarkingRefs set.elements - An iterable of objectMarkingRefs elementsthis builder for use in a chained invocationobjectMarkingRefs set.elements - An iterable of objectMarkingRefs elementsthis builder for use in a chained invocationgranularMarkings set.element - A granularMarkings elementthis builder for use in a chained invocationgranularMarkings set.elements - An array of granularMarkings elementsthis builder for use in a chained invocationgranularMarkings set.elements - An iterable of granularMarkings elementsthis builder for use in a chained invocationgranularMarkings set.elements - An iterable of granularMarkings elementsthis builder for use in a chained invocationcustomProperties map.key - The key in the customProperties mapvalue - The associated value in the customProperties mapthis builder for use in a chained invocationcustomProperties map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationcustomProperties map. Nulls are not permittedentries - The entries that will be added to the customProperties mapthis builder for use in a chained invocationcustomProperties map. Nulls are not permittedentries - The entries that will be added to the customProperties mapthis builder for use in a chained invocationmodified attribute.
If not set, this attribute will have a default value as returned by the initializer of modified.
modified - The value for modifiedthis builder for use in a chained invocationrevoked attribute.
If not set, this attribute will have a default value as returned by the initializer of revoked.
revoked - The value for revokedthis builder for use in a chained invocationThreatActor.IllegalStateException - if any required attributes are missing