Class DominantColor
- java.lang.Object
-
- software.amazon.awssdk.services.rekognition.model.DominantColor
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DominantColor.Builder,DominantColor>
@Generated("software.amazon.awssdk:codegen") public final class DominantColor extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DominantColor.Builder,DominantColor>
A description of the dominant colors in an image.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDominantColor.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerblue()The Blue RGB value for a dominant color.static DominantColor.Builderbuilder()StringcssColor()The CSS color name of a dominant color.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)Integergreen()The Green RGB value for a dominant color.inthashCode()StringhexCode()The Hex code equivalent of the RGB values for a dominant color.FloatpixelPercent()The percentage of image pixels that have a given dominant color.Integerred()The Red RGB value for a dominant color.List<SdkField<?>>sdkFields()static Class<? extends DominantColor.Builder>serializableBuilderClass()StringsimplifiedColor()One of 12 simplified color names applied to a dominant color.DominantColor.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
-
red
public final Integer red()
The Red RGB value for a dominant color.
- Returns:
- The Red RGB value for a dominant color.
-
blue
public final Integer blue()
The Blue RGB value for a dominant color.
- Returns:
- The Blue RGB value for a dominant color.
-
green
public final Integer green()
The Green RGB value for a dominant color.
- Returns:
- The Green RGB value for a dominant color.
-
hexCode
public final String hexCode()
The Hex code equivalent of the RGB values for a dominant color.
- Returns:
- The Hex code equivalent of the RGB values for a dominant color.
-
cssColor
public final String cssColor()
The CSS color name of a dominant color.
- Returns:
- The CSS color name of a dominant color.
-
simplifiedColor
public final String simplifiedColor()
One of 12 simplified color names applied to a dominant color.
- Returns:
- One of 12 simplified color names applied to a dominant color.
-
pixelPercent
public final Float pixelPercent()
The percentage of image pixels that have a given dominant color.
- Returns:
- The percentage of image pixels that have a given dominant color.
-
toBuilder
public DominantColor.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DominantColor.Builder,DominantColor>
-
builder
public static DominantColor.Builder builder()
-
serializableBuilderClass
public static Class<? extends DominantColor.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.
-
-