@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DominantColor extends Object implements Serializable, Cloneable, StructuredPojo
A description of the dominant colors in an image.
Constructor and Description |
---|
DominantColor() |
Modifier and Type | Method and Description |
---|---|
DominantColor |
clone() |
boolean |
equals(Object obj) |
Integer |
getBlue()
The Blue RGB value for a dominant color.
|
String |
getCSSColor()
The CSS color name of a dominant color.
|
Integer |
getGreen()
The Green RGB value for a dominant color.
|
String |
getHexCode()
The Hex code equivalent of the RGB values for a dominant color.
|
Float |
getPixelPercent()
The percentage of image pixels that have a given dominant color.
|
Integer |
getRed()
The Red RGB value for a dominant color.
|
String |
getSimplifiedColor()
One of 12 simplified color names applied to a dominant color.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBlue(Integer blue)
The Blue RGB value for a dominant color.
|
void |
setCSSColor(String cSSColor)
The CSS color name of a dominant color.
|
void |
setGreen(Integer green)
The Green RGB value for a dominant color.
|
void |
setHexCode(String hexCode)
The Hex code equivalent of the RGB values for a dominant color.
|
void |
setPixelPercent(Float pixelPercent)
The percentage of image pixels that have a given dominant color.
|
void |
setRed(Integer red)
The Red RGB value for a dominant color.
|
void |
setSimplifiedColor(String simplifiedColor)
One of 12 simplified color names applied to a dominant color.
|
String |
toString()
Returns a string representation of this object.
|
DominantColor |
withBlue(Integer blue)
The Blue RGB value for a dominant color.
|
DominantColor |
withCSSColor(String cSSColor)
The CSS color name of a dominant color.
|
DominantColor |
withGreen(Integer green)
The Green RGB value for a dominant color.
|
DominantColor |
withHexCode(String hexCode)
The Hex code equivalent of the RGB values for a dominant color.
|
DominantColor |
withPixelPercent(Float pixelPercent)
The percentage of image pixels that have a given dominant color.
|
DominantColor |
withRed(Integer red)
The Red RGB value for a dominant color.
|
DominantColor |
withSimplifiedColor(String simplifiedColor)
One of 12 simplified color names applied to a dominant color.
|
public void setRed(Integer red)
The Red RGB value for a dominant color.
red
- The Red RGB value for a dominant color.public Integer getRed()
The Red RGB value for a dominant color.
public DominantColor withRed(Integer red)
The Red RGB value for a dominant color.
red
- The Red RGB value for a dominant color.public void setBlue(Integer blue)
The Blue RGB value for a dominant color.
blue
- The Blue RGB value for a dominant color.public Integer getBlue()
The Blue RGB value for a dominant color.
public DominantColor withBlue(Integer blue)
The Blue RGB value for a dominant color.
blue
- The Blue RGB value for a dominant color.public void setGreen(Integer green)
The Green RGB value for a dominant color.
green
- The Green RGB value for a dominant color.public Integer getGreen()
The Green RGB value for a dominant color.
public DominantColor withGreen(Integer green)
The Green RGB value for a dominant color.
green
- The Green RGB value for a dominant color.public void setHexCode(String hexCode)
The Hex code equivalent of the RGB values for a dominant color.
hexCode
- The Hex code equivalent of the RGB values for a dominant color.public String getHexCode()
The Hex code equivalent of the RGB values for a dominant color.
public DominantColor withHexCode(String hexCode)
The Hex code equivalent of the RGB values for a dominant color.
hexCode
- The Hex code equivalent of the RGB values for a dominant color.public void setCSSColor(String cSSColor)
The CSS color name of a dominant color.
cSSColor
- The CSS color name of a dominant color.public String getCSSColor()
The CSS color name of a dominant color.
public DominantColor withCSSColor(String cSSColor)
The CSS color name of a dominant color.
cSSColor
- The CSS color name of a dominant color.public void setSimplifiedColor(String simplifiedColor)
One of 12 simplified color names applied to a dominant color.
simplifiedColor
- One of 12 simplified color names applied to a dominant color.public String getSimplifiedColor()
One of 12 simplified color names applied to a dominant color.
public DominantColor withSimplifiedColor(String simplifiedColor)
One of 12 simplified color names applied to a dominant color.
simplifiedColor
- One of 12 simplified color names applied to a dominant color.public void setPixelPercent(Float pixelPercent)
The percentage of image pixels that have a given dominant color.
pixelPercent
- The percentage of image pixels that have a given dominant color.public Float getPixelPercent()
The percentage of image pixels that have a given dominant color.
public DominantColor withPixelPercent(Float pixelPercent)
The percentage of image pixels that have a given dominant color.
pixelPercent
- The percentage of image pixels that have a given dominant color.public String toString()
toString
in class Object
Object.toString()
public DominantColor clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.