Class WindowsRegistryValue.Builder
java.lang.Object
security.whisper.javastix.coo.types.WindowsRegistryValue.Builder
- Enclosing class:
WindowsRegistryValue
Builds instances of type
WindowsRegistryValue.
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 newWindowsRegistryValue.customProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thecustomPropertiesmap.Initializes the optional valuedatato data.Initializes the optional valuedatato data.Initializes the optional valuedataTypeto dataType.Initializes the optional valuedataTypeto dataType.from(StixCustomProperties instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.common.StixCustomPropertiesinstance.from(WindowsRegistryValueObj instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.types.WindowsRegistryValueObjinstance.Initializes the value for thenameattribute.putAllCustomProperties(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tocustomPropertiesmap.putCustomProperty(String key, Object value) Put one entry to thecustomPropertiesmap.putCustomProperty(Map.Entry<String, ? extends Object> entry) Put one entry to thecustomPropertiesmap.
-
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
@CanIgnoreReturnValue public final WindowsRegistryValue.Builder from(WindowsRegistryValueObj instance) Fill a builder with attribute values from the providedsecurity.whisper.javastix.coo.types.WindowsRegistryValueObjinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
name
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the name of the registry value. For specifying the default value in a registry key, an empty string MUST be used.") public final WindowsRegistryValue.Builder name(String name) Initializes the value for thenameattribute.- Parameters:
name- The value for name (can benull)- Returns:
thisbuilder for use in a chained invocation
-
data
Initializes the optional valuedatato data.- Parameters:
data- The value for data- Returns:
thisbuilder for chained invocation
-
data
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the data contained in the registry value.") public final WindowsRegistryValue.Builder data(Optional<String> data) Initializes the optional valuedatato data.- Parameters:
data- The value for data- Returns:
thisbuilder for use in a chained invocation
-
dataType
Initializes the optional valuedataTypeto dataType.- Parameters:
dataType- The value for dataType- Returns:
thisbuilder for chained invocation
-
dataType
@CanIgnoreReturnValue @JsonPropertyDescription("Specifies the registry (REG_*) data type used in the registry value.") public final WindowsRegistryValue.Builder dataType(Optional<String> dataType) Initializes the optional valuedataTypeto dataType.- Parameters:
dataType- The value for dataType- Returns:
thisbuilder for use in a chained invocation
-
putCustomProperty
@CanIgnoreReturnValue public final WindowsRegistryValue.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 WindowsRegistryValue.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 WindowsRegistryValue.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 WindowsRegistryValue.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 newWindowsRegistryValue.- Returns:
- An immutable instance of WindowsRegistryValue
- Throws:
IllegalStateException- if any required attributes are missing
-