@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-07-31T10:27:15.903+03:00[Asia/Jerusalem]")
public class TransformationDescriptor
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TransformationDescriptor.CustomTypeAdapterFactory |
static class |
TransformationDescriptor.DescriptorTypeEnum
The type of transformation to use
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.HashSet<java.lang.String> |
openapiFields |
static java.util.HashSet<java.lang.String> |
openapiRequiredFields |
static java.lang.String |
SERIALIZED_NAME_CANONICAL_TRANSFORMATION |
static java.lang.String |
SERIALIZED_NAME_DESCRIPTOR_TYPE |
static java.lang.String |
SERIALIZED_NAME_NAMED_TRANSFORMATION |
| Constructor and Description |
|---|
TransformationDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
TransformationDescriptor |
canonicalTransformation(java.lang.String canonicalTransformation) |
TransformationDescriptor |
descriptorType(TransformationDescriptor.DescriptorTypeEnum descriptorType) |
boolean |
equals(java.lang.Object o) |
static TransformationDescriptor |
fromJson(java.lang.String jsonString)
Create an instance of TransformationDescriptor given an JSON string
|
java.lang.String |
getCanonicalTransformation()
A set of transformation parameters defined using Cloudinary URL syntax
|
TransformationDescriptor.DescriptorTypeEnum |
getDescriptorType()
The type of transformation to use
|
java.lang.String |
getNamedTransformation()
The name of a previously saved transformation
|
int |
hashCode() |
TransformationDescriptor |
namedTransformation(java.lang.String namedTransformation) |
void |
setCanonicalTransformation(java.lang.String canonicalTransformation) |
void |
setDescriptorType(TransformationDescriptor.DescriptorTypeEnum descriptorType) |
void |
setNamedTransformation(java.lang.String namedTransformation) |
java.lang.String |
toJson()
Convert an instance of TransformationDescriptor to an JSON string
|
java.lang.String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final java.lang.String SERIALIZED_NAME_DESCRIPTOR_TYPE
public static final java.lang.String SERIALIZED_NAME_NAMED_TRANSFORMATION
public static final java.lang.String SERIALIZED_NAME_CANONICAL_TRANSFORMATION
public static java.util.HashSet<java.lang.String> openapiFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
public TransformationDescriptor descriptorType(TransformationDescriptor.DescriptorTypeEnum descriptorType)
@Nonnull public TransformationDescriptor.DescriptorTypeEnum getDescriptorType()
public void setDescriptorType(TransformationDescriptor.DescriptorTypeEnum descriptorType)
public TransformationDescriptor namedTransformation(java.lang.String namedTransformation)
@Nullable public java.lang.String getNamedTransformation()
public void setNamedTransformation(java.lang.String namedTransformation)
public TransformationDescriptor canonicalTransformation(java.lang.String canonicalTransformation)
@Nullable public java.lang.String getCanonicalTransformation()
public void setCanonicalTransformation(java.lang.String canonicalTransformation)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void validateJsonObject(com.google.gson.JsonObject jsonObj)
throws java.io.IOException
jsonObj - JSON Objectjava.io.IOException - if the JSON Object is invalid with respect to TransformationDescriptorpublic static TransformationDescriptor fromJson(java.lang.String jsonString) throws java.io.IOException
jsonString - JSON stringjava.io.IOException - if the JSON string is invalid with respect to TransformationDescriptorpublic java.lang.String toJson()