Class CfnAssessmentTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.inspector.CfnAssessmentTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssessmentTemplateProps>
- Enclosing interface:
CfnAssessmentTemplateProps
@Stability(Stable)
public static final class CfnAssessmentTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssessmentTemplateProps>
A builder for
CfnAssessmentTemplateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassessmentTargetArn
(String assessmentTargetArn) Sets the value ofCfnAssessmentTemplateProps.getAssessmentTargetArn()
assessmentTemplateName
(String assessmentTemplateName) Sets the value ofCfnAssessmentTemplateProps.getAssessmentTemplateName()
build()
Builds the configured instance.durationInSeconds
(Number durationInSeconds) Sets the value ofCfnAssessmentTemplateProps.getDurationInSeconds()
rulesPackageArns
(List<String> rulesPackageArns) Sets the value ofCfnAssessmentTemplateProps.getRulesPackageArns()
userAttributesForFindings
(List<? extends Object> userAttributesForFindings) Sets the value ofCfnAssessmentTemplateProps.getUserAttributesForFindings()
userAttributesForFindings
(IResolvable userAttributesForFindings) Sets the value ofCfnAssessmentTemplateProps.getUserAttributesForFindings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assessmentTargetArn
@Stability(Stable) public CfnAssessmentTemplateProps.Builder assessmentTargetArn(String assessmentTargetArn) Sets the value ofCfnAssessmentTemplateProps.getAssessmentTargetArn()
- Parameters:
assessmentTargetArn
- The ARN of the assessment target to be included in the assessment template. This parameter is required.- Returns:
this
-
durationInSeconds
@Stability(Stable) public CfnAssessmentTemplateProps.Builder durationInSeconds(Number durationInSeconds) Sets the value ofCfnAssessmentTemplateProps.getDurationInSeconds()
- Parameters:
durationInSeconds
- The duration of the assessment run in seconds. This parameter is required.- Returns:
this
-
rulesPackageArns
@Stability(Stable) public CfnAssessmentTemplateProps.Builder rulesPackageArns(List<String> rulesPackageArns) Sets the value ofCfnAssessmentTemplateProps.getRulesPackageArns()
- Parameters:
rulesPackageArns
- The ARNs of the rules packages that you want to use in the assessment template. This parameter is required.- Returns:
this
-
assessmentTemplateName
@Stability(Stable) public CfnAssessmentTemplateProps.Builder assessmentTemplateName(String assessmentTemplateName) Sets the value ofCfnAssessmentTemplateProps.getAssessmentTemplateName()
- Parameters:
assessmentTemplateName
- The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for the same assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.- Returns:
this
-
userAttributesForFindings
@Stability(Stable) public CfnAssessmentTemplateProps.Builder userAttributesForFindings(IResolvable userAttributesForFindings) Sets the value ofCfnAssessmentTemplateProps.getUserAttributesForFindings()
- Parameters:
userAttributesForFindings
- The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. Within an assessment template, each key must be unique.- Returns:
this
-
userAttributesForFindings
@Stability(Stable) public CfnAssessmentTemplateProps.Builder userAttributesForFindings(List<? extends Object> userAttributesForFindings) Sets the value ofCfnAssessmentTemplateProps.getUserAttributesForFindings()
- Parameters:
userAttributesForFindings
- The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. Within an assessment template, each key must be unique.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAssessmentTemplateProps>
- Returns:
- a new instance of
CfnAssessmentTemplateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-