Class StandardAttributesMask.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.StandardAttributesMask.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StandardAttributesMask>
- Enclosing interface:
- StandardAttributesMask
@Stability(Stable)
public static final class StandardAttributesMask.Builder
extends Object
implements software.amazon.jsii.Builder<StandardAttributesMask>
A builder for
StandardAttributesMask-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofStandardAttributesMask.getAddress()Sets the value ofStandardAttributesMask.getBirthdate()build()Builds the configured instance.Sets the value ofStandardAttributesMask.getEmail()emailVerified(Boolean emailVerified) Sets the value ofStandardAttributesMask.getEmailVerified()familyName(Boolean familyName) Sets the value ofStandardAttributesMask.getFamilyName()Sets the value ofStandardAttributesMask.getFullname()Sets the value ofStandardAttributesMask.getGender()Sets the value ofStandardAttributesMask.getGivenName()lastUpdateTime(Boolean lastUpdateTime) Sets the value ofStandardAttributesMask.getLastUpdateTime()Sets the value ofStandardAttributesMask.getLocale()middleName(Boolean middleName) Sets the value ofStandardAttributesMask.getMiddleName()Sets the value ofStandardAttributesMask.getNickname()phoneNumber(Boolean phoneNumber) Sets the value ofStandardAttributesMask.getPhoneNumber()phoneNumberVerified(Boolean phoneNumberVerified) Sets the value ofStandardAttributesMask.getPhoneNumberVerified()preferredUsername(Boolean preferredUsername) Sets the value ofStandardAttributesMask.getPreferredUsername()profilePage(Boolean profilePage) Sets the value ofStandardAttributesMask.getProfilePage()profilePicture(Boolean profilePicture) Sets the value ofStandardAttributesMask.getProfilePicture()Sets the value ofStandardAttributesMask.getTimezone()Sets the value ofStandardAttributesMask.getWebsite()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
address
Sets the value ofStandardAttributesMask.getAddress()- Parameters:
address- The user's postal address.- Returns:
this
-
birthdate
Sets the value ofStandardAttributesMask.getBirthdate()- Parameters:
birthdate- The user's birthday, represented as an ISO 8601:2004 format.- Returns:
this
-
email
Sets the value ofStandardAttributesMask.getEmail()- Parameters:
email- The user's e-mail address, represented as an RFC 5322 [RFC5322] addr-spec.- Returns:
this
-
emailVerified
Sets the value ofStandardAttributesMask.getEmailVerified()- Parameters:
emailVerified- Whether the email address has been verified.- Returns:
this
-
familyName
Sets the value ofStandardAttributesMask.getFamilyName()- Parameters:
familyName- The surname or last name of the user.- Returns:
this
-
fullname
Sets the value ofStandardAttributesMask.getFullname()- Parameters:
fullname- The user's full name in displayable form, including all name parts, titles and suffixes.- Returns:
this
-
gender
Sets the value ofStandardAttributesMask.getGender()- Parameters:
gender- The user's gender.- Returns:
this
-
givenName
Sets the value ofStandardAttributesMask.getGivenName()- Parameters:
givenName- The user's first name or give name.- Returns:
this
-
lastUpdateTime
Sets the value ofStandardAttributesMask.getLastUpdateTime()- Parameters:
lastUpdateTime- The time, the user's information was last updated.- Returns:
this
-
locale
Sets the value ofStandardAttributesMask.getLocale()- Parameters:
locale- The user's locale, represented as a BCP47 [RFC5646] language tag.- Returns:
this
-
middleName
Sets the value ofStandardAttributesMask.getMiddleName()- Parameters:
middleName- The user's middle name.- Returns:
this
-
nickname
Sets the value ofStandardAttributesMask.getNickname()- Parameters:
nickname- The user's nickname or casual name.- Returns:
this
-
phoneNumber
Sets the value ofStandardAttributesMask.getPhoneNumber()- Parameters:
phoneNumber- The user's telephone number.- Returns:
this
-
phoneNumberVerified
@Stability(Stable) public StandardAttributesMask.Builder phoneNumberVerified(Boolean phoneNumberVerified) Sets the value ofStandardAttributesMask.getPhoneNumberVerified()- Parameters:
phoneNumberVerified- Whether the phone number has been verified.- Returns:
this
-
preferredUsername
@Stability(Stable) public StandardAttributesMask.Builder preferredUsername(Boolean preferredUsername) Sets the value ofStandardAttributesMask.getPreferredUsername()- Parameters:
preferredUsername- The user's preffered username, different from the immutable user name.- Returns:
this
-
profilePage
Sets the value ofStandardAttributesMask.getProfilePage()- Parameters:
profilePage- The URL to the user's profile page.- Returns:
this
-
profilePicture
Sets the value ofStandardAttributesMask.getProfilePicture()- Parameters:
profilePicture- The URL to the user's profile picture.- Returns:
this
-
timezone
Sets the value ofStandardAttributesMask.getTimezone()- Parameters:
timezone- The user's time zone.- Returns:
this
-
website
Sets the value ofStandardAttributesMask.getWebsite()- Parameters:
website- The URL to the user's web page or blog.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StandardAttributesMask>- Returns:
- a new instance of
StandardAttributesMask - Throws:
NullPointerException- if any required attribute was not provided
-