Class AssetType

    • 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, category will return AssetCategoryType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from categoryAsString().

        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, category will return AssetCategoryType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from categoryAsString().

        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, colorMode will return ColorSchemeModeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from colorModeAsString().

        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, colorMode will return ColorSchemeModeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from colorModeAsString().

        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
      • 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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)