Class NtfsAlternateDataStream
java.lang.Object
security.whisper.javastix.coo.types.NtfsAlternateDataStream
- All Implemented Interfaces:
Serializable,StixCustomProperties,NtfsAlternateDataStreamObj,GenericValidation,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class NtfsAlternateDataStream
extends Object
implements NtfsAlternateDataStreamObj
The Alternate Data Stream type represents an NTFS alternate data stream.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeNtfsAlternateDataStream. -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forNtfsAlternateDataStream.static NtfsAlternateDataStreamcopyOf(NtfsAlternateDataStreamObj instance) Creates an immutable copy of aNtfsAlternateDataStreamObjvalue.booleanThis instance is equal to all instances ofNtfsAlternateDataStreamthat have equal attribute values.Custom Properties for STIX Objects.getName()getSize()inthashCode()Computes a hash code from attributes:name,hashes,size,customProperties.toString()Prints the immutable valueNtfsAlternateDataStreamwith attribute values.final NtfsAlternateDataStreamwithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final NtfsAlternateDataStreamwithHashes(Map<String, ? extends String> entries) Copy the current immutable object by replacing thehashesmap with the specified map.final NtfsAlternateDataStreamCopy the current immutable object by setting a value for thenameattribute.final NtfsAlternateDataStreamwithSize(long value) Copy the current immutable object by setting a present value for the optionalsizeattribute.final NtfsAlternateDataStreamCopy the current immutable object by setting an optional value for thesizeattribute.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 alternate data stream.") public String getName()- Specified by:
getNamein interfaceNtfsAlternateDataStreamObj- Returns:
- The value of the
nameattribute
-
getHashes
@JsonPropertyDescription("Specifies a dictionary of hashes for the data contained in the alternate data stream.") public com.google.common.collect.ImmutableMap<String,String> getHashes()- Specified by:
getHashesin interfaceNtfsAlternateDataStreamObj- Returns:
- The value of the
hashesattribute
-
getSize
@JsonPropertyDescription("Specifies the size of the alternate data stream, in bytes, as a non-negative integer.") public Optional<Long> getSize()- Specified by:
getSizein interfaceNtfsAlternateDataStreamObj- Returns:
- The value of the
sizeattribute
-
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
-
withHashes
Copy the current immutable object by replacing thehashesmap 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 hashes map- Returns:
- A modified copy of
thisobject
-
withSize
Copy the current immutable object by setting a present value for the optionalsizeattribute.- Parameters:
value- The value for size- Returns:
- A modified copy of
thisobject
-
withSize
Copy the current immutable object by setting an optional value for thesizeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for size- 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 ofNtfsAlternateDataStreamthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,hashes,size,customProperties. -
toString
Prints the immutable valueNtfsAlternateDataStreamwith attribute values. -
copyOf
Creates an immutable copy of aNtfsAlternateDataStreamObjvalue. 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 NtfsAlternateDataStream instance
-
builder
Creates a builder forNtfsAlternateDataStream.- Returns:
- A new NtfsAlternateDataStream builder
-