Interface CreateAssessmentRequest.Builder
- All Superinterfaces:
AuditManagerRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateAssessmentRequest.Builder,
,CreateAssessmentRequest> SdkBuilder<CreateAssessmentRequest.Builder,
,CreateAssessmentRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateAssessmentRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateAssessmentRequest.Builder
assessmentReportsDestination
(Consumer<AssessmentReportsDestination.Builder> assessmentReportsDestination) The assessment report storage destination for the assessment that's being created.assessmentReportsDestination
(AssessmentReportsDestination assessmentReportsDestination) The assessment report storage destination for the assessment that's being created.description
(String description) The optional description of the assessment to be created.frameworkId
(String frameworkId) The identifier for the framework that the assessment will be created from.The name of the assessment to be created.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.roles
(Collection<Role> roles) The list of roles for the assessment.roles
(Consumer<Role.Builder>... roles) The list of roles for the assessment.The list of roles for the assessment.default CreateAssessmentRequest.Builder
scope
(Consumer<Scope.Builder> scope) Sets the value of the Scope property for this object.Sets the value of the Scope property for this object.The tags that are associated with the assessment.Methods inherited from interface software.amazon.awssdk.services.auditmanager.model.AuditManagerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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 Details
-
name
The name of the assessment to be created.
- Parameters:
name
- The name of the assessment to be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The optional description of the assessment to be created.
- Parameters:
description
- The optional description of the assessment to be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assessmentReportsDestination
CreateAssessmentRequest.Builder assessmentReportsDestination(AssessmentReportsDestination assessmentReportsDestination) The assessment report storage destination for the assessment that's being created.
- Parameters:
assessmentReportsDestination
- The assessment report storage destination for the assessment that's being created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assessmentReportsDestination
default CreateAssessmentRequest.Builder assessmentReportsDestination(Consumer<AssessmentReportsDestination.Builder> assessmentReportsDestination) The assessment report storage destination for the assessment that's being created.
This is a convenience method that creates an instance of theAssessmentReportsDestination.Builder
avoiding the need to create one manually viaAssessmentReportsDestination.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassessmentReportsDestination(AssessmentReportsDestination)
.- Parameters:
assessmentReportsDestination
- a consumer that will call methods onAssessmentReportsDestination.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scope
Sets the value of the Scope property for this object.- Parameters:
scope
- The new value for the Scope property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
Sets the value of the Scope property for this object. This is a convenience method that creates an instance of theScope.Builder
avoiding the need to create one manually viaScope.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscope(Scope)
.- Parameters:
scope
- a consumer that will call methods onScope.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roles
The list of roles for the assessment.
- Parameters:
roles
- The list of roles for the assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
The list of roles for the assessment.
- Parameters:
roles
- The list of roles for the assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
The list of roles for the assessment.
This is a convenience method that creates an instance of theRole.Builder
avoiding the need to create one manually viaRole.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toroles(List<Role>)
.- Parameters:
roles
- a consumer that will call methods onRole.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
frameworkId
The identifier for the framework that the assessment will be created from.
- Parameters:
frameworkId
- The identifier for the framework that the assessment will be created from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags that are associated with the assessment.
- Parameters:
tags
- The tags that are associated with the assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAssessmentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAssessmentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-