Class ComplianceByResource
- java.lang.Object
-
- com.amazonaws.services.config.model.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 Summary
Constructors Constructor Description ComplianceByResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComplianceByResourceclone()booleanequals(Object obj)CompliancegetCompliance()Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.StringgetResourceId()The ID of the AWS resource that was evaluated.StringgetResourceType()The type of the AWS resource that was evaluated.inthashCode()voidsetCompliance(Compliance compliance)Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.voidsetResourceId(String resourceId)The ID of the AWS resource that was evaluated.voidsetResourceType(String resourceType)The type of the AWS resource that was evaluated.StringtoString()Returns a string representation of this object; useful for testing and debugging.ComplianceByResourcewithCompliance(Compliance compliance)Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.ComplianceByResourcewithResourceId(String resourceId)The ID of the AWS resource that was evaluated.ComplianceByResourcewithResourceType(String resourceType)The type of the AWS resource that was evaluated.
-
-
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ComplianceByResource clone()
-
-