Interface CreateAssessmentTemplateRequest.Builder

    • Method Detail

      • assessmentTargetArn

        CreateAssessmentTemplateRequest.Builder assessmentTargetArn​(String assessmentTargetArn)

        The ARN that specifies the assessment target for which you want to create the assessment template.

        Parameters:
        assessmentTargetArn - The ARN that specifies the assessment target for which you want to create the assessment template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • assessmentTemplateName

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • durationInSeconds

        CreateAssessmentTemplateRequest.Builder durationInSeconds​(Integer durationInSeconds)

        The duration of the assessment run in seconds.

        Parameters:
        durationInSeconds - The duration of the assessment run in seconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rulesPackageArns

        CreateAssessmentTemplateRequest.Builder rulesPackageArns​(Collection<String> rulesPackageArns)

        The ARNs that specify the rules packages that you want to attach to the assessment template.

        Parameters:
        rulesPackageArns - The ARNs that specify the rules packages that you want to attach to the assessment template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • rulesPackageArns

        CreateAssessmentTemplateRequest.Builder rulesPackageArns​(String... rulesPackageArns)

        The ARNs that specify the rules packages that you want to attach to the assessment template.

        Parameters:
        rulesPackageArns - The ARNs that specify the rules packages that you want to attach to the assessment template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userAttributesForFindings

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userAttributesForFindings

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userAttributesForFindings

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

        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:
        #userAttributesForFindings(java.util.Collection)