Class UnixAccountExtension
java.lang.Object
security.whisper.javastix.coo.extension.types.UnixAccountExtension
- All Implemented Interfaces:
Serializable,StixCustomProperties,CyberObservableExtension,CyberObservableExtensionCommonProperties,UnixAccountExtensionExt,GenericValidation,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
@AllowedParents(UserAccountCoo.class)
public final class UnixAccountExtension
extends Object
implements UnixAccountExtensionExt, Serializable
unix-account-ext
The UNIX account extension specifies a default extension for capturing the additional information for an account on a UNIX system.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeUnixAccountExtension. -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionstatic UnixAccountExtension.Builderbuilder()Creates a builder forUnixAccountExtension.static UnixAccountExtensioncopyOf(UnixAccountExtensionExt instance) Creates an immutable copy of aUnixAccountExtensionExtvalue.booleanThis instance is equal to all instances ofUnixAccountExtensionthat have equal attribute values.Custom Properties for STIX Objects.getGid()getShell()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:gid,homeDir,shell,type,customProperties.toString()Prints the immutable valueUnixAccountExtensionwith attribute values.final UnixAccountExtensionwithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final UnixAccountExtensionwithGid(long value) Copy the current immutable object by setting a present value for the optionalgidattribute.final UnixAccountExtensionCopy the current immutable object by setting an optional value for thegidattribute.final UnixAccountExtensionwithHomeDir(String value) Copy the current immutable object by setting a present value for the optionalhomeDirattribute.final UnixAccountExtensionwithHomeDir(Optional<String> optional) Copy the current immutable object by setting an optional value for thehomeDirattribute.final UnixAccountExtensionCopy the current immutable object by setting a present value for the optionalshellattribute.final UnixAccountExtensionCopy the current immutable object by setting an optional value for theshellattribute.final UnixAccountExtensionCopy the current immutable object by setting a value for thetypeattribute.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, validateOnlyIdMethods inherited from interface security.whisper.javastix.coo.extension.types.UnixAccountExtensionExt
getGroups
-
Method Details
-
getGid
@JsonPropertyDescription("Specifies the primary group ID of the account.") public Optional<Long> getGid()- Specified by:
getGidin interfaceUnixAccountExtensionExt- Returns:
- The value of the
gidattribute
-
getHomeDir
@JsonPropertyDescription("Specifies the home directory of the account.") public Optional<String> getHomeDir()- Specified by:
getHomeDirin interfaceUnixAccountExtensionExt- Returns:
- The value of the
homeDirattribute
-
getShell
@JsonPropertyDescription("Specifies the account\u2019s command shell.") public Optional<String> getShell()- Specified by:
getShellin interfaceUnixAccountExtensionExt- Returns:
- The value of the
shellattribute
-
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>
-
withGid
Copy the current immutable object by setting a present value for the optionalgidattribute.- Parameters:
value- The value for gid- Returns:
- A modified copy of
thisobject
-
withGid
Copy the current immutable object by setting an optional value for thegidattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for gid- Returns:
- A modified copy of
thisobject
-
withHomeDir
Copy the current immutable object by setting a present value for the optionalhomeDirattribute.- Parameters:
value- The value for homeDir- Returns:
- A modified copy of
thisobject
-
withHomeDir
Copy the current immutable object by setting an optional value for thehomeDirattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for homeDir- Returns:
- A modified copy of
thisobject
-
withShell
Copy the current immutable object by setting a present value for the optionalshellattribute.- Parameters:
value- The value for shell- Returns:
- A modified copy of
thisobject
-
withShell
Copy the current immutable object by setting an optional value for theshellattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for shell- 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 ofUnixAccountExtensionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:gid,homeDir,shell,type,customProperties. -
toString
Prints the immutable valueUnixAccountExtensionwith attribute values. -
copyOf
Creates an immutable copy of aUnixAccountExtensionExtvalue. 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 UnixAccountExtension instance
-
builder
Creates a builder forUnixAccountExtension.- Returns:
- A new UnixAccountExtension builder
-