Class KillChainPhase
java.lang.Object
security.whisper.javastix.sdo.types.KillChainPhase
- All Implemented Interfaces:
Serializable,StixCustomProperties,KillChainPhaseType,GenericValidation,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class KillChainPhase
extends Object
implements KillChainPhaseType
kill-chain-phase
The kill-chain-phase represents a phase in a kill chain.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface security.whisper.javastix.sdo.types.KillChainPhaseType
KillChainPhaseType.LockheedMartinKillChain -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionstatic KillChainPhase.Builderbuilder()Creates a builder forKillChainPhase.static KillChainPhasecopyOf(KillChainPhaseType instance) Creates an immutable copy of aKillChainPhaseTypevalue.booleanThis instance is equal to all instances ofKillChainPhasethat have equal attribute values.Custom Properties for STIX Objects.inthashCode()Computes a hash code from attributes:killChainName,phaseName,customProperties.toString()Prints the immutable valueKillChainPhasewith attribute values.final KillChainPhasewithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final KillChainPhasewithKillChainName(String value) Copy the current immutable object by setting a value for thekillChainNameattribute.final KillChainPhasewithPhaseName(String value) Copy the current immutable object by setting a value for thephaseNameattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface security.whisper.javastix.validation.GenericValidation
validateEntityMethods inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
validate, validateOnlyId
-
Method Details
-
killChainName
- Specified by:
killChainNamein interfaceKillChainPhaseType- Returns:
- The value of the
killChainNameattribute
-
phaseName
- Specified by:
phaseNamein interfaceKillChainPhaseType- Returns:
- The value of the
phaseNameattribute
-
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>
-
withKillChainName
Copy the current immutable object by setting a value for thekillChainNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for killChainName (can benull)- Returns:
- A modified copy of the
thisobject
-
withPhaseName
Copy the current immutable object by setting a value for thephaseNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for phaseName (can benull)- Returns:
- A modified copy of the
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
-
equals
This instance is equal to all instances ofKillChainPhasethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:killChainName,phaseName,customProperties. -
toString
Prints the immutable valueKillChainPhasewith attribute values. -
copyOf
Creates an immutable copy of aKillChainPhaseTypevalue. 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 KillChainPhase instance
-
builder
Creates a builder forKillChainPhase.- Returns:
- A new KillChainPhase builder
-