@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.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
name
- The name of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
public String getName()
The name of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
public Threat withName(String name)
The name of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
name
- The name of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
public void setSeverity(String severity)
The severity of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
severity
- The severity of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
public String getSeverity()
The severity of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
public Threat withSeverity(String severity)
The severity of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
severity
- The severity of the threat.
Length Constraints: Minimum of 1 length. Maximum of 128 length.
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.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
public void setFilePaths(Collection<FilePaths> filePaths)
Provides information about the file paths that were affected by the threat.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
filePaths
- Provides information about the file paths that were affected by the threat.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
public Threat withFilePaths(FilePaths... filePaths)
Provides information about the file paths that were affected by the threat.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
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.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
public Threat withFilePaths(Collection<FilePaths> filePaths)
Provides information about the file paths that were affected by the threat.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
filePaths
- Provides information about the file paths that were affected by the threat.
Array Members: Minimum number of 1 item. Maximum number of 5 items.
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.