@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 triggered 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 used by the evidence event, including an attribute name (such as
allowUsersToChangePassword ) and value (such as true or false ). |
String |
getAwsAccountId()
The identifier for the specified AWS account.
|
String |
getAwsOrganization()
The AWS account from which the evidence is collected, and its AWS organization path.
|
String |
getComplianceCheck()
The evaluation status for evidence that falls under the compliance check category.
|
String |
getDataSource()
The data source from which the specified evidence was collected.
|
String |
getEventName()
The name of the specified evidence event.
|
String |
getEventSource()
The AWS service from which the evidence is collected.
|
String |
getEvidenceAwsAccountId()
The identifier for the specified AWS account.
|
String |
getEvidenceByType()
The type of automated evidence.
|
String |
getEvidenceFolderId()
The identifier for the folder in which the evidence is stored.
|
String |
getIamId()
The unique identifier for the IAM user or role associated with the evidence.
|
String |
getId()
The identifier for the evidence.
|
List<Resource> |
getResourcesIncluded()
The list of resources 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 used by the evidence event, including an attribute name (such as
allowUsersToChangePassword ) and value (such as true or false ). |
void |
setAwsAccountId(String awsAccountId)
The identifier for the specified AWS account.
|
void |
setAwsOrganization(String awsOrganization)
The AWS account from which the evidence is collected, and its AWS organization path.
|
void |
setComplianceCheck(String complianceCheck)
The evaluation status for evidence that falls under the compliance check category.
|
void |
setDataSource(String dataSource)
The data source from which the specified evidence was collected.
|
void |
setEventName(String eventName)
The name of the specified evidence event.
|
void |
setEventSource(String eventSource)
The AWS service from which the evidence is collected.
|
void |
setEvidenceAwsAccountId(String evidenceAwsAccountId)
The identifier for the specified AWS account.
|
void |
setEvidenceByType(String evidenceByType)
The type of automated evidence.
|
void |
setEvidenceFolderId(String evidenceFolderId)
The identifier for the folder in which the evidence is stored.
|
void |
setIamId(String iamId)
The unique identifier for the IAM user or role associated with the evidence.
|
void |
setId(String id)
The identifier for the evidence.
|
void |
setResourcesIncluded(Collection<Resource> resourcesIncluded)
The list of resources 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 used by the evidence event, including an attribute name (such as
allowUsersToChangePassword ) and value (such as true or false ). |
Evidence |
withAwsAccountId(String awsAccountId)
The identifier for the specified AWS account.
|
Evidence |
withAwsOrganization(String awsOrganization)
The AWS account from which the evidence is collected, and its AWS organization path.
|
Evidence |
withComplianceCheck(String complianceCheck)
The evaluation status for evidence that falls under the compliance check category.
|
Evidence |
withDataSource(String dataSource)
The data source from which the specified evidence was collected.
|
Evidence |
withEventName(String eventName)
The name of the specified evidence event.
|
Evidence |
withEventSource(String eventSource)
The AWS service from which the evidence is collected.
|
Evidence |
withEvidenceAwsAccountId(String evidenceAwsAccountId)
The identifier for the specified AWS account.
|
Evidence |
withEvidenceByType(String evidenceByType)
The type of automated evidence.
|
Evidence |
withEvidenceFolderId(String evidenceFolderId)
The identifier for the folder in which the evidence is stored.
|
Evidence |
withIamId(String iamId)
The unique identifier for the IAM user or role associated with the evidence.
|
Evidence |
withId(String id)
The identifier for the evidence.
|
Evidence |
withResourcesIncluded(Collection<Resource> resourcesIncluded)
The list of resources assessed to generate the evidence.
|
Evidence |
withResourcesIncluded(Resource... resourcesIncluded)
The list of resources 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 from which the specified evidence was collected.
dataSource
- The data source from which the specified evidence was collected.public String getDataSource()
The data source from which the specified evidence was collected.
public Evidence withDataSource(String dataSource)
The data source from which the specified evidence was collected.
dataSource
- The data source from which the specified evidence was collected.public void setEvidenceAwsAccountId(String evidenceAwsAccountId)
The identifier for the specified AWS account.
evidenceAwsAccountId
- The identifier for the specified AWS account.public String getEvidenceAwsAccountId()
The identifier for the specified AWS account.
public Evidence withEvidenceAwsAccountId(String evidenceAwsAccountId)
The identifier for the specified AWS account.
evidenceAwsAccountId
- The identifier for the specified AWS 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 AWS service from which the evidence is collected.
eventSource
- The AWS service from which the evidence is collected.public String getEventSource()
The AWS service from which the evidence is collected.
public Evidence withEventSource(String eventSource)
The AWS service from which the evidence is collected.
eventSource
- The AWS service from which the evidence is collected.public void setEventName(String eventName)
The name of the specified evidence event.
eventName
- The name of the specified evidence event.public String getEventName()
The name of the specified evidence event.
public Evidence withEventName(String eventName)
The name of the specified evidence event.
eventName
- The name of the specified 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 assessed to generate the evidence.
public void setResourcesIncluded(Collection<Resource> resourcesIncluded)
The list of resources assessed to generate the evidence.
resourcesIncluded
- The list of resources assessed to generate the evidence.public Evidence withResourcesIncluded(Resource... resourcesIncluded)
The list of resources 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 assessed to generate the evidence.public Evidence withResourcesIncluded(Collection<Resource> resourcesIncluded)
The list of resources assessed to generate the evidence.
resourcesIncluded
- The list of resources assessed to generate the evidence.public Map<String,String> getAttributes()
The names and values used by the evidence event, including 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 used by the evidence event, including an attribute name (such as
allowUsersToChangePassword
) and value (such as true
or false
).
attributes
- The names and values used by the evidence event, including an attribute name (such as
allowUsersToChangePassword
) and value (such as true
or false
).public Evidence withAttributes(Map<String,String> attributes)
The names and values used by the evidence event, including an attribute name (such as
allowUsersToChangePassword
) and value (such as true
or false
).
attributes
- The names and values used by the evidence event, including 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 IAM user or role associated with the evidence.
iamId
- The unique identifier for the IAM user or role associated with the evidence.public String getIamId()
The unique identifier for the IAM user or role associated with the evidence.
public Evidence withIamId(String iamId)
The unique identifier for the IAM user or role associated with the evidence.
iamId
- The unique identifier for the IAM user or role associated with the evidence.public void setComplianceCheck(String complianceCheck)
The evaluation status for evidence that falls under the compliance check category. For evidence collected from AWS Security Hub, a Pass or Fail result is shown. For evidence collected from AWS Config, a Compliant or Noncompliant result is shown.
complianceCheck
- The evaluation status for evidence that falls under the compliance check category. For evidence collected
from AWS Security Hub, a Pass or Fail result is shown. For evidence collected from AWS
Config, a Compliant or Noncompliant result is shown.public String getComplianceCheck()
The evaluation status for evidence that falls under the compliance check category. For evidence collected from AWS Security Hub, a Pass or Fail result is shown. For evidence collected from AWS Config, a Compliant or Noncompliant result is shown.
public Evidence withComplianceCheck(String complianceCheck)
The evaluation status for evidence that falls under the compliance check category. For evidence collected from AWS Security Hub, a Pass or Fail result is shown. For evidence collected from AWS Config, a Compliant or Noncompliant result is shown.
complianceCheck
- The evaluation status for evidence that falls under the compliance check category. For evidence collected
from AWS Security Hub, a Pass or Fail result is shown. For evidence collected from AWS
Config, a Compliant or Noncompliant result is shown.public void setAwsOrganization(String awsOrganization)
The AWS account from which the evidence is collected, and its AWS organization path.
awsOrganization
- The AWS account from which the evidence is collected, and its AWS organization path.public String getAwsOrganization()
The AWS account from which the evidence is collected, and its AWS organization path.
public Evidence withAwsOrganization(String awsOrganization)
The AWS account from which the evidence is collected, and its AWS organization path.
awsOrganization
- The AWS account from which the evidence is collected, and its AWS organization path.public void setAwsAccountId(String awsAccountId)
The identifier for the specified AWS account.
awsAccountId
- The identifier for the specified AWS account.public String getAwsAccountId()
The identifier for the specified AWS account.
public Evidence withAwsAccountId(String awsAccountId)
The identifier for the specified AWS account.
awsAccountId
- The identifier for the specified AWS account.public void setEvidenceFolderId(String evidenceFolderId)
The identifier for the folder in which the evidence is stored.
evidenceFolderId
- The identifier for the folder in which the evidence is stored.public String getEvidenceFolderId()
The identifier for the folder in which the evidence is stored.
public Evidence withEvidenceFolderId(String evidenceFolderId)
The identifier for the folder in which the evidence is stored.
evidenceFolderId
- The identifier for the folder in which the evidence is stored.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.