Interface CreateAssessmentTemplateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAssessmentTemplateRequest.Builder,,CreateAssessmentTemplateRequest> InspectorRequest.Builder,SdkBuilder<CreateAssessmentTemplateRequest.Builder,,CreateAssessmentTemplateRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAssessmentTemplateRequest
-
Method Summary
Modifier and TypeMethodDescriptionassessmentTargetArn(String assessmentTargetArn) The ARN that specifies the assessment target for which you want to create the assessment template.assessmentTemplateName(String assessmentTemplateName) The user-defined name that identifies the assessment template that you want to create.durationInSeconds(Integer durationInSeconds) The duration of the assessment run in seconds.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.rulesPackageArns(String... rulesPackageArns) The ARNs that specify the rules packages that you want to attach to the assessment template.rulesPackageArns(Collection<String> rulesPackageArns) The ARNs that specify the rules packages that you want to attach to the assessment template.userAttributesForFindings(Collection<Attribute> userAttributesForFindings) The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.userAttributesForFindings(Consumer<Attribute.Builder>... userAttributesForFindings) The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.userAttributesForFindings(Attribute... userAttributesForFindings) The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.inspector.model.InspectorRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
assessmentTargetArn
The ARN that specifies the assessment target for which you want to create the assessment template.
- Parameters:
assessmentTargetArn- The ARN that specifies the assessment target for which you want to create the assessment template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assessmentTemplateName
The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.
- Parameters:
assessmentTemplateName- The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationInSeconds
The duration of the assessment run in seconds.
- Parameters:
durationInSeconds- The duration of the assessment run in seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rulesPackageArns
The ARNs that specify the rules packages that you want to attach to the assessment template.
- Parameters:
rulesPackageArns- The ARNs that specify the rules packages that you want to attach to the assessment template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rulesPackageArns
The ARNs that specify the rules packages that you want to attach to the assessment template.
- Parameters:
rulesPackageArns- The ARNs that specify the rules packages that you want to attach to the assessment template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userAttributesForFindings
CreateAssessmentTemplateRequest.Builder userAttributesForFindings(Collection<Attribute> userAttributesForFindings) The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. An attribute is a key and value pair (an Attribute object). Within an assessment template, each key must be unique.
- Parameters:
userAttributesForFindings- The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. An attribute is a key and value pair (an Attribute object). Within an assessment template, each key must be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userAttributesForFindings
CreateAssessmentTemplateRequest.Builder userAttributesForFindings(Attribute... userAttributesForFindings) The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. An attribute is a key and value pair (an Attribute object). Within an assessment template, each key must be unique.
- Parameters:
userAttributesForFindings- The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. An attribute is a key and value pair (an Attribute object). Within an assessment template, each key must be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userAttributesForFindings
CreateAssessmentTemplateRequest.Builder userAttributesForFindings(Consumer<Attribute.Builder>... userAttributesForFindings) The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. An attribute is a key and value pair (an Attribute object). Within an assessment template, each key must be unique.
This is a convenience method that creates an instance of theAttribute.Builderavoiding the need to create one manually viaAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserAttributesForFindings(List<Attribute>).- Parameters:
userAttributesForFindings- a consumer that will call methods onAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateAssessmentTemplateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAssessmentTemplateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-