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:
  • Method Details

    • killChainName

      @JsonPropertyDescription("The name of the kill chain.") public String killChainName()
      Specified by:
      killChainName in interface KillChainPhaseType
      Returns:
      The value of the killChainName attribute
    • phaseName

      @JsonPropertyDescription("The name of the phase in the kill chain.") public String phaseName()
      Specified by:
      phaseName in interface KillChainPhaseType
      Returns:
      The value of the phaseName attribute
    • getCustomProperties

      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:
      getCustomProperties in interface StixCustomProperties
      Returns:
      Map of custom properties Map<String, Object>
    • withKillChainName

      public final KillChainPhase withKillChainName(String value)
      Copy the current immutable object by setting a value for the killChainName attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for killChainName (can be null)
      Returns:
      A modified copy of the this object
    • withPhaseName

      public final KillChainPhase withPhaseName(String value)
      Copy the current immutable object by setting a value for the phaseName attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for phaseName (can be null)
      Returns:
      A modified copy of the this object
    • withCustomProperties

      public final KillChainPhase withCustomProperties(Map<String,? extends Object> entries)
      Copy the current immutable object by replacing the customProperties map 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 returning this.
      Parameters:
      entries - The entries to be added to the customProperties map
      Returns:
      A modified copy of this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of KillChainPhase that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: killChainName, phaseName, customProperties.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value KillChainPhase with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static KillChainPhase copyOf(KillChainPhaseType instance)
      Creates an immutable copy of a KillChainPhaseType value. 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

      public static KillChainPhase.Builder builder()
      Creates a builder for KillChainPhase.
      Returns:
      A new KillChainPhase builder