Class Malware

    • Method Detail

      • name

        public final String name()

        The name of the malware that was observed.

        Length Constraints: Minimum of 1. Maximum of 64.

        Returns:
        The name of the malware that was observed.

        Length Constraints: Minimum of 1. Maximum of 64.

      • type

        public final MalwareType type()

        The type of the malware that was observed.

        If the service returns an enum value that is not available in the current SDK version, type will return MalwareType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        The type of the malware that was observed.
        See Also:
        MalwareType
      • typeAsString

        public final String typeAsString()

        The type of the malware that was observed.

        If the service returns an enum value that is not available in the current SDK version, type will return MalwareType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        The type of the malware that was observed.
        See Also:
        MalwareType
      • path

        public final String path()

        The file system path of the malware that was observed.

        Length Constraints: Minimum of 1. Maximum of 512.

        Returns:
        The file system path of the malware that was observed.

        Length Constraints: Minimum of 1. Maximum of 512.

      • state

        public final MalwareState state()

        The state of the malware that was observed.

        If the service returns an enum value that is not available in the current SDK version, state will return MalwareState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The state of the malware that was observed.
        See Also:
        MalwareState
      • stateAsString

        public final String stateAsString()

        The state of the malware that was observed.

        If the service returns an enum value that is not available in the current SDK version, state will return MalwareState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The state of the malware that was observed.
        See Also:
        MalwareState
      • serializableBuilderClass

        public static Class<? extends Malware.Builder> serializableBuilderClass()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)