Interface Evidence.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Evidence.Builder,Evidence>,SdkBuilder<Evidence.Builder,Evidence>,SdkPojo
- Enclosing class:
- Evidence
public static interface Evidence.Builder extends SdkPojo, CopyableBuilder<Evidence.Builder,Evidence>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Evidence.BuilderassessmentReportSelection(String assessmentReportSelection)Specifies whether the evidence is included in the assessment report.Evidence.Builderattributes(Map<String,String> attributes)The names and values that are used by the evidence event.Evidence.BuilderawsAccountId(String awsAccountId)The identifier for the Amazon Web Services account.Evidence.BuilderawsOrganization(String awsOrganization)The Amazon Web Services account that the evidence is collected from, and its organization path.Evidence.BuildercomplianceCheck(String complianceCheck)The evaluation status for automated evidence that falls under the compliance check category.Evidence.BuilderdataSource(String dataSource)The data source where the evidence was collected from.Evidence.BuildereventName(String eventName)The name of the evidence event.Evidence.BuildereventSource(String eventSource)The Amazon Web Service that the evidence is collected from.Evidence.BuilderevidenceAwsAccountId(String evidenceAwsAccountId)The identifier for the Amazon Web Services account.Evidence.BuilderevidenceByType(String evidenceByType)The type of automated evidence.Evidence.BuilderevidenceFolderId(String evidenceFolderId)The identifier for the folder that the evidence is stored in.Evidence.BuilderiamId(String iamId)The unique identifier for the user or role that's associated with the evidence.Evidence.Builderid(String id)The identifier for the evidence.Evidence.BuilderresourcesIncluded(Collection<Resource> resourcesIncluded)The list of resources that are assessed to generate the evidence.Evidence.BuilderresourcesIncluded(Consumer<Resource.Builder>... resourcesIncluded)The list of resources that are assessed to generate the evidence.Evidence.BuilderresourcesIncluded(Resource... resourcesIncluded)The list of resources that are assessed to generate the evidence.Evidence.Buildertime(Instant time)The timestamp that represents when the evidence was collected.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
dataSource
Evidence.Builder dataSource(String dataSource)
The data source where the evidence was collected from.
- Parameters:
dataSource- The data source where the evidence was collected from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evidenceAwsAccountId
Evidence.Builder evidenceAwsAccountId(String evidenceAwsAccountId)
The identifier for the Amazon Web Services account.
- Parameters:
evidenceAwsAccountId- The identifier for the Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
time
Evidence.Builder time(Instant time)
The timestamp that represents when the evidence was collected.
- Parameters:
time- The timestamp that represents when the evidence was collected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventSource
Evidence.Builder eventSource(String eventSource)
The Amazon Web Service that the evidence is collected from.
- Parameters:
eventSource- The Amazon Web Service that the evidence is collected from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventName
Evidence.Builder eventName(String eventName)
The name of the evidence event.
- Parameters:
eventName- The name of the evidence event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evidenceByType
Evidence.Builder evidenceByType(String evidenceByType)
The type of automated evidence.
- Parameters:
evidenceByType- The type of automated evidence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesIncluded
Evidence.Builder resourcesIncluded(Collection<Resource> resourcesIncluded)
The list of resources that are assessed to generate the evidence.
- Parameters:
resourcesIncluded- The list of resources that are assessed to generate the evidence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesIncluded
Evidence.Builder resourcesIncluded(Resource... resourcesIncluded)
The list of resources that are assessed to generate the evidence.
- Parameters:
resourcesIncluded- The list of resources that are assessed to generate the evidence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesIncluded
Evidence.Builder resourcesIncluded(Consumer<Resource.Builder>... resourcesIncluded)
The list of resources that are assessed to generate the evidence.
This is a convenience method that creates an instance of theResource.Builderavoiding the need to create one manually viaResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resourcesIncluded(List.) - Parameters:
resourcesIncluded- a consumer that will call methods onResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resourcesIncluded(java.util.Collection)
-
attributes
Evidence.Builder attributes(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 astrueorfalse).- Parameters:
attributes- The names and values that are used by the evidence event. This includes an attribute name (such asallowUsersToChangePassword) and value (such astrueorfalse).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamId
Evidence.Builder iamId(String iamId)
The unique identifier for the user or role that's associated with the evidence.
- Parameters:
iamId- The unique identifier for the user or role that's associated with the evidence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
complianceCheck
Evidence.Builder complianceCheck(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).
- Parameters:
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).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
awsOrganization
Evidence.Builder awsOrganization(String awsOrganization)
The Amazon Web Services account that the evidence is collected from, and its organization path.
- Parameters:
awsOrganization- The Amazon Web Services account that the evidence is collected from, and its organization path.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsAccountId
Evidence.Builder awsAccountId(String awsAccountId)
The identifier for the Amazon Web Services account.
- Parameters:
awsAccountId- The identifier for the Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evidenceFolderId
Evidence.Builder evidenceFolderId(String evidenceFolderId)
The identifier for the folder that the evidence is stored in.
- Parameters:
evidenceFolderId- The identifier for the folder that the evidence is stored in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
Evidence.Builder id(String id)
The identifier for the evidence.
- Parameters:
id- The identifier for the evidence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assessmentReportSelection
Evidence.Builder assessmentReportSelection(String assessmentReportSelection)
Specifies whether the evidence is included in the assessment report.
- Parameters:
assessmentReportSelection- Specifies whether the evidence is included in the assessment report.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-