Class ComplianceByConfigRule
- java.lang.Object
-
- com.amazonaws.services.config.model.ComplianceByConfigRule
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ComplianceByConfigRule extends Object implements Serializable, Cloneable
Indicates whether an AWS Config rule is compliant. A rule is compliant if all of the resources that the rule evaluated comply with it, and it is noncompliant if any of these resources do not comply.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComplianceByConfigRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComplianceByConfigRuleclone()booleanequals(Object obj)CompliancegetCompliance()Indicates whether the AWS Config rule is compliant.StringgetConfigRuleName()The name of the AWS Config rule.inthashCode()voidsetCompliance(Compliance compliance)Indicates whether the AWS Config rule is compliant.voidsetConfigRuleName(String configRuleName)The name of the AWS Config rule.StringtoString()Returns a string representation of this object; useful for testing and debugging.ComplianceByConfigRulewithCompliance(Compliance compliance)Indicates whether the AWS Config rule is compliant.ComplianceByConfigRulewithConfigRuleName(String configRuleName)The name of the AWS Config rule.
-
-
-
Method Detail
-
setConfigRuleName
public void setConfigRuleName(String configRuleName)
The name of the AWS Config rule.
- Parameters:
configRuleName- The name of the AWS Config rule.
-
getConfigRuleName
public String getConfigRuleName()
The name of the AWS Config rule.
- Returns:
- The name of the AWS Config rule.
-
withConfigRuleName
public ComplianceByConfigRule withConfigRuleName(String configRuleName)
The name of the AWS Config rule.
- Parameters:
configRuleName- The name of the AWS Config rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCompliance
public void setCompliance(Compliance compliance)
Indicates whether the AWS Config rule is compliant.
- Parameters:
compliance- Indicates whether the AWS Config rule is compliant.
-
getCompliance
public Compliance getCompliance()
Indicates whether the AWS Config rule is compliant.
- Returns:
- Indicates whether the AWS Config rule is compliant.
-
withCompliance
public ComplianceByConfigRule withCompliance(Compliance compliance)
Indicates whether the AWS Config rule is compliant.
- Parameters:
compliance- Indicates whether the AWS Config rule is compliant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ComplianceByConfigRule clone()
-
-