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:
  • Constructor Details

    • ComplianceByConfigRule

      public ComplianceByConfigRule()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ComplianceByConfigRule clone()
      Overrides:
      clone in class Object