Class CfnManagedLoginBrandingMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cognito.CfnManagedLoginBrandingMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnManagedLoginBrandingMixinProps>
- Enclosing interface:
CfnManagedLoginBrandingMixinProps
@Stability(Stable)
public static final class CfnManagedLoginBrandingMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnManagedLoginBrandingMixinProps>
A builder for
CfnManagedLoginBrandingMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnManagedLoginBrandingMixinProps.getAssets()assets(IResolvable assets) Sets the value ofCfnManagedLoginBrandingMixinProps.getAssets()build()Builds the configured instance.Sets the value ofCfnManagedLoginBrandingMixinProps.getClientId()returnMergedResources(Boolean returnMergedResources) Sets the value ofCfnManagedLoginBrandingMixinProps.getReturnMergedResources()returnMergedResources(IResolvable returnMergedResources) Sets the value ofCfnManagedLoginBrandingMixinProps.getReturnMergedResources()Sets the value ofCfnManagedLoginBrandingMixinProps.getSettings()useCognitoProvidedValues(Boolean useCognitoProvidedValues) Sets the value ofCfnManagedLoginBrandingMixinProps.getUseCognitoProvidedValues()useCognitoProvidedValues(IResolvable useCognitoProvidedValues) Sets the value ofCfnManagedLoginBrandingMixinProps.getUseCognitoProvidedValues()userPoolId(String userPoolId) Sets the value ofCfnManagedLoginBrandingMixinProps.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assets
Sets the value ofCfnManagedLoginBrandingMixinProps.getAssets()- Parameters:
assets- An array of image files that you want to apply to roles like backgrounds, logos, and icons. Each object must also indicate whether it is for dark mode, light mode, or browser-adaptive mode.- Returns:
this
-
assets
@Stability(Stable) public CfnManagedLoginBrandingMixinProps.Builder assets(List<? extends Object> assets) Sets the value ofCfnManagedLoginBrandingMixinProps.getAssets()- Parameters:
assets- An array of image files that you want to apply to roles like backgrounds, logos, and icons. Each object must also indicate whether it is for dark mode, light mode, or browser-adaptive mode.- Returns:
this
-
clientId
Sets the value ofCfnManagedLoginBrandingMixinProps.getClientId()- Parameters:
clientId- The app client that you want to assign the branding style to. Each style is linked to an app client until you delete it.- Returns:
this
-
returnMergedResources
@Stability(Stable) public CfnManagedLoginBrandingMixinProps.Builder returnMergedResources(Boolean returnMergedResources) Sets the value ofCfnManagedLoginBrandingMixinProps.getReturnMergedResources()- Parameters:
returnMergedResources- Whentrue, returns values for branding options that are unchanged from Amazon Cognito defaults. Whenfalseor when you omit this parameter, returns only values that you customized in your branding style.- Returns:
this
-
returnMergedResources
@Stability(Stable) public CfnManagedLoginBrandingMixinProps.Builder returnMergedResources(IResolvable returnMergedResources) Sets the value ofCfnManagedLoginBrandingMixinProps.getReturnMergedResources()- Parameters:
returnMergedResources- Whentrue, returns values for branding options that are unchanged from Amazon Cognito defaults. Whenfalseor when you omit this parameter, returns only values that you customized in your branding style.- Returns:
this
-
settings
Sets the value ofCfnManagedLoginBrandingMixinProps.getSettings()- Parameters:
settings- A JSON file, encoded as aDocumenttype, with the the settings that you want to apply to your style. The following components are not currently implemented and reserved for future use:signUpinstructionssessionTimerDisplaylanguageSelector(for localization, see Managed login localization)
- Returns:
this
-
useCognitoProvidedValues
@Stability(Stable) public CfnManagedLoginBrandingMixinProps.Builder useCognitoProvidedValues(Boolean useCognitoProvidedValues) Sets the value ofCfnManagedLoginBrandingMixinProps.getUseCognitoProvidedValues()- Parameters:
useCognitoProvidedValues- When true, applies the default branding style options. This option reverts to default style options that are managed by Amazon Cognito. You can modify them later in the branding editor.When you specify
truefor this option, you must also omit values forSettingsandAssetsin the request.- Returns:
this
-
useCognitoProvidedValues
@Stability(Stable) public CfnManagedLoginBrandingMixinProps.Builder useCognitoProvidedValues(IResolvable useCognitoProvidedValues) Sets the value ofCfnManagedLoginBrandingMixinProps.getUseCognitoProvidedValues()- Parameters:
useCognitoProvidedValues- When true, applies the default branding style options. This option reverts to default style options that are managed by Amazon Cognito. You can modify them later in the branding editor.When you specify
truefor this option, you must also omit values forSettingsandAssetsin the request.- Returns:
this
-
userPoolId
Sets the value ofCfnManagedLoginBrandingMixinProps.getUserPoolId()- Parameters:
userPoolId- The user pool where the branding style is assigned.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnManagedLoginBrandingMixinProps>- Returns:
- a new instance of
CfnManagedLoginBrandingMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-