@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Compliance extends Object implements Serializable, Cloneable, StructuredPojo
Exclusive to findings that are generated as the result of a check run against a specific rule in a supported security standard, such as CIS AWS Foundations. Contains security standard-related finding details.
Values include the following:
Allowed values are the following:
PASSED - Standards check passed for all evaluated resources.
WARNING - Some information is missing or this check is not supported given your configuration.
FAILED - Standards check failed for at least one evaluated resource.
NOT_AVAILABLE - Check could not be performed due to a service outage, API error, or because the result
of the AWS Config evaluation was NOT_APPLICABLE. If the AWS Config evaluation result was
NOT_APPLICABLE, then after 3 days, Security Hub automatically archives the finding.
| Constructor and Description |
|---|
Compliance() |
| Modifier and Type | Method and Description |
|---|---|
Compliance |
clone() |
boolean |
equals(Object obj) |
List<String> |
getRelatedRequirements()
List of requirements that are related to a standards control.
|
String |
getStatus()
The result of a standards check.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setRelatedRequirements(Collection<String> relatedRequirements)
List of requirements that are related to a standards control.
|
void |
setStatus(String status)
The result of a standards check.
|
String |
toString()
Returns a string representation of this object.
|
Compliance |
withRelatedRequirements(Collection<String> relatedRequirements)
List of requirements that are related to a standards control.
|
Compliance |
withRelatedRequirements(String... relatedRequirements)
List of requirements that are related to a standards control.
|
Compliance |
withStatus(ComplianceStatus status)
The result of a standards check.
|
Compliance |
withStatus(String status)
The result of a standards check.
|
public void setStatus(String status)
The result of a standards check.
status - The result of a standards check.ComplianceStatuspublic String getStatus()
The result of a standards check.
ComplianceStatuspublic Compliance withStatus(String status)
The result of a standards check.
status - The result of a standards check.ComplianceStatuspublic Compliance withStatus(ComplianceStatus status)
The result of a standards check.
status - The result of a standards check.ComplianceStatuspublic List<String> getRelatedRequirements()
List of requirements that are related to a standards control.
public void setRelatedRequirements(Collection<String> relatedRequirements)
List of requirements that are related to a standards control.
relatedRequirements - List of requirements that are related to a standards control.public Compliance withRelatedRequirements(String... relatedRequirements)
List of requirements that are related to a standards control.
NOTE: This method appends the values to the existing list (if any). Use
setRelatedRequirements(java.util.Collection) or withRelatedRequirements(java.util.Collection)
if you want to override the existing values.
relatedRequirements - List of requirements that are related to a standards control.public Compliance withRelatedRequirements(Collection<String> relatedRequirements)
List of requirements that are related to a standards control.
relatedRequirements - List of requirements that are related to a standards control.public String toString()
toString in class ObjectObject.toString()public Compliance clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.