@Generated(value="software.amazon.awssdk:codegen") public class Compliance extends Object implements StructuredPojo, ToCopyableBuilder<Compliance.Builder,Compliance>
Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance.
Modifier and Type | Class and Description |
---|---|
static interface |
Compliance.Builder |
Modifier and Type | Method and Description |
---|---|
static Compliance.Builder |
builder() |
ComplianceContributorCount |
complianceContributorCount()
The number of AWS resources or AWS Config rules that cause a result of
NON_COMPLIANT , up to a
maximum number. |
ComplianceType |
complianceType()
Indicates whether an AWS resource or AWS Config rule is compliant.
|
String |
complianceTypeString()
Indicates whether an AWS resource or AWS Config rule is compliant.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends Compliance.Builder> |
serializableBuilderClass() |
Compliance.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public ComplianceType complianceType()
Indicates whether an AWS resource or AWS Config rule is compliant.
A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.
A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.
AWS Config returns the INSUFFICIENT_DATA
value when no evaluation results are available for the AWS
resource or Config rule.
For the Compliance
data type, AWS Config supports only COMPLIANT
,
NON_COMPLIANT
, and INSUFFICIENT_DATA
values. AWS Config does not support the
NOT_APPLICABLE
value for the Compliance
data type.
If the service returns an enum value that is not available in the current SDK version, complianceType
will return ComplianceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from complianceTypeString()
.
A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.
A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.
AWS Config returns the INSUFFICIENT_DATA
value when no evaluation results are available for
the AWS resource or Config rule.
For the Compliance
data type, AWS Config supports only COMPLIANT
,
NON_COMPLIANT
, and INSUFFICIENT_DATA
values. AWS Config does not support the
NOT_APPLICABLE
value for the Compliance
data type.
ComplianceType
public String complianceTypeString()
Indicates whether an AWS resource or AWS Config rule is compliant.
A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.
A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.
AWS Config returns the INSUFFICIENT_DATA
value when no evaluation results are available for the AWS
resource or Config rule.
For the Compliance
data type, AWS Config supports only COMPLIANT
,
NON_COMPLIANT
, and INSUFFICIENT_DATA
values. AWS Config does not support the
NOT_APPLICABLE
value for the Compliance
data type.
If the service returns an enum value that is not available in the current SDK version, complianceType
will return ComplianceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from complianceTypeString()
.
A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.
A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.
AWS Config returns the INSUFFICIENT_DATA
value when no evaluation results are available for
the AWS resource or Config rule.
For the Compliance
data type, AWS Config supports only COMPLIANT
,
NON_COMPLIANT
, and INSUFFICIENT_DATA
values. AWS Config does not support the
NOT_APPLICABLE
value for the Compliance
data type.
ComplianceType
public ComplianceContributorCount complianceContributorCount()
The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT
, up to a
maximum number.
NON_COMPLIANT
, up to
a maximum number.public Compliance.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Compliance.Builder,Compliance>
public static Compliance.Builder builder()
public static Class<? extends Compliance.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.