Class CfnAssessmentTemplateMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.inspector.CfnAssessmentTemplateMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssessmentTemplateMixinProps>
- Enclosing interface:
CfnAssessmentTemplateMixinProps
@Stability(Stable)
public static final class CfnAssessmentTemplateMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssessmentTemplateMixinProps>
A builder for
CfnAssessmentTemplateMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassessmentTargetArn(String assessmentTargetArn) Sets the value ofCfnAssessmentTemplateMixinProps.getAssessmentTargetArn()assessmentTargetArn(IAssessmentTargetRef assessmentTargetArn) Sets the value ofCfnAssessmentTemplateMixinProps.getAssessmentTargetArn()assessmentTemplateName(String assessmentTemplateName) Sets the value ofCfnAssessmentTemplateMixinProps.getAssessmentTemplateName()build()Builds the configured instance.durationInSeconds(Number durationInSeconds) Sets the value ofCfnAssessmentTemplateMixinProps.getDurationInSeconds()rulesPackageArns(List<String> rulesPackageArns) Sets the value ofCfnAssessmentTemplateMixinProps.getRulesPackageArns()userAttributesForFindings(List<? extends Object> userAttributesForFindings) Sets the value ofCfnAssessmentTemplateMixinProps.getUserAttributesForFindings()userAttributesForFindings(IResolvable userAttributesForFindings) Sets the value ofCfnAssessmentTemplateMixinProps.getUserAttributesForFindings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assessmentTargetArn
@Stability(Stable) public CfnAssessmentTemplateMixinProps.Builder assessmentTargetArn(String assessmentTargetArn) Sets the value ofCfnAssessmentTemplateMixinProps.getAssessmentTargetArn()- Parameters:
assessmentTargetArn- The ARN of the assessment target to be included in the assessment template.- Returns:
this
-
assessmentTargetArn
@Stability(Stable) public CfnAssessmentTemplateMixinProps.Builder assessmentTargetArn(IAssessmentTargetRef assessmentTargetArn) Sets the value ofCfnAssessmentTemplateMixinProps.getAssessmentTargetArn()- Parameters:
assessmentTargetArn- The ARN of the assessment target to be included in the assessment template.- Returns:
this
-
assessmentTemplateName
@Stability(Stable) public CfnAssessmentTemplateMixinProps.Builder assessmentTemplateName(String assessmentTemplateName) Sets the value ofCfnAssessmentTemplateMixinProps.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
-
durationInSeconds
@Stability(Stable) public CfnAssessmentTemplateMixinProps.Builder durationInSeconds(Number durationInSeconds) Sets the value ofCfnAssessmentTemplateMixinProps.getDurationInSeconds()- Parameters:
durationInSeconds- The duration of the assessment run in seconds.- Returns:
this
-
rulesPackageArns
@Stability(Stable) public CfnAssessmentTemplateMixinProps.Builder rulesPackageArns(List<String> rulesPackageArns) Sets the value ofCfnAssessmentTemplateMixinProps.getRulesPackageArns()- Parameters:
rulesPackageArns- The ARNs of the rules packages that you want to use in the assessment template.- Returns:
this
-
userAttributesForFindings
@Stability(Stable) public CfnAssessmentTemplateMixinProps.Builder userAttributesForFindings(IResolvable userAttributesForFindings) Sets the value ofCfnAssessmentTemplateMixinProps.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 CfnAssessmentTemplateMixinProps.Builder userAttributesForFindings(List<? extends Object> userAttributesForFindings) Sets the value ofCfnAssessmentTemplateMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssessmentTemplateMixinProps>- Returns:
- a new instance of
CfnAssessmentTemplateMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-