Class ConformancePackRuleCompliance
- java.lang.Object
-
- software.amazon.awssdk.services.config.model.ConformancePackRuleCompliance
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ConformancePackRuleCompliance.Builder,ConformancePackRuleCompliance>
@Generated("software.amazon.awssdk:codegen") public final class ConformancePackRuleCompliance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ConformancePackRuleCompliance.Builder,ConformancePackRuleCompliance>
Compliance information of one or more Config rules within a conformance pack. You can filter using Config rule names and compliance types.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConformancePackRuleCompliance.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConformancePackRuleCompliance.Builderbuilder()ConformancePackComplianceTypecomplianceType()Compliance of the Config rule.StringcomplianceTypeAsString()Compliance of the Config rule.StringconfigRuleName()Name of the Config rule.List<String>controls()Controls for the conformance pack.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasControls()For responses, this returns true if the service returned a value for the Controls property.inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ConformancePackRuleCompliance.Builder>serializableBuilderClass()ConformancePackRuleCompliance.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
-
configRuleName
public final String configRuleName()
Name of the Config rule.
- Returns:
- Name of the Config rule.
-
complianceType
public final ConformancePackComplianceType complianceType()
Compliance of the Config rule.
If the service returns an enum value that is not available in the current SDK version,
complianceTypewill returnConformancePackComplianceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcomplianceTypeAsString().- Returns:
- Compliance of the Config rule.
- See Also:
ConformancePackComplianceType
-
complianceTypeAsString
public final String complianceTypeAsString()
Compliance of the Config rule.
If the service returns an enum value that is not available in the current SDK version,
complianceTypewill returnConformancePackComplianceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcomplianceTypeAsString().- Returns:
- Compliance of the Config rule.
- See Also:
ConformancePackComplianceType
-
hasControls
public final boolean hasControls()
For responses, this returns true if the service returned a value for the Controls property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
controls
public final List<String> controls()
Controls for the conformance pack. A control is a process to prevent or detect problems while meeting objectives. A control can align with a specific compliance regime or map to internal controls defined by an organization.
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
hasControls()method.- Returns:
- Controls for the conformance pack. A control is a process to prevent or detect problems while meeting objectives. A control can align with a specific compliance regime or map to internal controls defined by an organization.
-
toBuilder
public ConformancePackRuleCompliance.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ConformancePackRuleCompliance.Builder,ConformancePackRuleCompliance>
-
builder
public static ConformancePackRuleCompliance.Builder builder()
-
serializableBuilderClass
public static Class<? extends ConformancePackRuleCompliance.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.
-
-