Class CfnAssessment.RoleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.auditmanager.CfnAssessment.RoleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssessment.RoleProperty>
- Enclosing interface:
CfnAssessment.RoleProperty
@Stability(Stable)
public static final class CfnAssessment.RoleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssessment.RoleProperty>
A builder for
CfnAssessment.RoleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAssessment.RoleProperty.getRoleArn()Sets the value ofCfnAssessment.RoleProperty.getRoleType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnAssessment.RoleProperty.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role.- Returns:
this
-
roleType
Sets the value ofCfnAssessment.RoleProperty.getRoleType()- Parameters:
roleType- The type of customer persona.In
CreateAssessment,roleTypecan only bePROCESS_OWNER.In
UpdateSettings,roleTypecan only bePROCESS_OWNER.In
BatchCreateDelegationByAssessment,roleTypecan only beRESOURCE_OWNER.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssessment.RoleProperty>- Returns:
- a new instance of
CfnAssessment.RoleProperty - Throws:
NullPointerException- if any required attribute was not provided
-