Class CfnUserProfileProps.Builder
java.lang.Object
software.amazon.awscdk.services.opsworks.CfnUserProfileProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserProfileProps>
- Enclosing interface:
CfnUserProfileProps
@Stability(Stable)
public static final class CfnUserProfileProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserProfileProps>
A builder for
CfnUserProfileProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowSelfManagement(Boolean allowSelfManagement) Sets the value ofCfnUserProfileProps.getAllowSelfManagement()allowSelfManagement(IResolvable allowSelfManagement) Sets the value ofCfnUserProfileProps.getAllowSelfManagement()build()Builds the configured instance.iamUserArn(String iamUserArn) Sets the value ofCfnUserProfileProps.getIamUserArn()sshPublicKey(String sshPublicKey) Sets the value ofCfnUserProfileProps.getSshPublicKey()sshUsername(String sshUsername) Sets the value ofCfnUserProfileProps.getSshUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iamUserArn
Sets the value ofCfnUserProfileProps.getIamUserArn()- Parameters:
iamUserArn- The user's IAM ARN. This parameter is required.- Returns:
this
-
allowSelfManagement
@Stability(Stable) public CfnUserProfileProps.Builder allowSelfManagement(Boolean allowSelfManagement) Sets the value ofCfnUserProfileProps.getAllowSelfManagement()- Parameters:
allowSelfManagement- Whether users can specify their own SSH public key through the My Settings page. For more information, see Managing User Permissions .- Returns:
this
-
allowSelfManagement
@Stability(Stable) public CfnUserProfileProps.Builder allowSelfManagement(IResolvable allowSelfManagement) Sets the value ofCfnUserProfileProps.getAllowSelfManagement()- Parameters:
allowSelfManagement- Whether users can specify their own SSH public key through the My Settings page. For more information, see Managing User Permissions .- Returns:
this
-
sshPublicKey
Sets the value ofCfnUserProfileProps.getSshPublicKey()- Parameters:
sshPublicKey- The user's SSH public key.- Returns:
this
-
sshUsername
Sets the value ofCfnUserProfileProps.getSshUsername()- Parameters:
sshUsername- The user's SSH user name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserProfileProps>- Returns:
- a new instance of
CfnUserProfileProps - Throws:
NullPointerException- if any required attribute was not provided
-