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 ComplianceByConfigRule
clone()
boolean
equals(Object obj)
Compliance
getCompliance()
Indicates whether the AWS Config rule is compliant.String
getConfigRuleName()
The name of the AWS Config rule.int
hashCode()
void
setCompliance(Compliance compliance)
Indicates whether the AWS Config rule is compliant.void
setConfigRuleName(String configRuleName)
The name of the AWS Config rule.String
toString()
Returns a string representation of this object; useful for testing and debugging.ComplianceByConfigRule
withCompliance(Compliance compliance)
Indicates whether the AWS Config rule is compliant.ComplianceByConfigRule
withConfigRuleName(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ComplianceByConfigRule clone()
-
-