Class IcmpExtension
java.lang.Object
security.whisper.javastix.coo.extension.types.IcmpExtension
- All Implemented Interfaces:
Serializable,StixCustomProperties,CyberObservableExtension,CyberObservableExtensionCommonProperties,IcmpExtensionExt,GenericValidation,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
@AllowedParents(NetworkTrafficCoo.class)
public final class IcmpExtension
extends Object
implements IcmpExtensionExt, Serializable
icmp-ext
The ICMP extension specifies a default extension for capturing network traffic properties specific to ICMP.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionstatic IcmpExtension.Builderbuilder()Creates a builder forIcmpExtension.static IcmpExtensioncopyOf(IcmpExtensionExt instance) Creates an immutable copy of aIcmpExtensionExtvalue.booleanThis instance is equal to all instances ofIcmpExtensionthat have equal attribute values.Custom Properties for STIX Objects.getType()This property is used for generation of the dictionary during serialization, and used as the "Type" mapping value for polymorphic when deserializing.inthashCode()Computes a hash code from attributes:ocmpTypeHex,icmpCodeHex,type,customProperties.toString()Prints the immutable valueIcmpExtensionwith attribute values.final IcmpExtensionwithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final IcmpExtensionwithIcmpCodeHex(String value) Copy the current immutable object by setting a value for theicmpCodeHexattribute.final IcmpExtensionwithOcmpTypeHex(String value) Copy the current immutable object by setting a value for theocmpTypeHexattribute.final IcmpExtensionCopy the current immutable object by setting a value for thetypeattribute.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
-
getOcmpTypeHex
- Specified by:
getOcmpTypeHexin interfaceIcmpExtensionExt- Returns:
- The value of the
ocmpTypeHexattribute
-
getIcmpCodeHex
- Specified by:
getIcmpCodeHexin interfaceIcmpExtensionExt- Returns:
- The value of the
icmpCodeHexattribute
-
getType
This property is used for generation of the dictionary during serialization, and used as the "Type" mapping value for polymorphic when deserializing.- Specified by:
getTypein interfaceCyberObservableExtensionCommonProperties
-
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>
-
withOcmpTypeHex
Copy the current immutable object by setting a value for theocmpTypeHexattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ocmpTypeHex (can benull)- Returns:
- A modified copy of the
thisobject
-
withIcmpCodeHex
Copy the current immutable object by setting a value for theicmpCodeHexattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for icmpCodeHex (can benull)- 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
-
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 ofIcmpExtensionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ocmpTypeHex,icmpCodeHex,type,customProperties. -
toString
Prints the immutable valueIcmpExtensionwith attribute values. -
copyOf
Creates an immutable copy of aIcmpExtensionExtvalue. 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 IcmpExtension instance
-
builder
Creates a builder forIcmpExtension.- Returns:
- A new IcmpExtension builder
-