Class TcpExtension.Builder
java.lang.Object
security.whisper.javastix.coo.extension.types.TcpExtension.Builder
- Enclosing class:
TcpExtension
Builds instances of type
TcpExtension.
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newTcpExtension.final TcpExtension.BuildercustomProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thecustomPropertiesmap.final TcpExtension.BuilderdstFlagsHex(String dstFlagsHex) Initializes the optional valuedstFlagsHexto dstFlagsHex.final TcpExtension.BuilderdstFlagsHex(Optional<String> dstFlagsHex) Initializes the optional valuedstFlagsHexto dstFlagsHex.final TcpExtension.Builderfrom(StixCustomProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixCustomPropertiesinstance.final TcpExtension.Builderfrom(CyberObservableExtensionCommonProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.CyberObservableExtensionCommonPropertiesinstance.final TcpExtension.Builderfrom(TcpExtensionExt instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.types.TcpExtensionExtinstance.final TcpExtension.BuilderputAllCustomProperties(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tocustomPropertiesmap.final TcpExtension.BuilderputCustomProperty(String key, Object value) Put one entry to thecustomPropertiesmap.final TcpExtension.BuilderputCustomProperty(Map.Entry<String, ? extends Object> entry) Put one entry to thecustomPropertiesmap.final TcpExtension.BuildersrcFlagsHex(String srcFlagsHex) Initializes the optional valuesrcFlagsHexto srcFlagsHex.final TcpExtension.BuildersrcFlagsHex(Optional<String> srcFlagsHex) Initializes the optional valuesrcFlagsHexto srcFlagsHex.final TcpExtension.BuilderInitializes the value for thetypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixCustomPropertiesinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.types.TcpExtensionExtinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final TcpExtension.Builder from(CyberObservableExtensionCommonProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.CyberObservableExtensionCommonPropertiesinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
srcFlagsHex
Initializes the optional valuesrcFlagsHexto srcFlagsHex.- Parameters:
srcFlagsHex- The value for srcFlagsHex- Returns:
thisbuilder for chained invocation
-
srcFlagsHex
@CanIgnoreReturnValue @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 final TcpExtension.Builder srcFlagsHex(Optional<String> srcFlagsHex) Initializes the optional valuesrcFlagsHexto srcFlagsHex.- Parameters:
srcFlagsHex- The value for srcFlagsHex- Returns:
thisbuilder for use in a chained invocation
-
dstFlagsHex
Initializes the optional valuedstFlagsHexto dstFlagsHex.- Parameters:
dstFlagsHex- The value for dstFlagsHex- Returns:
thisbuilder for chained invocation
-
dstFlagsHex
@CanIgnoreReturnValue @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 final TcpExtension.Builder dstFlagsHex(Optional<String> dstFlagsHex) Initializes the optional valuedstFlagsHexto dstFlagsHex.- Parameters:
dstFlagsHex- The value for dstFlagsHex- Returns:
thisbuilder for use in a chained invocation
-
type
Initializes the value for thetypeattribute.- Parameters:
type- The value for type (can benull)- Returns:
thisbuilder for use in a chained invocation
-
putCustomProperty
Put one entry to thecustomPropertiesmap.- Parameters:
key- The key in the customProperties mapvalue- The associated value in the customProperties map- Returns:
thisbuilder for use in a chained invocation
-
putCustomProperty
@CanIgnoreReturnValue public final TcpExtension.Builder putCustomProperty(Map.Entry<String, ? extends Object> entry) Put one entry to thecustomPropertiesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
customProperties
@CanIgnoreReturnValue public final TcpExtension.Builder customProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thecustomPropertiesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the customProperties map- Returns:
thisbuilder for use in a chained invocation
-
putAllCustomProperties
@CanIgnoreReturnValue public final TcpExtension.Builder putAllCustomProperties(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tocustomPropertiesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the customProperties map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newTcpExtension.- Returns:
- An immutable instance of TcpExtension
- Throws:
IllegalStateException- if any required attributes are missing
-