Class TcpExtension
java.lang.Object
security.whisper.javastix.coo.extension.types.TcpExtension
- All Implemented Interfaces:
Serializable,StixCustomProperties,CyberObservableExtension,CyberObservableExtensionCommonProperties,TcpExtensionExt,GenericValidation,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
@AllowedParents(NetworkTrafficCoo.class)
public final class TcpExtension
extends Object
implements TcpExtensionExt, Serializable
tcp-ext
The TCP extension specifies a default extension for capturing network traffic properties specific to TCP.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionstatic TcpExtension.Builderbuilder()Creates a builder forTcpExtension.static TcpExtensioncopyOf(TcpExtensionExt instance) Creates an immutable copy of aTcpExtensionExtvalue.booleanThis instance is equal to all instances ofTcpExtensionthat have equal attribute values.Custom Properties for STIX Objects.Specifies the destination TCP flags, as the union of all TCP flags observed between the start of the traffic (as defined by the start property) and the end of the traffic (as defined by the end property).Specifies the source TCP flags, as the union of all TCP flags observed between the start of the traffic (as defined by the start property) and the end of the traffic (as defined by the end property).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:srcFlagsHex,dstFlagsHex,type,customProperties.toString()Prints the immutable valueTcpExtensionwith attribute values.final TcpExtensionwithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final TcpExtensionwithDstFlagsHex(String value) Copy the current immutable object by setting a present value for the optionaldstFlagsHexattribute.final TcpExtensionwithDstFlagsHex(Optional<String> optional) Copy the current immutable object by setting an optional value for thedstFlagsHexattribute.final TcpExtensionwithSrcFlagsHex(String value) Copy the current immutable object by setting a present value for the optionalsrcFlagsHexattribute.final TcpExtensionwithSrcFlagsHex(Optional<String> optional) Copy the current immutable object by setting an optional value for thesrcFlagsHexattribute.final TcpExtensionCopy 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
-
getSrcFlagsHex
@JsonPropertyDescription("Specifies the source TCP flags, as the union of all TCP flags observed between the start of the traffic (as defined by the start property) and the end of the traffic (as defined by the end property). ") public Optional<String> getSrcFlagsHex()Specifies the source TCP flags, as the union of all TCP flags observed between the start of the traffic (as defined by the start property) and the end of the traffic (as defined by the end property).- Specified by:
getSrcFlagsHexin interfaceTcpExtensionExt
-
getDstFlagsHex
@JsonPropertyDescription("Specifies the destination TCP flags, as the union of all TCP flags observed between the start of the traffic (as defined by the start property) and the end of the traffic (as defined by the end property).") public Optional<String> getDstFlagsHex()Specifies the destination TCP flags, as the union of all TCP flags observed between the start of the traffic (as defined by the start property) and the end of the traffic (as defined by the end property).- Specified by:
getDstFlagsHexin interfaceTcpExtensionExt
-
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>
-
withSrcFlagsHex
Copy the current immutable object by setting a present value for the optionalsrcFlagsHexattribute.- Parameters:
value- The value for srcFlagsHex- Returns:
- A modified copy of
thisobject
-
withSrcFlagsHex
Copy the current immutable object by setting an optional value for thesrcFlagsHexattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for srcFlagsHex- Returns:
- A modified copy of
thisobject
-
withDstFlagsHex
Copy the current immutable object by setting a present value for the optionaldstFlagsHexattribute.- Parameters:
value- The value for dstFlagsHex- Returns:
- A modified copy of
thisobject
-
withDstFlagsHex
Copy the current immutable object by setting an optional value for thedstFlagsHexattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for dstFlagsHex- Returns:
- A modified copy of
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 ofTcpExtensionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:srcFlagsHex,dstFlagsHex,type,customProperties. -
toString
Prints the immutable valueTcpExtensionwith attribute values. -
copyOf
Creates an immutable copy of aTcpExtensionExtvalue. 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 TcpExtension instance
-
builder
Creates a builder forTcpExtension.- Returns:
- A new TcpExtension builder
-