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 ComplianceByResource
clone()
boolean
equals(Object obj)
Compliance
getCompliance()
Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.String
getResourceId()
The ID of the AWS resource that was evaluated.String
getResourceType()
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.ComplianceByResource
withCompliance(Compliance compliance)
Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.ComplianceByResource
withResourceId(String resourceId)
The ID of the AWS resource that was evaluated.ComplianceByResource
withResourceType(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ComplianceByResource clone()
-
-