@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) |
boolean |
equalsBySdkFields(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() |
String |
toString()
Returns a string representation of this object.
|
LandmarkType |
type()
Type of landmark.
|
String |
typeAsString()
Type of landmark.
|
Float |
x()
The x-coordinate of the landmark expressed as a ratio of the width of the image.
|
Float |
y()
The y-coordinate of the landmark expressed as a ratio of the height of the image.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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 final 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 final 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.
public final 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.
public Landmark.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Landmark.Builder,Landmark>public static Landmark.Builder builder()
public static Class<? extends Landmark.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.