public static interface AssessmentTemplate.Builder extends CopyableBuilder<AssessmentTemplate.Builder,AssessmentTemplate>
Modifier and Type | Method and Description |
---|---|
AssessmentTemplate.Builder |
arn(String arn)
The ARN of the assessment template.
|
AssessmentTemplate.Builder |
assessmentTargetArn(String assessmentTargetArn)
The ARN of the assessment target that corresponds to this assessment template.
|
AssessmentTemplate.Builder |
createdAt(Instant createdAt)
The time at which the assessment template is created.
|
AssessmentTemplate.Builder |
durationInSeconds(Integer durationInSeconds)
The duration in seconds specified for this assessment tempate.
|
AssessmentTemplate.Builder |
name(String name)
The name of the assessment template.
|
AssessmentTemplate.Builder |
rulesPackageArns(Collection<String> rulesPackageArns)
The rules packages that are specified for this assessment template.
|
AssessmentTemplate.Builder |
rulesPackageArns(String... rulesPackageArns)
The rules packages that are specified for this assessment template.
|
AssessmentTemplate.Builder |
userAttributesForFindings(Attribute... userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding from the assessment run that uses
this assessment template.
|
AssessmentTemplate.Builder |
userAttributesForFindings(Collection<Attribute> userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding from the assessment run that uses
this assessment template.
|
AssessmentTemplate.Builder |
userAttributesForFindings(Consumer<Attribute.Builder>... userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding from the assessment run that uses
this assessment template.
|
copy
applyMutation, build
AssessmentTemplate.Builder arn(String arn)
The ARN of the assessment template.
arn
- The ARN of the assessment template.AssessmentTemplate.Builder name(String name)
The name of the assessment template.
name
- The name of the assessment template.AssessmentTemplate.Builder assessmentTargetArn(String assessmentTargetArn)
The ARN of the assessment target that corresponds to this assessment template.
assessmentTargetArn
- The ARN of the assessment target that corresponds to this assessment template.AssessmentTemplate.Builder durationInSeconds(Integer durationInSeconds)
The duration in seconds specified for this assessment tempate. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).
durationInSeconds
- The duration in seconds specified for this assessment tempate. The default value is 3600 seconds (one
hour). The maximum value is 86400 seconds (one day).AssessmentTemplate.Builder rulesPackageArns(Collection<String> rulesPackageArns)
The rules packages that are specified for this assessment template.
rulesPackageArns
- The rules packages that are specified for this assessment template.AssessmentTemplate.Builder rulesPackageArns(String... rulesPackageArns)
The rules packages that are specified for this assessment template.
rulesPackageArns
- The rules packages that are specified for this assessment template.AssessmentTemplate.Builder userAttributesForFindings(Collection<Attribute> userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.
userAttributesForFindings
- The user-defined attributes that are assigned to every generated finding from the assessment run that
uses this assessment template.AssessmentTemplate.Builder userAttributesForFindings(Attribute... userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.
userAttributesForFindings
- The user-defined attributes that are assigned to every generated finding from the assessment run that
uses this assessment template.AssessmentTemplate.Builder userAttributesForFindings(Consumer<Attribute.Builder>... userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.
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)
AssessmentTemplate.Builder createdAt(Instant createdAt)
The time at which the assessment template is created.
createdAt
- The time at which the assessment template is created.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.