@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FindingProviderSeverity extends Object implements Serializable, Cloneable, StructuredPojo
The severity assigned to a finding by the finding provider. This object may include one or more of the following attributes:
Label
Normalized
Original
Product
If a
BatchImportFindings request for a new finding only provides Label or only provides
Normalized, Security Hub automatically populates the value of the other field.
The Normalized and Product attributes are included in the
FindingProviderSeverity structure to preserve the historical information associated with the finding,
even if the top-level Severity object is later modified using the
BatchUpdateFindings operation.
If the top-level Finding.Severity object is present, but Finding.FindingProviderFields
isn't present, Security Hub creates the FindingProviderFields.Severity object and copies the entire
Finding.Severity object into it. This ensures that the original, provider-supplied details are retained
within the FindingProviderFields.Severity object, even if the top-level Severity object is
overwritten.
| Constructor and Description |
|---|
FindingProviderSeverity() |
| Modifier and Type | Method and Description |
|---|---|
FindingProviderSeverity |
clone() |
boolean |
equals(Object obj) |
String |
getLabel()
The severity label assigned to the finding by the finding provider.
|
String |
getOriginal()
The finding provider's original value for the severity.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setLabel(String label)
The severity label assigned to the finding by the finding provider.
|
void |
setOriginal(String original)
The finding provider's original value for the severity.
|
String |
toString()
Returns a string representation of this object.
|
FindingProviderSeverity |
withLabel(SeverityLabel label)
The severity label assigned to the finding by the finding provider.
|
FindingProviderSeverity |
withLabel(String label)
The severity label assigned to the finding by the finding provider.
|
FindingProviderSeverity |
withOriginal(String original)
The finding provider's original value for the severity.
|
public void setLabel(String label)
The severity label assigned to the finding by the finding provider.
label - The severity label assigned to the finding by the finding provider.SeverityLabelpublic String getLabel()
The severity label assigned to the finding by the finding provider.
SeverityLabelpublic FindingProviderSeverity withLabel(String label)
The severity label assigned to the finding by the finding provider.
label - The severity label assigned to the finding by the finding provider.SeverityLabelpublic FindingProviderSeverity withLabel(SeverityLabel label)
The severity label assigned to the finding by the finding provider.
label - The severity label assigned to the finding by the finding provider.SeverityLabelpublic void setOriginal(String original)
The finding provider's original value for the severity.
Length Constraints: Minimum length of 1. Maximum length of 64.
original - The finding provider's original value for the severity.
Length Constraints: Minimum length of 1. Maximum length of 64.
public String getOriginal()
The finding provider's original value for the severity.
Length Constraints: Minimum length of 1. Maximum length of 64.
Length Constraints: Minimum length of 1. Maximum length of 64.
public FindingProviderSeverity withOriginal(String original)
The finding provider's original value for the severity.
Length Constraints: Minimum length of 1. Maximum length of 64.
original - The finding provider's original value for the severity.
Length Constraints: Minimum length of 1. Maximum length of 64.
public String toString()
toString in class ObjectObject.toString()public FindingProviderSeverity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.