Class CfnAccessPolicy.AccessPolicyIdentityProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnAccessPolicy.AccessPolicyIdentityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessPolicy.AccessPolicyIdentityProperty>
- Enclosing interface:
CfnAccessPolicy.AccessPolicyIdentityProperty
@Stability(Stable)
public static final class CfnAccessPolicy.AccessPolicyIdentityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessPolicy.AccessPolicyIdentityProperty>
A builder for
CfnAccessPolicy.AccessPolicyIdentityProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.iamRole
(IResolvable iamRole) Sets the value ofCfnAccessPolicy.AccessPolicyIdentityProperty.getIamRole()
iamRole
(CfnAccessPolicy.IamRoleProperty iamRole) Sets the value ofCfnAccessPolicy.AccessPolicyIdentityProperty.getIamRole()
iamUser
(IResolvable iamUser) Sets the value ofCfnAccessPolicy.AccessPolicyIdentityProperty.getIamUser()
iamUser
(CfnAccessPolicy.IamUserProperty iamUser) Sets the value ofCfnAccessPolicy.AccessPolicyIdentityProperty.getIamUser()
user
(IResolvable user) Sets the value ofCfnAccessPolicy.AccessPolicyIdentityProperty.getUser()
Sets the value ofCfnAccessPolicy.AccessPolicyIdentityProperty.getUser()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iamRole
@Stability(Stable) public CfnAccessPolicy.AccessPolicyIdentityProperty.Builder iamRole(IResolvable iamRole) Sets the value ofCfnAccessPolicy.AccessPolicyIdentityProperty.getIamRole()
- Parameters:
iamRole
- An IAM role identity.- Returns:
this
-
iamRole
@Stability(Stable) public CfnAccessPolicy.AccessPolicyIdentityProperty.Builder iamRole(CfnAccessPolicy.IamRoleProperty iamRole) Sets the value ofCfnAccessPolicy.AccessPolicyIdentityProperty.getIamRole()
- Parameters:
iamRole
- An IAM role identity.- Returns:
this
-
iamUser
@Stability(Stable) public CfnAccessPolicy.AccessPolicyIdentityProperty.Builder iamUser(IResolvable iamUser) Sets the value ofCfnAccessPolicy.AccessPolicyIdentityProperty.getIamUser()
- Parameters:
iamUser
- An IAM user identity.- Returns:
this
-
iamUser
@Stability(Stable) public CfnAccessPolicy.AccessPolicyIdentityProperty.Builder iamUser(CfnAccessPolicy.IamUserProperty iamUser) Sets the value ofCfnAccessPolicy.AccessPolicyIdentityProperty.getIamUser()
- Parameters:
iamUser
- An IAM user identity.- Returns:
this
-
user
@Stability(Stable) public CfnAccessPolicy.AccessPolicyIdentityProperty.Builder user(IResolvable user) Sets the value ofCfnAccessPolicy.AccessPolicyIdentityProperty.getUser()
- Parameters:
user
- An IAM Identity Center user identity.- Returns:
this
-
user
@Stability(Stable) public CfnAccessPolicy.AccessPolicyIdentityProperty.Builder user(CfnAccessPolicy.UserProperty user) Sets the value ofCfnAccessPolicy.AccessPolicyIdentityProperty.getUser()
- Parameters:
user
- An IAM Identity Center user identity.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAccessPolicy.AccessPolicyIdentityProperty>
- Returns:
- a new instance of
CfnAccessPolicy.AccessPolicyIdentityProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-