Class WindowsRegistryValue
java.lang.Object
security.whisper.javastix.coo.types.WindowsRegistryValue
- All Implemented Interfaces:
Serializable,StixCustomProperties,WindowsRegistryValueObj,GenericValidation,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class WindowsRegistryValue
extends Object
implements WindowsRegistryValueObj
The Windows Registry Value type captures the properties of a Windows Registry Key Value.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeWindowsRegistryValue. -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionstatic WindowsRegistryValue.Builderbuilder()Creates a builder forWindowsRegistryValue.static WindowsRegistryValuecopyOf(WindowsRegistryValueObj instance) Creates an immutable copy of aWindowsRegistryValueObjvalue.booleanThis instance is equal to all instances ofWindowsRegistryValuethat have equal attribute values.Custom Properties for STIX Objects.getData()getName()inthashCode()Computes a hash code from attributes:name,data,dataType,customProperties.toString()Prints the immutable valueWindowsRegistryValuewith attribute values.final WindowsRegistryValuewithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final WindowsRegistryValueCopy the current immutable object by setting a present value for the optionaldataattribute.final WindowsRegistryValueCopy the current immutable object by setting an optional value for thedataattribute.final WindowsRegistryValuewithDataType(String value) Copy the current immutable object by setting a present value for the optionaldataTypeattribute.final WindowsRegistryValuewithDataType(Optional<String> optional) Copy the current immutable object by setting an optional value for thedataTypeattribute.final WindowsRegistryValueCopy the current immutable object by setting a value for thenameattribute.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
-
getName
@JsonPropertyDescription("Specifies the name of the registry value. For specifying the default value in a registry key, an empty string MUST be used.") public String getName()- Specified by:
getNamein interfaceWindowsRegistryValueObj- Returns:
- The value of the
nameattribute
-
getData
@JsonPropertyDescription("Specifies the data contained in the registry value.") public Optional<String> getData()- Specified by:
getDatain interfaceWindowsRegistryValueObj- Returns:
- The value of the
dataattribute
-
getDataType
@JsonPropertyDescription("Specifies the registry (REG_*) data type used in the registry value.") public Optional<String> getDataType()- Specified by:
getDataTypein interfaceWindowsRegistryValueObj- Returns:
- The value of the
dataTypeattribute
-
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>
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy of the
thisobject
-
withData
Copy the current immutable object by setting a present value for the optionaldataattribute.- Parameters:
value- The value for data- Returns:
- A modified copy of
thisobject
-
withData
Copy the current immutable object by setting an optional value for thedataattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for data- Returns:
- A modified copy of
thisobject
-
withDataType
Copy the current immutable object by setting a present value for the optionaldataTypeattribute.- Parameters:
value- The value for dataType- Returns:
- A modified copy of
thisobject
-
withDataType
Copy the current immutable object by setting an optional value for thedataTypeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for dataType- Returns:
- A modified copy of
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 ofWindowsRegistryValuethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,data,dataType,customProperties. -
toString
Prints the immutable valueWindowsRegistryValuewith attribute values. -
copyOf
Creates an immutable copy of aWindowsRegistryValueObjvalue. 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 WindowsRegistryValue instance
-
builder
Creates a builder forWindowsRegistryValue.- Returns:
- A new WindowsRegistryValue builder
-