Class ComplianceByResource

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class ComplianceByResource
    extends Object
    implements Serializable, Cloneable

    Indicates whether an AWS resource that is evaluated according to one or more AWS Config rules is compliant. A resource is compliant if it complies with all of the rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

    See Also:
    Serialized Form
    • Constructor Detail

      • ComplianceByResource

        public ComplianceByResource()
    • Method Detail

      • setResourceType

        public void setResourceType​(String resourceType)

        The type of the AWS resource that was evaluated.

        Parameters:
        resourceType - The type of the AWS resource that was evaluated.
      • getResourceType

        public String getResourceType()

        The type of the AWS resource that was evaluated.

        Returns:
        The type of the AWS resource that was evaluated.
      • withResourceType

        public ComplianceByResource withResourceType​(String resourceType)

        The type of the AWS resource that was evaluated.

        Parameters:
        resourceType - The type of the AWS resource that was evaluated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setResourceId

        public void setResourceId​(String resourceId)

        The ID of the AWS resource that was evaluated.

        Parameters:
        resourceId - The ID of the AWS resource that was evaluated.
      • getResourceId

        public String getResourceId()

        The ID of the AWS resource that was evaluated.

        Returns:
        The ID of the AWS resource that was evaluated.
      • withResourceId

        public ComplianceByResource withResourceId​(String resourceId)

        The ID of the AWS resource that was evaluated.

        Parameters:
        resourceId - The ID of the AWS resource that was evaluated.
        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 resource complies with all of the AWS Config rules that evaluated it.

        Parameters:
        compliance - Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.
      • getCompliance

        public Compliance getCompliance()

        Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.

        Returns:
        Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.
      • withCompliance

        public ComplianceByResource withCompliance​(Compliance compliance)

        Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.

        Parameters:
        compliance - Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.
        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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object