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 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

      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 the Attribute.Builder avoiding the need to create one manually via Attribute.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to userAttributesForFindings(List<Attribute>).

      Parameters:
      userAttributesForFindings - a consumer that will call methods on Attribute.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.