@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Landmark extends Object implements Serializable, Cloneable, StructuredPojo
Indicates the location of the landmark on the face.
| Constructor and Description |
|---|
Landmark() |
| Modifier and Type | Method and Description |
|---|---|
Landmark |
clone() |
boolean |
equals(Object obj) |
String |
getType()
Type of landmark.
|
Float |
getX()
The x-coordinate of the landmark expressed as a ratio of the width of the image.
|
Float |
getY()
The y-coordinate of the landmark expressed as a ratio of the height of the image.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setType(LandmarkType type)
Type of landmark.
|
void |
setType(String type)
Type of landmark.
|
void |
setX(Float x)
The x-coordinate of the landmark expressed as a ratio of the width of the image.
|
void |
setY(Float y)
The y-coordinate of the landmark expressed as a ratio of the height of the image.
|
String |
toString()
Returns a string representation of this object.
|
Landmark |
withType(LandmarkType type)
Type of landmark.
|
Landmark |
withType(String type)
Type of landmark.
|
Landmark |
withX(Float x)
The x-coordinate of the landmark expressed as a ratio of the width of the image.
|
Landmark |
withY(Float y)
The y-coordinate of the landmark expressed as a ratio of the height of the image.
|
public void setType(String type)
Type of landmark.
type - Type of landmark.LandmarkTypepublic String getType()
Type of landmark.
LandmarkTypepublic Landmark withType(String type)
Type of landmark.
type - Type of landmark.LandmarkTypepublic void setType(LandmarkType type)
Type of landmark.
type - Type of landmark.LandmarkTypepublic Landmark withType(LandmarkType type)
Type of landmark.
type - Type of landmark.LandmarkTypepublic void setX(Float x)
The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
x - The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is
measured from the left-side of the image. For example, if the image is 700 pixels wide and the
x-coordinate of the landmark is at 350 pixels, this value is 0.5.public Float getX()
The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
public Landmark withX(Float x)
The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
x - The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is
measured from the left-side of the image. For example, if the image is 700 pixels wide and the
x-coordinate of the landmark is at 350 pixels, this value is 0.5.public void setY(Float y)
The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.
y - The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is
measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of
the landmark is at 50 pixels, this value is 0.25.public Float getY()
The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.
public Landmark withY(Float y)
The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.
y - The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is
measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of
the landmark is at 50 pixels, this value is 0.25.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.