@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Evidence extends Object implements Serializable, Cloneable, StructuredPojo
A record that contains the information needed to demonstrate compliance with the requirements specified by a control. Examples of evidence include change activity invoked by a user, or a system configuration snapshot.
Constructor and Description |
---|
Evidence() |
Modifier and Type | Method and Description |
---|---|
Evidence |
addAttributesEntry(String key,
String value)
Add a single Attributes entry
|
Evidence |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
Evidence |
clone() |
boolean |
equals(Object obj) |
String |
getAssessmentReportSelection()
Specifies whether the evidence is included in the assessment report.
|
Map<String,String> |
getAttributes()
The names and values that are used by the evidence event.
|
String |
getAwsAccountId()
The identifier for the Amazon Web Services account.
|
String |
getAwsOrganization()
The Amazon Web Services account that the evidence is collected from, and its organization path.
|
String |
getComplianceCheck()
The evaluation status for automated evidence that falls under the compliance check category.
|
String |
getDataSource()
The data source where the evidence was collected from.
|
String |
getEventName()
The name of the evidence event.
|
String |
getEventSource()
The Amazon Web Service that the evidence is collected from.
|
String |
getEvidenceAwsAccountId()
The identifier for the Amazon Web Services account.
|
String |
getEvidenceByType()
The type of automated evidence.
|
String |
getEvidenceFolderId()
The identifier for the folder that the evidence is stored in.
|
String |
getIamId()
The unique identifier for the user or role that's associated with the evidence.
|
String |
getId()
The identifier for the evidence.
|
List<Resource> |
getResourcesIncluded()
The list of resources that are assessed to generate the evidence.
|
Date |
getTime()
The timestamp that represents when the evidence was collected.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAssessmentReportSelection(String assessmentReportSelection)
Specifies whether the evidence is included in the assessment report.
|
void |
setAttributes(Map<String,String> attributes)
The names and values that are used by the evidence event.
|
void |
setAwsAccountId(String awsAccountId)
The identifier for the Amazon Web Services account.
|
void |
setAwsOrganization(String awsOrganization)
The Amazon Web Services account that the evidence is collected from, and its organization path.
|
void |
setComplianceCheck(String complianceCheck)
The evaluation status for automated evidence that falls under the compliance check category.
|
void |
setDataSource(String dataSource)
The data source where the evidence was collected from.
|
void |
setEventName(String eventName)
The name of the evidence event.
|
void |
setEventSource(String eventSource)
The Amazon Web Service that the evidence is collected from.
|
void |
setEvidenceAwsAccountId(String evidenceAwsAccountId)
The identifier for the Amazon Web Services account.
|
void |
setEvidenceByType(String evidenceByType)
The type of automated evidence.
|
void |
setEvidenceFolderId(String evidenceFolderId)
The identifier for the folder that the evidence is stored in.
|
void |
setIamId(String iamId)
The unique identifier for the user or role that's associated with the evidence.
|
void |
setId(String id)
The identifier for the evidence.
|
void |
setResourcesIncluded(Collection<Resource> resourcesIncluded)
The list of resources that are assessed to generate the evidence.
|
void |
setTime(Date time)
The timestamp that represents when the evidence was collected.
|
String |
toString()
Returns a string representation of this object.
|
Evidence |
withAssessmentReportSelection(String assessmentReportSelection)
Specifies whether the evidence is included in the assessment report.
|
Evidence |
withAttributes(Map<String,String> attributes)
The names and values that are used by the evidence event.
|
Evidence |
withAwsAccountId(String awsAccountId)
The identifier for the Amazon Web Services account.
|
Evidence |
withAwsOrganization(String awsOrganization)
The Amazon Web Services account that the evidence is collected from, and its organization path.
|
Evidence |
withComplianceCheck(String complianceCheck)
The evaluation status for automated evidence that falls under the compliance check category.
|
Evidence |
withDataSource(String dataSource)
The data source where the evidence was collected from.
|
Evidence |
withEventName(String eventName)
The name of the evidence event.
|
Evidence |
withEventSource(String eventSource)
The Amazon Web Service that the evidence is collected from.
|
Evidence |
withEvidenceAwsAccountId(String evidenceAwsAccountId)
The identifier for the Amazon Web Services account.
|
Evidence |
withEvidenceByType(String evidenceByType)
The type of automated evidence.
|
Evidence |
withEvidenceFolderId(String evidenceFolderId)
The identifier for the folder that the evidence is stored in.
|
Evidence |
withIamId(String iamId)
The unique identifier for the user or role that's associated with the evidence.
|
Evidence |
withId(String id)
The identifier for the evidence.
|
Evidence |
withResourcesIncluded(Collection<Resource> resourcesIncluded)
The list of resources that are assessed to generate the evidence.
|
Evidence |
withResourcesIncluded(Resource... resourcesIncluded)
The list of resources that are assessed to generate the evidence.
|
Evidence |
withTime(Date time)
The timestamp that represents when the evidence was collected.
|
public void setDataSource(String dataSource)
The data source where the evidence was collected from.
dataSource
- The data source where the evidence was collected from.public String getDataSource()
The data source where the evidence was collected from.
public Evidence withDataSource(String dataSource)
The data source where the evidence was collected from.
dataSource
- The data source where the evidence was collected from.public void setEvidenceAwsAccountId(String evidenceAwsAccountId)
The identifier for the Amazon Web Services account.
evidenceAwsAccountId
- The identifier for the Amazon Web Services account.public String getEvidenceAwsAccountId()
The identifier for the Amazon Web Services account.
public Evidence withEvidenceAwsAccountId(String evidenceAwsAccountId)
The identifier for the Amazon Web Services account.
evidenceAwsAccountId
- The identifier for the Amazon Web Services account.public void setTime(Date time)
The timestamp that represents when the evidence was collected.
time
- The timestamp that represents when the evidence was collected.public Date getTime()
The timestamp that represents when the evidence was collected.
public Evidence withTime(Date time)
The timestamp that represents when the evidence was collected.
time
- The timestamp that represents when the evidence was collected.public void setEventSource(String eventSource)
The Amazon Web Service that the evidence is collected from.
eventSource
- The Amazon Web Service that the evidence is collected from.public String getEventSource()
The Amazon Web Service that the evidence is collected from.
public Evidence withEventSource(String eventSource)
The Amazon Web Service that the evidence is collected from.
eventSource
- The Amazon Web Service that the evidence is collected from.public void setEventName(String eventName)
The name of the evidence event.
eventName
- The name of the evidence event.public String getEventName()
The name of the evidence event.
public Evidence withEventName(String eventName)
The name of the evidence event.
eventName
- The name of the evidence event.public void setEvidenceByType(String evidenceByType)
The type of automated evidence.
evidenceByType
- The type of automated evidence.public String getEvidenceByType()
The type of automated evidence.
public Evidence withEvidenceByType(String evidenceByType)
The type of automated evidence.
evidenceByType
- The type of automated evidence.public List<Resource> getResourcesIncluded()
The list of resources that are assessed to generate the evidence.
public void setResourcesIncluded(Collection<Resource> resourcesIncluded)
The list of resources that are assessed to generate the evidence.
resourcesIncluded
- The list of resources that are assessed to generate the evidence.public Evidence withResourcesIncluded(Resource... resourcesIncluded)
The list of resources that are assessed to generate the evidence.
NOTE: This method appends the values to the existing list (if any). Use
setResourcesIncluded(java.util.Collection)
or withResourcesIncluded(java.util.Collection)
if
you want to override the existing values.
resourcesIncluded
- The list of resources that are assessed to generate the evidence.public Evidence withResourcesIncluded(Collection<Resource> resourcesIncluded)
The list of resources that are assessed to generate the evidence.
resourcesIncluded
- The list of resources that are assessed to generate the evidence.public Map<String,String> getAttributes()
The names and values that are used by the evidence event. This includes an attribute name (such as
allowUsersToChangePassword
) and value (such as true
or false
).
allowUsersToChangePassword
) and value (such as true
or false
).public void setAttributes(Map<String,String> attributes)
The names and values that are used by the evidence event. This includes an attribute name (such as
allowUsersToChangePassword
) and value (such as true
or false
).
attributes
- The names and values that are used by the evidence event. This includes an attribute name (such as
allowUsersToChangePassword
) and value (such as true
or false
).public Evidence withAttributes(Map<String,String> attributes)
The names and values that are used by the evidence event. This includes an attribute name (such as
allowUsersToChangePassword
) and value (such as true
or false
).
attributes
- The names and values that are used by the evidence event. This includes an attribute name (such as
allowUsersToChangePassword
) and value (such as true
or false
).public Evidence addAttributesEntry(String key, String value)
public Evidence clearAttributesEntries()
public void setIamId(String iamId)
The unique identifier for the user or role that's associated with the evidence.
iamId
- The unique identifier for the user or role that's associated with the evidence.public String getIamId()
The unique identifier for the user or role that's associated with the evidence.
public Evidence withIamId(String iamId)
The unique identifier for the user or role that's associated with the evidence.
iamId
- The unique identifier for the user or role that's associated with the evidence.public void setComplianceCheck(String complianceCheck)
The evaluation status for automated evidence that falls under the compliance check category.
Audit Manager classes evidence as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.
Audit Manager classes evidence as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.
If a compliance check isn't available or applicable, then no compliance evaluation can be made for that evidence. This is the case if the evidence uses Config or Security Hub as the underlying data source type, but those services aren't enabled. This is also the case if the evidence uses an underlying data source type that doesn't support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).
complianceCheck
- The evaluation status for automated evidence that falls under the compliance check category.
Audit Manager classes evidence as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.
Audit Manager classes evidence as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.
If a compliance check isn't available or applicable, then no compliance evaluation can be made for that evidence. This is the case if the evidence uses Config or Security Hub as the underlying data source type, but those services aren't enabled. This is also the case if the evidence uses an underlying data source type that doesn't support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).
public String getComplianceCheck()
The evaluation status for automated evidence that falls under the compliance check category.
Audit Manager classes evidence as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.
Audit Manager classes evidence as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.
If a compliance check isn't available or applicable, then no compliance evaluation can be made for that evidence. This is the case if the evidence uses Config or Security Hub as the underlying data source type, but those services aren't enabled. This is also the case if the evidence uses an underlying data source type that doesn't support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).
Audit Manager classes evidence as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.
Audit Manager classes evidence as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.
If a compliance check isn't available or applicable, then no compliance evaluation can be made for that evidence. This is the case if the evidence uses Config or Security Hub as the underlying data source type, but those services aren't enabled. This is also the case if the evidence uses an underlying data source type that doesn't support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).
public Evidence withComplianceCheck(String complianceCheck)
The evaluation status for automated evidence that falls under the compliance check category.
Audit Manager classes evidence as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.
Audit Manager classes evidence as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.
If a compliance check isn't available or applicable, then no compliance evaluation can be made for that evidence. This is the case if the evidence uses Config or Security Hub as the underlying data source type, but those services aren't enabled. This is also the case if the evidence uses an underlying data source type that doesn't support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).
complianceCheck
- The evaluation status for automated evidence that falls under the compliance check category.
Audit Manager classes evidence as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.
Audit Manager classes evidence as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.
If a compliance check isn't available or applicable, then no compliance evaluation can be made for that evidence. This is the case if the evidence uses Config or Security Hub as the underlying data source type, but those services aren't enabled. This is also the case if the evidence uses an underlying data source type that doesn't support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).
public void setAwsOrganization(String awsOrganization)
The Amazon Web Services account that the evidence is collected from, and its organization path.
awsOrganization
- The Amazon Web Services account that the evidence is collected from, and its organization path.public String getAwsOrganization()
The Amazon Web Services account that the evidence is collected from, and its organization path.
public Evidence withAwsOrganization(String awsOrganization)
The Amazon Web Services account that the evidence is collected from, and its organization path.
awsOrganization
- The Amazon Web Services account that the evidence is collected from, and its organization path.public void setAwsAccountId(String awsAccountId)
The identifier for the Amazon Web Services account.
awsAccountId
- The identifier for the Amazon Web Services account.public String getAwsAccountId()
The identifier for the Amazon Web Services account.
public Evidence withAwsAccountId(String awsAccountId)
The identifier for the Amazon Web Services account.
awsAccountId
- The identifier for the Amazon Web Services account.public void setEvidenceFolderId(String evidenceFolderId)
The identifier for the folder that the evidence is stored in.
evidenceFolderId
- The identifier for the folder that the evidence is stored in.public String getEvidenceFolderId()
The identifier for the folder that the evidence is stored in.
public Evidence withEvidenceFolderId(String evidenceFolderId)
The identifier for the folder that the evidence is stored in.
evidenceFolderId
- The identifier for the folder that the evidence is stored in.public void setId(String id)
The identifier for the evidence.
id
- The identifier for the evidence.public String getId()
The identifier for the evidence.
public Evidence withId(String id)
The identifier for the evidence.
id
- The identifier for the evidence.public void setAssessmentReportSelection(String assessmentReportSelection)
Specifies whether the evidence is included in the assessment report.
assessmentReportSelection
- Specifies whether the evidence is included in the assessment report.public String getAssessmentReportSelection()
Specifies whether the evidence is included in the assessment report.
public Evidence withAssessmentReportSelection(String assessmentReportSelection)
Specifies whether the evidence is included in the assessment report.
assessmentReportSelection
- Specifies whether the evidence is included in the assessment report.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.