Class WindowsServiceExtension
java.lang.Object
security.whisper.javastix.coo.extension.types.WindowsServiceExtension
- All Implemented Interfaces:
Serializable,StixCustomProperties,CyberObservableExtension,CyberObservableExtensionCommonProperties,WindowsServiceExtensionExt,GenericValidation,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
@AllowedParents(ProcessCoo.class)
public final class WindowsServiceExtension
extends Object
implements WindowsServiceExtensionExt, Serializable
windows-service-ext
The Windows Service extension specifies a default extension for capturing properties specific to Windows services.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeWindowsServiceExtension. -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forWindowsServiceExtension.static WindowsServiceExtensioncopyOf(WindowsServiceExtensionExt instance) Creates an immutable copy of aWindowsServiceExtensionExtvalue.booleanThis instance is equal to all instances ofWindowsServiceExtensionthat 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:serviceName,displayName,groupName,serviceStartType,serviceType,serviceStatus,type,customProperties.toString()Prints the immutable valueWindowsServiceExtensionwith attribute values.final WindowsServiceExtensionwithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final WindowsServiceExtensionwithDisplayName(String value) Copy the current immutable object by setting a present value for the optionaldisplayNameattribute.final WindowsServiceExtensionwithDisplayName(Optional<String> optional) Copy the current immutable object by setting an optional value for thedisplayNameattribute.final WindowsServiceExtensionwithGroupName(String value) Copy the current immutable object by setting a present value for the optionalgroupNameattribute.final WindowsServiceExtensionwithGroupName(Optional<String> optional) Copy the current immutable object by setting an optional value for thegroupNameattribute.final WindowsServiceExtensionwithServiceName(String value) Copy the current immutable object by setting a value for theserviceNameattribute.final WindowsServiceExtensionwithServiceStartType(String value) Copy the current immutable object by setting a present value for the optionalserviceStartTypeattribute.final WindowsServiceExtensionwithServiceStartType(Optional<String> optional) Copy the current immutable object by setting an optional value for theserviceStartTypeattribute.final WindowsServiceExtensionwithServiceStatus(String value) Copy the current immutable object by setting a present value for the optionalserviceStatusattribute.final WindowsServiceExtensionwithServiceStatus(Optional<String> optional) Copy the current immutable object by setting an optional value for theserviceStatusattribute.final WindowsServiceExtensionwithServiceType(String value) Copy the current immutable object by setting a present value for the optionalserviceTypeattribute.final WindowsServiceExtensionwithServiceType(Optional<String> optional) Copy the current immutable object by setting an optional value for theserviceTypeattribute.final WindowsServiceExtensionCopy 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.WindowsServiceExtensionExt
getDescriptions, getServiceDllRefs
-
Method Details
-
getServiceName
- Specified by:
getServiceNamein interfaceWindowsServiceExtensionExt- Returns:
- The value of the
serviceNameattribute
-
getDisplayName
@JsonPropertyDescription("Specifies the displayed name of the service in Windows GUI controls.") public Optional<String> getDisplayName()- Specified by:
getDisplayNamein interfaceWindowsServiceExtensionExt- Returns:
- The value of the
displayNameattribute
-
getGroupName
@JsonPropertyDescription("Specifies the name of the load ordering group of which the service is a member.") public Optional<String> getGroupName()- Specified by:
getGroupNamein interfaceWindowsServiceExtensionExt- Returns:
- The value of the
groupNameattribute
-
getServiceStartType
@JsonPropertyDescription("Specifies the start options defined for the service. windows-service-start-enum") public Optional<String> getServiceStartType()- Specified by:
getServiceStartTypein interfaceWindowsServiceExtensionExt- Returns:
- The value of the
serviceStartTypeattribute
-
getServiceType
@JsonPropertyDescription("Specifies the type of the service. windows-service-enum") public Optional<String> getServiceType()- Specified by:
getServiceTypein interfaceWindowsServiceExtensionExt- Returns:
- The value of the
serviceTypeattribute
-
getServiceStatus
@JsonPropertyDescription("Specifies the current status of the service. windows-service-status-enum") public Optional<String> getServiceStatus()- Specified by:
getServiceStatusin interfaceWindowsServiceExtensionExt- Returns:
- The value of the
serviceStatusattribute
-
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>
-
withServiceName
Copy the current immutable object by setting a value for theserviceNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serviceName (can benull)- Returns:
- A modified copy of the
thisobject
-
withDisplayName
Copy the current immutable object by setting a present value for the optionaldisplayNameattribute.- Parameters:
value- The value for displayName- Returns:
- A modified copy of
thisobject
-
withDisplayName
Copy the current immutable object by setting an optional value for thedisplayNameattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for displayName- Returns:
- A modified copy of
thisobject
-
withGroupName
Copy the current immutable object by setting a present value for the optionalgroupNameattribute.- Parameters:
value- The value for groupName- Returns:
- A modified copy of
thisobject
-
withGroupName
Copy the current immutable object by setting an optional value for thegroupNameattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for groupName- Returns:
- A modified copy of
thisobject
-
withServiceStartType
Copy the current immutable object by setting a present value for the optionalserviceStartTypeattribute.- Parameters:
value- The value for serviceStartType- Returns:
- A modified copy of
thisobject
-
withServiceStartType
Copy the current immutable object by setting an optional value for theserviceStartTypeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for serviceStartType- Returns:
- A modified copy of
thisobject
-
withServiceType
Copy the current immutable object by setting a present value for the optionalserviceTypeattribute.- Parameters:
value- The value for serviceType- Returns:
- A modified copy of
thisobject
-
withServiceType
Copy the current immutable object by setting an optional value for theserviceTypeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for serviceType- Returns:
- A modified copy of
thisobject
-
withServiceStatus
Copy the current immutable object by setting a present value for the optionalserviceStatusattribute.- Parameters:
value- The value for serviceStatus- Returns:
- A modified copy of
thisobject
-
withServiceStatus
Copy the current immutable object by setting an optional value for theserviceStatusattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for serviceStatus- 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 ofWindowsServiceExtensionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:serviceName,displayName,groupName,serviceStartType,serviceType,serviceStatus,type,customProperties. -
toString
Prints the immutable valueWindowsServiceExtensionwith attribute values. -
copyOf
Creates an immutable copy of aWindowsServiceExtensionExtvalue. 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 WindowsServiceExtension instance
-
builder
Creates a builder forWindowsServiceExtension.- Returns:
- A new WindowsServiceExtension builder
-