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:
  • 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:
      getName in interface WindowsRegistryValueObj
      Returns:
      The value of the name attribute
    • getData

      @JsonPropertyDescription("Specifies the data contained in the registry value.") public Optional<String> getData()
      Specified by:
      getData in interface WindowsRegistryValueObj
      Returns:
      The value of the data attribute
    • getDataType

      @JsonPropertyDescription("Specifies the registry (REG_*) data type used in the registry value.") public Optional<String> getDataType()
      Specified by:
      getDataType in interface WindowsRegistryValueObj
      Returns:
      The value of the dataType attribute
    • getCustomProperties

      public com.google.common.collect.ImmutableMap<String,Object> 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:
      getCustomProperties in interface StixCustomProperties
      Returns:
      Map of custom properties Map<String, Object>
    • withName

      public final WindowsRegistryValue withName(String value)
      Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for name (can be null)
      Returns:
      A modified copy of the this object
    • withData

      public final WindowsRegistryValue withData(String value)
      Copy the current immutable object by setting a present value for the optional data attribute.
      Parameters:
      value - The value for data
      Returns:
      A modified copy of this object
    • withData

      public final WindowsRegistryValue withData(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the data attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for data
      Returns:
      A modified copy of this object
    • withDataType

      public final WindowsRegistryValue withDataType(String value)
      Copy the current immutable object by setting a present value for the optional dataType attribute.
      Parameters:
      value - The value for dataType
      Returns:
      A modified copy of this object
    • withDataType

      public final WindowsRegistryValue withDataType(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the dataType attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for dataType
      Returns:
      A modified copy of this object
    • withCustomProperties

      public final WindowsRegistryValue withCustomProperties(Map<String,? extends Object> entries)
      Copy the current immutable object by replacing the customProperties map 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 returning this.
      Parameters:
      entries - The entries to be added to the customProperties map
      Returns:
      A modified copy of this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of WindowsRegistryValue that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: name, data, dataType, customProperties.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value WindowsRegistryValue with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static WindowsRegistryValue copyOf(WindowsRegistryValueObj instance)
      Creates an immutable copy of a WindowsRegistryValueObj value. 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

      public static WindowsRegistryValue.Builder builder()
      Creates a builder for WindowsRegistryValue.
      Returns:
      A new WindowsRegistryValue builder