Class CfnAssessmentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.auditmanager.CfnAssessmentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssessmentMixinProps>
- Enclosing interface:
CfnAssessmentMixinProps
@Stability(Stable)
public static final class CfnAssessmentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssessmentMixinProps>
A builder for
CfnAssessmentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassessmentReportsDestination(CfnAssessmentPropsMixin.AssessmentReportsDestinationProperty assessmentReportsDestination) Sets the value ofCfnAssessmentMixinProps.getAssessmentReportsDestination()assessmentReportsDestination(IResolvable assessmentReportsDestination) Sets the value ofCfnAssessmentMixinProps.getAssessmentReportsDestination()awsAccount(CfnAssessmentPropsMixin.AWSAccountProperty awsAccount) Sets the value ofCfnAssessmentMixinProps.getAwsAccount()awsAccount(IResolvable awsAccount) Sets the value ofCfnAssessmentMixinProps.getAwsAccount()build()Builds the configured instance.delegations(List<? extends Object> delegations) Sets the value ofCfnAssessmentMixinProps.getDelegations()delegations(IResolvable delegations) Sets the value ofCfnAssessmentMixinProps.getDelegations()description(String description) Sets the value ofCfnAssessmentMixinProps.getDescription()frameworkId(String frameworkId) Sets the value ofCfnAssessmentMixinProps.getFrameworkId()Sets the value ofCfnAssessmentMixinProps.getName()Sets the value ofCfnAssessmentMixinProps.getRoles()roles(IResolvable roles) Sets the value ofCfnAssessmentMixinProps.getRoles()Sets the value ofCfnAssessmentMixinProps.getScope()scope(IResolvable scope) Sets the value ofCfnAssessmentMixinProps.getScope()Sets the value ofCfnAssessmentMixinProps.getStatus()Sets the value ofCfnAssessmentMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assessmentReportsDestination
@Stability(Stable) public CfnAssessmentMixinProps.Builder assessmentReportsDestination(IResolvable assessmentReportsDestination) Sets the value ofCfnAssessmentMixinProps.getAssessmentReportsDestination()- Parameters:
assessmentReportsDestination- The destination that evidence reports are stored in for the assessment.- Returns:
this
-
assessmentReportsDestination
@Stability(Stable) public CfnAssessmentMixinProps.Builder assessmentReportsDestination(CfnAssessmentPropsMixin.AssessmentReportsDestinationProperty assessmentReportsDestination) Sets the value ofCfnAssessmentMixinProps.getAssessmentReportsDestination()- Parameters:
assessmentReportsDestination- The destination that evidence reports are stored in for the assessment.- Returns:
this
-
awsAccount
Sets the value ofCfnAssessmentMixinProps.getAwsAccount()- Parameters:
awsAccount- The AWS account that's associated with the assessment.- Returns:
this
-
awsAccount
@Stability(Stable) public CfnAssessmentMixinProps.Builder awsAccount(CfnAssessmentPropsMixin.AWSAccountProperty awsAccount) Sets the value ofCfnAssessmentMixinProps.getAwsAccount()- Parameters:
awsAccount- The AWS account that's associated with the assessment.- Returns:
this
-
delegations
Sets the value ofCfnAssessmentMixinProps.getDelegations()- Parameters:
delegations- The delegations that are associated with the assessment.- Returns:
this
-
delegations
@Stability(Stable) public CfnAssessmentMixinProps.Builder delegations(List<? extends Object> delegations) Sets the value ofCfnAssessmentMixinProps.getDelegations()- Parameters:
delegations- The delegations that are associated with the assessment.- Returns:
this
-
description
Sets the value ofCfnAssessmentMixinProps.getDescription()- Parameters:
description- The description of the assessment.- Returns:
this
-
frameworkId
Sets the value ofCfnAssessmentMixinProps.getFrameworkId()- Parameters:
frameworkId- The unique identifier for the framework.- Returns:
this
-
name
Sets the value ofCfnAssessmentMixinProps.getName()- Parameters:
name- The name of the assessment.- Returns:
this
-
roles
Sets the value ofCfnAssessmentMixinProps.getRoles()- Parameters:
roles- The roles that are associated with the assessment.- Returns:
this
-
roles
Sets the value ofCfnAssessmentMixinProps.getRoles()- Parameters:
roles- The roles that are associated with the assessment.- Returns:
this
-
scope
Sets the value ofCfnAssessmentMixinProps.getScope()- Parameters:
scope- The wrapper of AWS accounts and services that are in scope for the assessment.- Returns:
this
-
scope
@Stability(Stable) public CfnAssessmentMixinProps.Builder scope(CfnAssessmentPropsMixin.ScopeProperty scope) Sets the value ofCfnAssessmentMixinProps.getScope()- Parameters:
scope- The wrapper of AWS accounts and services that are in scope for the assessment.- Returns:
this
-
status
Sets the value ofCfnAssessmentMixinProps.getStatus()- Parameters:
status- The overall status of the assessment. When you create a new assessment, the initialStatusvalue is alwaysACTIVE. When you create an assessment, even if you specify the value asINACTIVE, the value overrides toACTIVE.After you create an assessment, you can change the value of the
Statusproperty at any time. For example, when you want to stop collecting evidence for your assessment, you can change the assessment status toINACTIVE.- Returns:
this
-
tags
Sets the value ofCfnAssessmentMixinProps.getTags()- Parameters:
tags- The tags that are associated with the assessment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssessmentMixinProps>- Returns:
- a new instance of
CfnAssessmentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-