@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Threat extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the threat detected in a security finding and the file paths that were affected by the threat.
Constructor and Description |
---|
Threat() |
Modifier and Type | Method and Description |
---|---|
Threat |
clone() |
boolean |
equals(Object obj) |
List<FilePaths> |
getFilePaths()
Provides information about the file paths that were affected by the threat.
|
Integer |
getItemCount()
This total number of items in which the threat has been detected.
|
String |
getName()
The name of the threat.
|
String |
getSeverity()
The severity of the threat.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFilePaths(Collection<FilePaths> filePaths)
Provides information about the file paths that were affected by the threat.
|
void |
setItemCount(Integer itemCount)
This total number of items in which the threat has been detected.
|
void |
setName(String name)
The name of the threat.
|
void |
setSeverity(String severity)
The severity of the threat.
|
String |
toString()
Returns a string representation of this object.
|
Threat |
withFilePaths(Collection<FilePaths> filePaths)
Provides information about the file paths that were affected by the threat.
|
Threat |
withFilePaths(FilePaths... filePaths)
Provides information about the file paths that were affected by the threat.
|
Threat |
withItemCount(Integer itemCount)
This total number of items in which the threat has been detected.
|
Threat |
withName(String name)
The name of the threat.
|
Threat |
withSeverity(String severity)
The severity of the threat.
|
public void setName(String name)
The name of the threat.
name
- The name of the threat.public String getName()
The name of the threat.
public Threat withName(String name)
The name of the threat.
name
- The name of the threat.public void setSeverity(String severity)
The severity of the threat.
severity
- The severity of the threat.public String getSeverity()
The severity of the threat.
public Threat withSeverity(String severity)
The severity of the threat.
severity
- The severity of the threat.public void setItemCount(Integer itemCount)
This total number of items in which the threat has been detected.
itemCount
- This total number of items in which the threat has been detected.public Integer getItemCount()
This total number of items in which the threat has been detected.
public Threat withItemCount(Integer itemCount)
This total number of items in which the threat has been detected.
itemCount
- This total number of items in which the threat has been detected.public List<FilePaths> getFilePaths()
Provides information about the file paths that were affected by the threat.
public void setFilePaths(Collection<FilePaths> filePaths)
Provides information about the file paths that were affected by the threat.
filePaths
- Provides information about the file paths that were affected by the threat.public Threat withFilePaths(FilePaths... filePaths)
Provides information about the file paths that were affected by the threat.
NOTE: This method appends the values to the existing list (if any). Use
setFilePaths(java.util.Collection)
or withFilePaths(java.util.Collection)
if you want to
override the existing values.
filePaths
- Provides information about the file paths that were affected by the threat.public Threat withFilePaths(Collection<FilePaths> filePaths)
Provides information about the file paths that were affected by the threat.
filePaths
- Provides information about the file paths that were affected by the threat.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.