@Generated(value="software.amazon.awssdk:codegen") public final class Landmark extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Landmark.Builder,Landmark>
Indicates the location of the landmark on the face.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Landmark.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Landmark.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Landmark.Builder> |
serializableBuilderClass() |
Landmark.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
LandmarkType |
type()
Type of landmark.
|
String |
typeAsString()
Type of landmark.
|
Float |
x()
The x-coordinate from the top left of the landmark expressed as the ratio of the width of the image.
|
Float |
y()
The y-coordinate from the top left of the landmark expressed as the ratio of the height of the image.
|
copypublic LandmarkType type()
Type of landmark.
If the service returns an enum value that is not available in the current SDK version, type will return
LandmarkType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
LandmarkTypepublic String typeAsString()
Type of landmark.
If the service returns an enum value that is not available in the current SDK version, type will return
LandmarkType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
LandmarkTypepublic 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.
public 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.
public Landmark.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<Landmark.Builder,Landmark>public static Landmark.Builder builder()
public static Class<? extends Landmark.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.