Class ImageCropSpecification
- java.lang.Object
-
- software.amazon.spapi.models.apluscontent.v2020_11_01.ImageCropSpecification
-
public class ImageCropSpecification extends java.lang.Object
The instructions for optionally cropping an image. If no cropping is desired, set the dimensions to the original image size. If the image is cropped and no offset values are provided, then the coordinates of the top left corner of the cropped image, relative to the original image, are defaulted to (0,0).
-
-
Constructor Summary
Constructors Constructor Description ImageCropSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
ImageOffsets
getOffset()
Get offsetImageDimensions
getSize()
Get sizeint
hashCode()
ImageCropSpecification
offset(ImageOffsets offset)
void
setOffset(ImageOffsets offset)
void
setSize(ImageDimensions size)
ImageCropSpecification
size(ImageDimensions size)
java.lang.String
toString()
-
-
-
Method Detail
-
size
public ImageCropSpecification size(ImageDimensions size)
-
getSize
public ImageDimensions getSize()
Get size- Returns:
- size
-
setSize
public void setSize(ImageDimensions size)
-
offset
public ImageCropSpecification offset(ImageOffsets offset)
-
getOffset
public ImageOffsets getOffset()
Get offset- Returns:
- offset
-
setOffset
public void setOffset(ImageOffsets offset)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-