Class CfnAssessment.DelegationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.auditmanager.CfnAssessment.DelegationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssessment.DelegationProperty>
- Enclosing interface:
CfnAssessment.DelegationProperty
@Stability(Stable)
public static final class CfnAssessment.DelegationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssessment.DelegationProperty>
A builder for
CfnAssessment.DelegationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassessmentId
(String assessmentId) Sets the value ofCfnAssessment.DelegationProperty.getAssessmentId()
assessmentName
(String assessmentName) Sets the value ofCfnAssessment.DelegationProperty.getAssessmentName()
build()
Builds the configured instance.Sets the value ofCfnAssessment.DelegationProperty.getComment()
controlSetId
(String controlSetId) Sets the value ofCfnAssessment.DelegationProperty.getControlSetId()
Sets the value ofCfnAssessment.DelegationProperty.getCreatedBy()
creationTime
(Number creationTime) Sets the value ofCfnAssessment.DelegationProperty.getCreationTime()
Sets the value ofCfnAssessment.DelegationProperty.getId()
lastUpdated
(Number lastUpdated) Sets the value ofCfnAssessment.DelegationProperty.getLastUpdated()
Sets the value ofCfnAssessment.DelegationProperty.getRoleArn()
Sets the value ofCfnAssessment.DelegationProperty.getRoleType()
Sets the value ofCfnAssessment.DelegationProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assessmentId
@Stability(Stable) public CfnAssessment.DelegationProperty.Builder assessmentId(String assessmentId) Sets the value ofCfnAssessment.DelegationProperty.getAssessmentId()
- Parameters:
assessmentId
- The identifier for the assessment that's associated with the delegation.- Returns:
this
-
assessmentName
@Stability(Stable) public CfnAssessment.DelegationProperty.Builder assessmentName(String assessmentName) Sets the value ofCfnAssessment.DelegationProperty.getAssessmentName()
- Parameters:
assessmentName
- The name of the assessment that's associated with the delegation.- Returns:
this
-
comment
Sets the value ofCfnAssessment.DelegationProperty.getComment()
- Parameters:
comment
- The comment that's related to the delegation.- Returns:
this
-
controlSetId
@Stability(Stable) public CfnAssessment.DelegationProperty.Builder controlSetId(String controlSetId) Sets the value ofCfnAssessment.DelegationProperty.getControlSetId()
- Parameters:
controlSetId
- The identifier for the control set that's associated with the delegation.- Returns:
this
-
createdBy
Sets the value ofCfnAssessment.DelegationProperty.getCreatedBy()
- Parameters:
createdBy
- The user or role that created the delegation. Minimum :1
Maximum :
100
Pattern :
^[a-zA-Z0-9-_()\\[\\]\\s]+$
- Returns:
this
-
creationTime
@Stability(Stable) public CfnAssessment.DelegationProperty.Builder creationTime(Number creationTime) Sets the value ofCfnAssessment.DelegationProperty.getCreationTime()
- Parameters:
creationTime
- Specifies when the delegation was created.- Returns:
this
-
id
Sets the value ofCfnAssessment.DelegationProperty.getId()
- Parameters:
id
- The unique identifier for the delegation.- Returns:
this
-
lastUpdated
Sets the value ofCfnAssessment.DelegationProperty.getLastUpdated()
- Parameters:
lastUpdated
- Specifies when the delegation was last updated.- Returns:
this
-
roleArn
Sets the value ofCfnAssessment.DelegationProperty.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM role.- Returns:
this
-
roleType
Sets the value ofCfnAssessment.DelegationProperty.getRoleType()
- Parameters:
roleType
- The type of customer persona.In
CreateAssessment
,roleType
can only bePROCESS_OWNER
.In
UpdateSettings
,roleType
can only bePROCESS_OWNER
.In
BatchCreateDelegationByAssessment
,roleType
can only beRESOURCE_OWNER
.- Returns:
this
-
status
Sets the value ofCfnAssessment.DelegationProperty.getStatus()
- Parameters:
status
- The status of the delegation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAssessment.DelegationProperty>
- Returns:
- a new instance of
CfnAssessment.DelegationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-