Class Compliance
- java.lang.Object
-
- software.amazon.awssdk.services.config.model.Compliance
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Compliance.Builder,Compliance>
@Generated("software.amazon.awssdk:codegen") public final class Compliance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Compliance.Builder,Compliance>
Indicates whether an Amazon Web Services resource or Config rule is compliant and provides the number of contributors that affect the compliance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCompliance.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Compliance.Builderbuilder()ComplianceContributorCountcomplianceContributorCount()The number of Amazon Web Services resources or Config rules that cause a result ofNON_COMPLIANT, up to a maximum number.ComplianceTypecomplianceType()Indicates whether an Amazon Web Services resource or Config rule is compliant.StringcomplianceTypeAsString()Indicates whether an Amazon Web Services resource or Config rule is compliant.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends Compliance.Builder>serializableBuilderClass()Compliance.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
complianceType
public final ComplianceType complianceType()
Indicates whether an Amazon Web Services resource or Config rule is compliant.
A resource is compliant if it complies with all of the Config rules that evaluate it. A resource 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. A rule is noncompliant if any of these resources do not comply.
Config returns the
INSUFFICIENT_DATAvalue when no evaluation results are available for the Amazon Web Services resource or Config rule.For the
Compliancedata type, Config supports onlyCOMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATAvalues. Config does not support theNOT_APPLICABLEvalue for theCompliancedata type.If the service returns an enum value that is not available in the current SDK version,
complianceTypewill returnComplianceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcomplianceTypeAsString().- Returns:
- Indicates whether an Amazon Web Services resource or Config rule is compliant.
A resource is compliant if it complies with all of the Config rules that evaluate it. A resource 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. A rule is noncompliant if any of these resources do not comply.
Config returns the
INSUFFICIENT_DATAvalue when no evaluation results are available for the Amazon Web Services resource or Config rule.For the
Compliancedata type, Config supports onlyCOMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATAvalues. Config does not support theNOT_APPLICABLEvalue for theCompliancedata type. - See Also:
ComplianceType
-
complianceTypeAsString
public final String complianceTypeAsString()
Indicates whether an Amazon Web Services resource or Config rule is compliant.
A resource is compliant if it complies with all of the Config rules that evaluate it. A resource 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. A rule is noncompliant if any of these resources do not comply.
Config returns the
INSUFFICIENT_DATAvalue when no evaluation results are available for the Amazon Web Services resource or Config rule.For the
Compliancedata type, Config supports onlyCOMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATAvalues. Config does not support theNOT_APPLICABLEvalue for theCompliancedata type.If the service returns an enum value that is not available in the current SDK version,
complianceTypewill returnComplianceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcomplianceTypeAsString().- Returns:
- Indicates whether an Amazon Web Services resource or Config rule is compliant.
A resource is compliant if it complies with all of the Config rules that evaluate it. A resource 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. A rule is noncompliant if any of these resources do not comply.
Config returns the
INSUFFICIENT_DATAvalue when no evaluation results are available for the Amazon Web Services resource or Config rule.For the
Compliancedata type, Config supports onlyCOMPLIANT,NON_COMPLIANT, andINSUFFICIENT_DATAvalues. Config does not support theNOT_APPLICABLEvalue for theCompliancedata type. - See Also:
ComplianceType
-
complianceContributorCount
public final ComplianceContributorCount complianceContributorCount()
The number of Amazon Web Services resources or Config rules that cause a result of
NON_COMPLIANT, up to a maximum number.- Returns:
- The number of Amazon Web Services resources or Config rules that cause a result of
NON_COMPLIANT, up to a maximum number.
-
toBuilder
public Compliance.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Compliance.Builder,Compliance>
-
builder
public static Compliance.Builder builder()
-
serializableBuilderClass
public static Class<? extends Compliance.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-