Interface AssessmentTemplate.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AssessmentTemplate.Builder,AssessmentTemplate>,SdkBuilder<AssessmentTemplate.Builder,AssessmentTemplate>,SdkPojo
- Enclosing class:
- AssessmentTemplate
public static interface AssessmentTemplate.Builder extends SdkPojo, CopyableBuilder<AssessmentTemplate.Builder,AssessmentTemplate>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AssessmentTemplate.Builderarn(String arn)The ARN of the assessment template.AssessmentTemplate.BuilderassessmentRunCount(Integer assessmentRunCount)The number of existing assessment runs associated with this assessment template.AssessmentTemplate.BuilderassessmentTargetArn(String assessmentTargetArn)The ARN of the assessment target that corresponds to this assessment template.AssessmentTemplate.BuildercreatedAt(Instant createdAt)The time at which the assessment template is created.AssessmentTemplate.BuilderdurationInSeconds(Integer durationInSeconds)The duration in seconds specified for this assessment template.AssessmentTemplate.BuilderlastAssessmentRunArn(String lastAssessmentRunArn)The Amazon Resource Name (ARN) of the most recent assessment run associated with this assessment template.AssessmentTemplate.Buildername(String name)The name of the assessment template.AssessmentTemplate.BuilderrulesPackageArns(String... rulesPackageArns)The rules packages that are specified for this assessment template.AssessmentTemplate.BuilderrulesPackageArns(Collection<String> rulesPackageArns)The rules packages that are specified for this assessment template.AssessmentTemplate.BuilderuserAttributesForFindings(Collection<Attribute> userAttributesForFindings)The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.AssessmentTemplate.BuilderuserAttributesForFindings(Consumer<Attribute.Builder>... userAttributesForFindings)The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template.AssessmentTemplate.BuilderuserAttributesForFindings(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 Detail
-
arn
AssessmentTemplate.Builder arn(String 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
AssessmentTemplate.Builder name(String 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
AssessmentTemplate.Builder assessmentTargetArn(String 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
AssessmentTemplate.Builder durationInSeconds(Integer 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
AssessmentTemplate.Builder rulesPackageArns(Collection<String> 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
AssessmentTemplate.Builder rulesPackageArns(String... 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
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.
- 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.Builderavoiding the need to create one manually viaAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#userAttributesForFindings(List.) - 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:
#userAttributesForFindings(java.util.Collection)
-
lastAssessmentRunArn
AssessmentTemplate.Builder lastAssessmentRunArn(String 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
AssessmentTemplate.Builder assessmentRunCount(Integer 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
AssessmentTemplate.Builder createdAt(Instant 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.
-
-