Class AssetType
- java.lang.Object
-
- software.amazon.awssdk.services.cognitoidentityprovider.model.AssetType
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AssetType.Builder,AssetType>
@Generated("software.amazon.awssdk:codegen") public final class AssetType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AssetType.Builder,AssetType>
An image file from a managed login branding style in a user pool.
This data type is a request parameter of CreateManagedLoginBranding and UpdateManagedLoginBranding, and a response parameter of DescribeManagedLoginBranding.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAssetType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AssetType.Builderbuilder()SdkBytesbytes()The image file, in Base64-encoded binary.AssetCategoryTypecategory()The category that the image corresponds to in your managed login configuration.StringcategoryAsString()The category that the image corresponds to in your managed login configuration.ColorSchemeModeTypecolorMode()The display-mode target of the asset: light, dark, or browser-adaptive.StringcolorModeAsString()The display-mode target of the asset: light, dark, or browser-adaptive.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)AssetExtensionTypeextension()The file type of the image file.StringextensionAsString()The file type of the image file.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringresourceId()The ID of the asset.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AssetType.Builder>serializableBuilderClass()AssetType.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
category
public final AssetCategoryType category()
The category that the image corresponds to in your managed login configuration. Managed login has asset categories for different types of logos, backgrounds, and icons.
If the service returns an enum value that is not available in the current SDK version,
categorywill returnAssetCategoryType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcategoryAsString().- Returns:
- The category that the image corresponds to in your managed login configuration. Managed login has asset categories for different types of logos, backgrounds, and icons.
- See Also:
AssetCategoryType
-
categoryAsString
public final String categoryAsString()
The category that the image corresponds to in your managed login configuration. Managed login has asset categories for different types of logos, backgrounds, and icons.
If the service returns an enum value that is not available in the current SDK version,
categorywill returnAssetCategoryType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcategoryAsString().- Returns:
- The category that the image corresponds to in your managed login configuration. Managed login has asset categories for different types of logos, backgrounds, and icons.
- See Also:
AssetCategoryType
-
colorMode
public final ColorSchemeModeType colorMode()
The display-mode target of the asset: light, dark, or browser-adaptive. 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.
If the service returns an enum value that is not available in the current SDK version,
colorModewill returnColorSchemeModeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcolorModeAsString().- Returns:
- The display-mode target of the asset: light, dark, or browser-adaptive. 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.
- See Also:
ColorSchemeModeType
-
colorModeAsString
public final String colorModeAsString()
The display-mode target of the asset: light, dark, or browser-adaptive. 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.
If the service returns an enum value that is not available in the current SDK version,
colorModewill returnColorSchemeModeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcolorModeAsString().- Returns:
- The display-mode target of the asset: light, dark, or browser-adaptive. 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.
- See Also:
ColorSchemeModeType
-
extension
public final AssetExtensionType extension()
The file type of the image file.
If the service returns an enum value that is not available in the current SDK version,
extensionwill returnAssetExtensionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromextensionAsString().- Returns:
- The file type of the image file.
- See Also:
AssetExtensionType
-
extensionAsString
public final String extensionAsString()
The file type of the image file.
If the service returns an enum value that is not available in the current SDK version,
extensionwill returnAssetExtensionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromextensionAsString().- Returns:
- The file type of the image file.
- See Also:
AssetExtensionType
-
bytes
public final SdkBytes bytes()
The image file, in Base64-encoded binary.
- Returns:
- The image file, in Base64-encoded binary.
-
resourceId
public final String resourceId()
The ID of the asset.
- Returns:
- The ID of the asset.
-
toBuilder
public AssetType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AssetType.Builder,AssetType>
-
builder
public static AssetType.Builder builder()
-
serializableBuilderClass
public static Class<? extends AssetType.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-