Class ComplianceByResource
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.The ID of the AWS resource that was evaluated.The type of the AWS resource that was evaluated.int
hashCode()
void
setCompliance
(Compliance compliance) Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.void
setResourceId
(String resourceId) The ID of the AWS resource that was evaluated.void
setResourceType
(String resourceType) The type of the AWS resource that was evaluated.toString()
Returns a string representation of this object; useful for testing and debugging.withCompliance
(Compliance compliance) Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.withResourceId
(String resourceId) The ID of the AWS resource that was evaluated.withResourceType
(String resourceType) The type of the AWS resource that was evaluated.
-
Constructor Details
-
ComplianceByResource
public ComplianceByResource()
-
-
Method Details
-
setResourceType
The type of the AWS resource that was evaluated.
- Parameters:
resourceType
- The type of the AWS resource that was evaluated.
-
getResourceType
The type of the AWS resource that was evaluated.
- Returns:
- The type of the AWS resource that was evaluated.
-
withResourceType
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
The ID of the AWS resource that was evaluated.
- Parameters:
resourceId
- The ID of the AWS resource that was evaluated.
-
getResourceId
The ID of the AWS resource that was evaluated.
- Returns:
- The ID of the AWS resource that was evaluated.
-
withResourceId
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-