Class CfnManagedLoginBranding.AssetTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnManagedLoginBranding.AssetTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnManagedLoginBranding.AssetTypeProperty>
- Enclosing interface:
CfnManagedLoginBranding.AssetTypeProperty
@Stability(Stable)
public static final class CfnManagedLoginBranding.AssetTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnManagedLoginBranding.AssetTypeProperty>
A builder for
CfnManagedLoginBranding.AssetTypeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnManagedLoginBranding.AssetTypeProperty.getBytes()
Sets the value ofCfnManagedLoginBranding.AssetTypeProperty.getCategory()
Sets the value ofCfnManagedLoginBranding.AssetTypeProperty.getColorMode()
Sets the value ofCfnManagedLoginBranding.AssetTypeProperty.getExtension()
resourceId
(String resourceId) Sets the value ofCfnManagedLoginBranding.AssetTypeProperty.getResourceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
category
@Stability(Stable) public CfnManagedLoginBranding.AssetTypeProperty.Builder category(String category) Sets the value ofCfnManagedLoginBranding.AssetTypeProperty.getCategory()
- Parameters:
category
- The category that the image corresponds to in your managed login configuration. This parameter is required. Managed login has asset categories for different types of logos, backgrounds, and icons.- Returns:
this
-
colorMode
@Stability(Stable) public CfnManagedLoginBranding.AssetTypeProperty.Builder colorMode(String colorMode) Sets the value ofCfnManagedLoginBranding.AssetTypeProperty.getColorMode()
- Parameters:
colorMode
- The display-mode target of the asset: light, dark, or browser-adaptive. This parameter is required. For example, Amazon Cognito displays a dark-mode image only when the browser or application is in dark mode, but displays a browser-adaptive file in all contexts.- Returns:
this
-
extension
@Stability(Stable) public CfnManagedLoginBranding.AssetTypeProperty.Builder extension(String extension) Sets the value ofCfnManagedLoginBranding.AssetTypeProperty.getExtension()
- Parameters:
extension
- The file type of the image file. This parameter is required.- Returns:
this
-
bytes
Sets the value ofCfnManagedLoginBranding.AssetTypeProperty.getBytes()
- Parameters:
bytes
- The image file, in Base64-encoded binary.- Returns:
this
-
resourceId
@Stability(Stable) public CfnManagedLoginBranding.AssetTypeProperty.Builder resourceId(String resourceId) Sets the value ofCfnManagedLoginBranding.AssetTypeProperty.getResourceId()
- Parameters:
resourceId
- The ID of the asset.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnManagedLoginBranding.AssetTypeProperty>
- Returns:
- a new instance of
CfnManagedLoginBranding.AssetTypeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-