Package com.chatmotorapi.api.image
Enum MotorImageSize
- All Implemented Interfaces:
Serializable
,Comparable<MotorImageSize>
,java.lang.constant.Constable
public enum MotorImageSize extends Enum<MotorImageSize>
Enum representing various standard image sizes for the ChatMotor Image API.
This enum can be used to specify the desired dimensions for images.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static MotorImageSize
valueOf(String name)
Returns the enum constant of this type with the specified name.static MotorImageSize[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
X256
Represents an image size of 256x256 pixels. -
X512
Represents an image size of 512x512 pixels. -
X1024
Represents an image size of 1024x1024 pixels. -
X1792x
Represents an image size of 1792x1024 pixels. -
X1024x
Represents an image size of 1024x1792 pixels.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-