public class ComplianceByResource
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private Compliance |
compliance
Indicates whether the AWS resource complies with all of the AWS Config
rules that evaluated it.
|
private java.lang.String |
resourceId
The ID of the AWS resource that was evaluated.
|
private java.lang.String |
resourceType
The type of the AWS resource that was evaluated.
|
Constructor and Description |
---|
ComplianceByResource() |
Modifier and Type | Method and Description |
---|---|
ComplianceByResource |
clone() |
boolean |
equals(java.lang.Object obj) |
Compliance |
getCompliance()
Indicates whether the AWS resource complies with all of the AWS Config
rules that evaluated it.
|
java.lang.String |
getResourceId()
The ID of the AWS resource that was evaluated.
|
java.lang.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(java.lang.String resourceId)
The ID of the AWS resource that was evaluated.
|
void |
setResourceType(java.lang.String resourceType)
The type of the AWS resource that was evaluated.
|
java.lang.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(java.lang.String resourceId)
The ID of the AWS resource that was evaluated.
|
ComplianceByResource |
withResourceType(java.lang.String resourceType)
The type of the AWS resource that was evaluated.
|
private java.lang.String resourceType
The type of the AWS resource that was evaluated.
private java.lang.String resourceId
The ID of the AWS resource that was evaluated.
private Compliance compliance
Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.
public void setResourceType(java.lang.String resourceType)
The type of the AWS resource that was evaluated.
resourceType
- The type of the AWS resource that was evaluated.public java.lang.String getResourceType()
The type of the AWS resource that was evaluated.
public ComplianceByResource withResourceType(java.lang.String resourceType)
The type of the AWS resource that was evaluated.
resourceType
- The type of the AWS resource that was evaluated.public void setResourceId(java.lang.String resourceId)
The ID of the AWS resource that was evaluated.
resourceId
- The ID of the AWS resource that was evaluated.public java.lang.String getResourceId()
The ID of the AWS resource that was evaluated.
public ComplianceByResource withResourceId(java.lang.String resourceId)
The ID of the AWS resource that was evaluated.
resourceId
- The ID of the AWS resource that was evaluated.public void setCompliance(Compliance compliance)
Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.
compliance
- Indicates whether the AWS resource complies with all of the AWS
Config rules that evaluated it.public Compliance getCompliance()
Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.
public ComplianceByResource withCompliance(Compliance compliance)
Indicates whether the AWS resource complies with all of the AWS Config rules that evaluated it.
compliance
- Indicates whether the AWS resource complies with all of the AWS
Config rules that evaluated it.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ComplianceByResource clone()
clone
in class java.lang.Object