public class ComplianceByConfigRule
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private Compliance |
compliance
Indicates whether the AWS Config rule is compliant.
|
private java.lang.String |
configRuleName
The name of the AWS Config rule.
|
Constructor and Description |
---|
ComplianceByConfigRule() |
Modifier and Type | Method and Description |
---|---|
ComplianceByConfigRule |
clone() |
boolean |
equals(java.lang.Object obj) |
Compliance |
getCompliance()
Indicates whether the AWS Config rule is compliant.
|
java.lang.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(java.lang.String configRuleName)
The name of the AWS Config rule.
|
java.lang.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(java.lang.String configRuleName)
The name of the AWS Config rule.
|
private java.lang.String configRuleName
The name of the AWS Config rule.
private Compliance compliance
Indicates whether the AWS Config rule is compliant.
public void setConfigRuleName(java.lang.String configRuleName)
The name of the AWS Config rule.
configRuleName
- The name of the AWS Config rule.public java.lang.String getConfigRuleName()
The name of the AWS Config rule.
public ComplianceByConfigRule withConfigRuleName(java.lang.String configRuleName)
The name of the AWS Config rule.
configRuleName
- The name of the AWS Config rule.public void setCompliance(Compliance compliance)
Indicates whether the AWS Config rule is compliant.
compliance
- Indicates whether the AWS Config rule is compliant.public Compliance getCompliance()
Indicates whether the AWS Config rule is compliant.
public ComplianceByConfigRule withCompliance(Compliance compliance)
Indicates whether the AWS Config rule is compliant.
compliance
- Indicates whether the AWS Config rule is compliant.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ComplianceByConfigRule clone()
clone
in class java.lang.Object