@Generated(value="software.amazon.awssdk:codegen") public final class Compliance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Compliance.Builder,Compliance>
Contains finding details that are specific to control-based findings. Only returned for findings generated from controls.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Compliance.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<AssociatedStandard> |
associatedStandards()
The enabled security standards in which a security control is currently enabled.
|
static Compliance.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAssociatedStandards()
For responses, this returns true if the service returned a value for the AssociatedStandards property.
|
int |
hashCode() |
boolean |
hasRelatedRequirements()
For responses, this returns true if the service returned a value for the RelatedRequirements property.
|
boolean |
hasStatusReasons()
For responses, this returns true if the service returned a value for the StatusReasons property.
|
List<String> |
relatedRequirements()
For a control, the industry or regulatory framework requirements that are related to the control.
|
List<SdkField<?>> |
sdkFields() |
String |
securityControlId()
The unique identifier of a control across standards.
|
static Class<? extends Compliance.Builder> |
serializableBuilderClass() |
ComplianceStatus |
status()
The result of a standards check.
|
String |
statusAsString()
The result of a standards check.
|
List<StatusReason> |
statusReasons()
For findings generated from controls, a list of reasons behind the value of
Status. |
Compliance.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final ComplianceStatus status()
The result of a standards check.
The valid values for Status are as follows.
PASSED - Standards check passed for all evaluated resources.
WARNING - Some information is missing or this check is not supported for 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 Config evaluation was NOT_APPLICABLE. If the Config evaluation result was
NOT_APPLICABLE, then after 3 days, Security Hub automatically archives the finding.
If the service returns an enum value that is not available in the current SDK version, status will
return ComplianceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
The valid values for Status are as follows.
PASSED - Standards check passed for all evaluated resources.
WARNING - Some information is missing or this check is not supported for 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 Config evaluation was NOT_APPLICABLE. If the Config evaluation result was
NOT_APPLICABLE, then after 3 days, Security Hub automatically archives the finding.
ComplianceStatuspublic final String statusAsString()
The result of a standards check.
The valid values for Status are as follows.
PASSED - Standards check passed for all evaluated resources.
WARNING - Some information is missing or this check is not supported for 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 Config evaluation was NOT_APPLICABLE. If the Config evaluation result was
NOT_APPLICABLE, then after 3 days, Security Hub automatically archives the finding.
If the service returns an enum value that is not available in the current SDK version, status will
return ComplianceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
The valid values for Status are as follows.
PASSED - Standards check passed for all evaluated resources.
WARNING - Some information is missing or this check is not supported for 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 Config evaluation was NOT_APPLICABLE. If the Config evaluation result was
NOT_APPLICABLE, then after 3 days, Security Hub automatically archives the finding.
ComplianceStatuspublic final boolean hasRelatedRequirements()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> relatedRequirements()
For a control, the industry or regulatory framework requirements that are related to the control. The check for that control is aligned with these requirements.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRelatedRequirements() method.
public final boolean hasStatusReasons()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<StatusReason> statusReasons()
For findings generated from controls, a list of reasons behind the value of Status. For the list of
status reason codes and their meanings, see Standards-related information in the ASFF in the Security Hub User Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasStatusReasons() method.
Status. For the
list of status reason codes and their meanings, see Standards-related information in the ASFF in the Security Hub User Guide.public final String securityControlId()
The unique identifier of a control across standards. Values for this field typically consist of an Amazon Web Service and a number, such as APIGateway.5.
public final boolean hasAssociatedStandards()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AssociatedStandard> associatedStandards()
The enabled security standards in which a security control is currently enabled.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAssociatedStandards() method.
public Compliance.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Compliance.Builder,Compliance>public static Compliance.Builder builder()
public static Class<? extends Compliance.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.