Interface AssessmentTemplate.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AssessmentTemplate.Builder,
,AssessmentTemplate> SdkBuilder<AssessmentTemplate.Builder,
,AssessmentTemplate> SdkPojo
- Enclosing class:
AssessmentTemplate
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the assessment template.assessmentRunCount
(Integer assessmentRunCount) The number of existing assessment runs associated with this assessment template.assessmentTargetArn
(String assessmentTargetArn) The ARN of the assessment target that corresponds to this assessment template.The time at which the assessment template is created.durationInSeconds
(Integer durationInSeconds) The duration in seconds specified for this assessment template.lastAssessmentRunArn
(String lastAssessmentRunArn) The Amazon Resource Name (ARN) of the most recent assessment run associated with this assessment template.The name of the assessment template.rulesPackageArns
(String... rulesPackageArns) The rules packages that are specified for this assessment template.rulesPackageArns
(Collection<String> rulesPackageArns) The rules packages that are specified for this assessment template.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
(Consumer<Attribute.Builder>... userAttributesForFindings) The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.userAttributesForFindings
(Attribute... userAttributesForFindings) The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.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
-
arn
The ARN of the assessment template.
- Parameters:
arn
- The ARN of the assessment template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the assessment template.
- Parameters:
name
- The name of the assessment template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assessmentTargetArn
The ARN of the assessment target that corresponds to this assessment template.
- Parameters:
assessmentTargetArn
- The ARN of the assessment target that corresponds to this assessment template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationInSeconds
The duration in seconds specified for this assessment template. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).
- Parameters:
durationInSeconds
- The duration in seconds specified for this assessment template. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rulesPackageArns
The rules packages that are specified for this assessment template.
- Parameters:
rulesPackageArns
- The rules packages that are specified for this assessment template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rulesPackageArns
The rules packages that are specified for this assessment template.
- Parameters:
rulesPackageArns
- The rules packages that are specified for this assessment template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userAttributesForFindings
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.
- Parameters:
userAttributesForFindings
- The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userAttributesForFindings
The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.
- Parameters:
userAttributesForFindings
- The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userAttributesForFindings
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 method that creates an instance of theAttribute.Builder
avoiding the need to create one manually viaAttribute.builder()
.When the
Consumer
completes,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:
-
lastAssessmentRunArn
The Amazon Resource Name (ARN) of the most recent assessment run associated with this assessment template. This value exists only when the value of assessmentRunCount is greaterpa than zero.
- Parameters:
lastAssessmentRunArn
- The Amazon Resource Name (ARN) of the most recent assessment run associated with this assessment template. This value exists only when the value of assessmentRunCount is greaterpa than zero.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assessmentRunCount
The number of existing assessment runs associated with this assessment template. This value can be zero or a positive integer.
- Parameters:
assessmentRunCount
- The number of existing assessment runs associated with this assessment template. This value can be zero or a positive integer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The time at which the assessment template is created.
- Parameters:
createdAt
- The time at which the assessment template is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-