public static interface CreateAssessmentTemplateRequest.Builder extends InspectorRequest.Builder, CopyableBuilder<CreateAssessmentTemplateRequest.Builder,CreateAssessmentTemplateRequest>
Modifier and Type | Method and Description |
---|---|
CreateAssessmentTemplateRequest.Builder |
assessmentTargetArn(String assessmentTargetArn)
The ARN that specifies the assessment target for which you want to create the assessment template.
|
CreateAssessmentTemplateRequest.Builder |
assessmentTemplateName(String assessmentTemplateName)
The user-defined name that identifies the assessment template that you want to create.
|
CreateAssessmentTemplateRequest.Builder |
durationInSeconds(Integer durationInSeconds)
The duration of the assessment run in seconds.
|
CreateAssessmentTemplateRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateAssessmentTemplateRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateAssessmentTemplateRequest.Builder |
rulesPackageArns(Collection<String> rulesPackageArns)
The ARNs that specify the rules packages that you want to attach to the assessment template.
|
CreateAssessmentTemplateRequest.Builder |
rulesPackageArns(String... rulesPackageArns)
The ARNs that specify the rules packages that you want to attach to the assessment template.
|
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.
|
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.
|
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.
|
build
overrideConfiguration
copy
applyMutation, build
CreateAssessmentTemplateRequest.Builder assessmentTargetArn(String assessmentTargetArn)
The ARN that specifies the assessment target for which you want to create the assessment template.
assessmentTargetArn
- The ARN that specifies the assessment target for which you want to create the assessment template.CreateAssessmentTemplateRequest.Builder assessmentTemplateName(String 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.
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.CreateAssessmentTemplateRequest.Builder durationInSeconds(Integer durationInSeconds)
The duration of the assessment run in seconds. The default value is 3600 seconds (one hour).
durationInSeconds
- The duration of the assessment run in seconds. The default value is 3600 seconds (one hour).CreateAssessmentTemplateRequest.Builder rulesPackageArns(Collection<String> rulesPackageArns)
The ARNs that specify the rules packages that you want to attach to the assessment template.
rulesPackageArns
- The ARNs that specify the rules packages that you want to attach to the assessment template.CreateAssessmentTemplateRequest.Builder rulesPackageArns(String... rulesPackageArns)
The ARNs that specify the rules packages that you want to attach to the assessment template.
rulesPackageArns
- The ARNs that specify the rules packages that you want to attach to the assessment template.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.
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.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.
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.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 that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #userAttributesForFindings(List)
.userAttributesForFindings
- a consumer that will call methods on List.Builder
#userAttributesForFindings(List)
CreateAssessmentTemplateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateAssessmentTemplateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.