Class CfnUser.UserIdentityInfoProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnUser.UserIdentityInfoProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUser.UserIdentityInfoProperty>
- Enclosing interface:
CfnUser.UserIdentityInfoProperty
@Stability(Stable)
public static final class CfnUser.UserIdentityInfoProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUser.UserIdentityInfoProperty>
A builder for
CfnUser.UserIdentityInfoProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnUser.UserIdentityInfoProperty.getEmail()
Sets the value ofCfnUser.UserIdentityInfoProperty.getFirstName()
Sets the value ofCfnUser.UserIdentityInfoProperty.getLastName()
Sets the value ofCfnUser.UserIdentityInfoProperty.getMobile()
secondaryEmail
(String secondaryEmail) Sets the value ofCfnUser.UserIdentityInfoProperty.getSecondaryEmail()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
email
Sets the value ofCfnUser.UserIdentityInfoProperty.getEmail()
- Parameters:
email
- The email address. If you are using SAML for identity management and include this parameter, an error is returned.- Returns:
this
-
firstName
Sets the value ofCfnUser.UserIdentityInfoProperty.getFirstName()
- Parameters:
firstName
- The first name. This is required if you are using Amazon Connect or SAML for identity management.- Returns:
this
-
lastName
Sets the value ofCfnUser.UserIdentityInfoProperty.getLastName()
- Parameters:
lastName
- The last name. This is required if you are using Amazon Connect or SAML for identity management.- Returns:
this
-
mobile
Sets the value ofCfnUser.UserIdentityInfoProperty.getMobile()
- Parameters:
mobile
- The user's mobile number.- Returns:
this
-
secondaryEmail
@Stability(Stable) public CfnUser.UserIdentityInfoProperty.Builder secondaryEmail(String secondaryEmail) Sets the value ofCfnUser.UserIdentityInfoProperty.getSecondaryEmail()
- Parameters:
secondaryEmail
- The user's secondary email address. If you provide a secondary email, the user receives email notifications -- other than password reset notifications -- to this email address instead of to their primary email address.Pattern :
(?=^.{0,265}$)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUser.UserIdentityInfoProperty>
- Returns:
- a new instance of
CfnUser.UserIdentityInfoProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-