@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 from the top left of the landmark expressed as the ratio of the width of the image.
|
Float |
getY()
The 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 landmark.
|
void |
setType(String type)
Type of landmark.
|
void |
setX(Float x)
The x-coordinate from the top left of the landmark expressed as the ratio of the width of the image.
|
void |
setY(Float y)
The 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.
|
Landmark |
withType(LandmarkType type)
Type of landmark.
|
Landmark |
withType(String type)
Type of landmark.
|
Landmark |
withX(Float x)
The x-coordinate from the top left of the landmark expressed as the ratio of the width of the image.
|
Landmark |
withY(Float y)
The 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 landmark.
type
- Type of landmark.LandmarkType
public String getType()
Type of landmark.
LandmarkType
public Landmark withType(String type)
Type of landmark.
type
- Type of landmark.LandmarkType
public void setType(LandmarkType type)
Type of landmark.
type
- Type of landmark.LandmarkType
public Landmark withType(LandmarkType type)
Type of landmark.
type
- Type of landmark.LandmarkType
public void setX(Float x)
The x-coordinate from the top left of the landmark expressed as the ratio of the width of the image. For example, if the image is 700 x 200 and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
x
- The x-coordinate from the top left of the landmark expressed as the ratio of the width of the image. For
example, if the image is 700 x 200 and the x-coordinate of the landmark is at 350 pixels, this value is
0.5.public Float getX()
The x-coordinate from the top left of the landmark expressed as the ratio of the width of the image. For example, if the image is 700 x 200 and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
public Landmark withX(Float x)
The x-coordinate from the top left of the landmark expressed as the ratio of the width of the image. For example, if the image is 700 x 200 and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
x
- The x-coordinate from the top left of the landmark expressed as the ratio of the width of the image. For
example, if the image is 700 x 200 and the x-coordinate of the landmark is at 350 pixels, this value is
0.5.public void setY(Float y)
The y-coordinate from the top left of the landmark expressed as the ratio of the height of the image. For example, if the image is 700 x 200 and the y-coordinate of the landmark is at 100 pixels, this value is 0.5.
y
- The y-coordinate from the top left of the landmark expressed as the ratio of the height of the image. For
example, if the image is 700 x 200 and the y-coordinate of the landmark is at 100 pixels, this value is
0.5.public Float getY()
The y-coordinate from the top left of the landmark expressed as the ratio of the height of the image. For example, if the image is 700 x 200 and the y-coordinate of the landmark is at 100 pixels, this value is 0.5.
public Landmark withY(Float y)
The y-coordinate from the top left of the landmark expressed as the ratio of the height of the image. For example, if the image is 700 x 200 and the y-coordinate of the landmark is at 100 pixels, this value is 0.5.
y
- The y-coordinate from the top left of the landmark expressed as the ratio of the height of the image. For
example, if the image is 700 x 200 and the y-coordinate of the landmark is at 100 pixels, this value is
0.5.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.