Class ArchiveFileExtension
java.lang.Object
security.whisper.javastix.coo.extension.types.ArchiveFileExtension
- All Implemented Interfaces:
Serializable,StixCustomProperties,CyberObservableExtension,CyberObservableExtensionCommonProperties,ArchiveFileExtensionExt,GenericValidation,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
@AllowedParents(FileCoo.class)
public final class ArchiveFileExtension
extends Object
implements ArchiveFileExtensionExt, Serializable
The Archive File extension specifies a default extension for capturing
properties specific to archive files.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeArchiveFileExtension. -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionstatic ArchiveFileExtension.Builderbuilder()Creates a builder forArchiveFileExtension.static ArchiveFileExtensioncopyOf(ArchiveFileExtensionExt instance) Creates an immutable copy of aArchiveFileExtensionExtvalue.booleanThis instance is equal to all instances ofArchiveFileExtensionthat have equal attribute values.Custom Properties for STIX Objects.getType()This property is used for generation of the dictionary during serialization, and used as the "Type" mapping value for polymorphic when deserializing.inthashCode()Computes a hash code from attributes:version,comment,type,customProperties.toString()Prints the immutable valueArchiveFileExtensionwith attribute values.final ArchiveFileExtensionwithComment(String value) Copy the current immutable object by setting a present value for the optionalcommentattribute.final ArchiveFileExtensionwithComment(Optional<String> optional) Copy the current immutable object by setting an optional value for thecommentattribute.final ArchiveFileExtensionwithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final ArchiveFileExtensionCopy the current immutable object by setting a value for thetypeattribute.final ArchiveFileExtensionwithVersion(String value) Copy the current immutable object by setting a present value for the optionalversionattribute.final ArchiveFileExtensionwithVersion(Optional<String> optional) Copy the current immutable object by setting an optional value for theversionattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface security.whisper.javastix.coo.extension.types.ArchiveFileExtensionExt
getContainsRefsMethods inherited from interface security.whisper.javastix.validation.GenericValidation
validateEntityMethods inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
validate, validateOnlyId
-
Method Details
-
getVersion
@JsonPropertyDescription("Specifies the version of the archive type used in the archive file.") public Optional<String> getVersion()- Specified by:
getVersionin interfaceArchiveFileExtensionExt- Returns:
- The value of the
versionattribute
-
getComment
@JsonPropertyDescription("Specifies a comment included as part of the archive file.") public Optional<String> getComment()- Specified by:
getCommentin interfaceArchiveFileExtensionExt- Returns:
- The value of the
commentattribute
-
getType
This property is used for generation of the dictionary during serialization, and used as the "Type" mapping value for polymorphic when deserializing.- Specified by:
getTypein interfaceCyberObservableExtensionCommonProperties
-
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>
-
withVersion
Copy the current immutable object by setting a present value for the optionalversionattribute.- Parameters:
value- The value for version- Returns:
- A modified copy of
thisobject
-
withVersion
Copy the current immutable object by setting an optional value for theversionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for version- Returns:
- A modified copy of
thisobject
-
withComment
Copy the current immutable object by setting a present value for the optionalcommentattribute.- Parameters:
value- The value for comment- Returns:
- A modified copy of
thisobject
-
withComment
Copy the current immutable object by setting an optional value for thecommentattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for comment- Returns:
- A modified copy of
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type (can benull)- Returns:
- A modified copy of the
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 ofArchiveFileExtensionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:version,comment,type,customProperties. -
toString
Prints the immutable valueArchiveFileExtensionwith attribute values. -
copyOf
Creates an immutable copy of aArchiveFileExtensionExtvalue. 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 ArchiveFileExtension instance
-
builder
Creates a builder forArchiveFileExtension.- Returns:
- A new ArchiveFileExtension builder
-