Class WindowsProcessExtension.Builder
java.lang.Object
security.whisper.javastix.coo.extension.types.WindowsProcessExtension.Builder
- Enclosing class:
WindowsProcessExtension
Builds instances of type
WindowsProcessExtension.
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 newWindowsProcessExtension.customProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thecustomPropertiesmap.from(StixCustomProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixCustomPropertiesinstance.from(CyberObservableExtensionCommonProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.CyberObservableExtensionCommonPropertiesinstance.from(WindowsProcessExtensionExt instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.types.WindowsProcessExtensionExtinstance.isAslrEnabled(boolean isAslrEnabled) Initializes the optional valueisAslrEnabledto isAslrEnabled.isAslrEnabled(Optional<Boolean> isAslrEnabled) Initializes the optional valueisAslrEnabledto isAslrEnabled.isDepEnabled(boolean isDepEnabled) Initializes the optional valueisDepEnabledto isDepEnabled.isDepEnabled(Optional<Boolean> isDepEnabled) Initializes the optional valueisDepEnabledto isDepEnabled.Initializes the optional valueownerSidto ownerSid.Initializes the optional valueownerSidto ownerSid.Initializes the optional valuepriorityto priority.Initializes the optional valuepriorityto priority.putAllCustomProperties(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tocustomPropertiesmap.putAllStartupInfo(Map<String, ? extends String> entries) Put all mappings from the specified map as entries tostartupInfomap.putCustomProperty(String key, Object value) Put one entry to thecustomPropertiesmap.putCustomProperty(Map.Entry<String, ? extends Object> entry) Put one entry to thecustomPropertiesmap.putStartupInfo(String key, String value) Put one entry to thestartupInfomap.putStartupInfo(Map.Entry<String, ? extends String> entry) Put one entry to thestartupInfomap.startupInfo(Map<String, ? extends String> entries) Sets or replaces all mappings from the specified map as entries for thestartupInfomap.Initializes the value for thetypeattribute.windowTitle(String windowTitle) Initializes the optional valuewindowTitleto windowTitle.windowTitle(Optional<String> windowTitle) Initializes the optional valuewindowTitleto windowTitle.
-
Method Details
-
from
@CanIgnoreReturnValue public final WindowsProcessExtension.Builder from(StixCustomProperties instance) 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
@CanIgnoreReturnValue public final WindowsProcessExtension.Builder from(WindowsProcessExtensionExt instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.extension.types.WindowsProcessExtensionExtinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final WindowsProcessExtension.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
-
isAslrEnabled
@CanIgnoreReturnValue public final WindowsProcessExtension.Builder isAslrEnabled(boolean isAslrEnabled) Initializes the optional valueisAslrEnabledto isAslrEnabled.- Parameters:
isAslrEnabled- The value for isAslrEnabled- Returns:
thisbuilder for chained invocation
-
isAslrEnabled
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies whether Address Space Layout Randomization (ASLR) is enabled for the process.") public final WindowsProcessExtension.Builder isAslrEnabled(Optional<Boolean> isAslrEnabled) Initializes the optional valueisAslrEnabledto isAslrEnabled.- Parameters:
isAslrEnabled- The value for isAslrEnabled- Returns:
thisbuilder for use in a chained invocation
-
isDepEnabled
@CanIgnoreReturnValue public final WindowsProcessExtension.Builder isDepEnabled(boolean isDepEnabled) Initializes the optional valueisDepEnabledto isDepEnabled.- Parameters:
isDepEnabled- The value for isDepEnabled- Returns:
thisbuilder for chained invocation
-
isDepEnabled
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies whether Data Execution Prevention (DEP) is enabled for the process.") public final WindowsProcessExtension.Builder isDepEnabled(Optional<Boolean> isDepEnabled) Initializes the optional valueisDepEnabledto isDepEnabled.- Parameters:
isDepEnabled- The value for isDepEnabled- Returns:
thisbuilder for use in a chained invocation
-
priority
Initializes the optional valuepriorityto priority.- Parameters:
priority- The value for priority- Returns:
thisbuilder for chained invocation
-
priority
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the current priority class of the process in Windows.") public final WindowsProcessExtension.Builder priority(Optional<String> priority) Initializes the optional valuepriorityto priority.- Parameters:
priority- The value for priority- Returns:
thisbuilder for use in a chained invocation
-
ownerSid
Initializes the optional valueownerSidto ownerSid.- Parameters:
ownerSid- The value for ownerSid- Returns:
thisbuilder for chained invocation
-
ownerSid
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the Security ID (SID) value of the owner of the process.") public final WindowsProcessExtension.Builder ownerSid(Optional<String> ownerSid) Initializes the optional valueownerSidto ownerSid.- Parameters:
ownerSid- The value for ownerSid- Returns:
thisbuilder for use in a chained invocation
-
windowTitle
Initializes the optional valuewindowTitleto windowTitle.- Parameters:
windowTitle- The value for windowTitle- Returns:
thisbuilder for chained invocation
-
windowTitle
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the title of the main window of the process.") public final WindowsProcessExtension.Builder windowTitle(Optional<String> windowTitle) Initializes the optional valuewindowTitleto windowTitle.- Parameters:
windowTitle- The value for windowTitle- Returns:
thisbuilder for use in a chained invocation
-
putStartupInfo
@CanIgnoreReturnValue public final WindowsProcessExtension.Builder putStartupInfo(String key, String value) Put one entry to thestartupInfomap.- Parameters:
key- The key in the startupInfo mapvalue- The associated value in the startupInfo map- Returns:
thisbuilder for use in a chained invocation
-
putStartupInfo
@CanIgnoreReturnValue public final WindowsProcessExtension.Builder putStartupInfo(Map.Entry<String, ? extends String> entry) Put one entry to thestartupInfomap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
startupInfo
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the STARTUP_INFO struct used by the process, as a dictionary.") public final WindowsProcessExtension.Builder startupInfo(Map<String, ? extends String> entries) Sets or replaces all mappings from the specified map as entries for thestartupInfomap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the startupInfo map- Returns:
thisbuilder for use in a chained invocation
-
putAllStartupInfo
@CanIgnoreReturnValue public final WindowsProcessExtension.Builder putAllStartupInfo(Map<String, ? extends String> entries) Put all mappings from the specified map as entries tostartupInfomap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the startupInfo map- 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
@CanIgnoreReturnValue public final WindowsProcessExtension.Builder putCustomProperty(String key, Object value) 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 WindowsProcessExtension.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 WindowsProcessExtension.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 WindowsProcessExtension.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 newWindowsProcessExtension.- Returns:
- An immutable instance of WindowsProcessExtension
- Throws:
IllegalStateException- if any required attributes are missing
-