@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 the landmark.
|
Float |
getX()
x-coordinate from the top left of the landmark expressed as the ratio of the width of the image.
|
Float |
getY()
y-coordinate from the top left of the landmark expressed as the 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 the landmark.
|
void |
setType(String type)
Type of the landmark.
|
void |
setX(Float x)
x-coordinate from the top left of the landmark expressed as the ratio of the width of the image.
|
void |
setY(Float y)
y-coordinate from the top left of the landmark expressed as the ratio of the height of the image.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Landmark |
withType(LandmarkType type)
Type of the landmark.
|
Landmark |
withType(String type)
Type of the landmark.
|
Landmark |
withX(Float x)
x-coordinate from the top left of the landmark expressed as the ratio of the width of the image.
|
Landmark |
withY(Float y)
y-coordinate from the top left of the landmark expressed as the ratio of the height of the image.
|
public void setType(String type)
Type of the landmark.
type - Type of the landmark.LandmarkTypepublic String getType()
Type of the landmark.
LandmarkTypepublic Landmark withType(String type)
Type of the landmark.
type - Type of the landmark.LandmarkTypepublic void setType(LandmarkType type)
Type of the landmark.
type - Type of the landmark.LandmarkTypepublic Landmark withType(LandmarkType type)
Type of the landmark.
type - Type of the landmark.LandmarkTypepublic void setX(Float x)
x-coordinate from the top left of the landmark expressed as the ratio of the width of the image. For example, if the images is 700x200 and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
x - x-coordinate from the top left of the landmark expressed as the ratio of the width of the image. For
example, if the images is 700x200 and the x-coordinate of the landmark is at 350 pixels, this value is
0.5.public Float getX()
x-coordinate from the top left of the landmark expressed as the ratio of the width of the image. For example, if the images is 700x200 and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
public Landmark withX(Float x)
x-coordinate from the top left of the landmark expressed as the ratio of the width of the image. For example, if the images is 700x200 and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
x - x-coordinate from the top left of the landmark expressed as the ratio of the width of the image. For
example, if the images is 700x200 and the x-coordinate of the landmark is at 350 pixels, this value is
0.5.public void setY(Float y)
y-coordinate from the top left of the landmark expressed as the ratio of the height of the image. For example, if the images is 700x200 and the y-coordinate of the landmark is at 100 pixels, this value is 0.5.
y - y-coordinate from the top left of the landmark expressed as the ratio of the height of the image. For
example, if the images is 700x200 and the y-coordinate of the landmark is at 100 pixels, this value is
0.5.public Float getY()
y-coordinate from the top left of the landmark expressed as the ratio of the height of the image. For example, if the images is 700x200 and the y-coordinate of the landmark is at 100 pixels, this value is 0.5.
public Landmark withY(Float y)
y-coordinate from the top left of the landmark expressed as the ratio of the height of the image. For example, if the images is 700x200 and the y-coordinate of the landmark is at 100 pixels, this value is 0.5.
y - y-coordinate from the top left of the landmark expressed as the ratio of the height of the image. For
example, if the images is 700x200 and the y-coordinate of the landmark is at 100 pixels, this value is
0.5.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.