Package io.voucherify.client.model
Class ManagementProjectsMetadataSchemaDefinition
java.lang.Object
io.voucherify.client.model.ManagementProjectsMetadataSchemaDefinition
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManagementProjectsMetadataSchemaDefinition
extends Object
Custom definition name. This is also shown in **Project Settings** > **Metadata Schema** in the Voucherify Dashboard.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumIndicates the type of metadata. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNeItem(BigDecimal neItem) booleanexactLength(Integer exactLength) Create an instance of ManagementProjectsMetadataSchemaDefinition given an JSON stringgetArray()Indicates if the definition is an array.Indicates if the definition has been deleted from the schema.getEq()Get eqValue indicating the exact length.getGt()A property of `number` type must be `greater than` this value.getGte()A property of `number` type must be `greater than or equal` to this value.getLt()A property of the `number` type must have `less than` this value.getLte()A property of the `number` type must be `less than or equal` to this value.Value indicating the maximum length.Value indicating the minimum length.getNe()Array of values that are not allowed.The name of the custom resource (i.e.Indicates if this definition is optional or not for the resource.getType()Indicates the type of metadata.gt(BigDecimal gt) gte(BigDecimal gte) inthashCode()lt(BigDecimal lt) lte(BigDecimal lte) ne(List<BigDecimal> ne) objectType(String objectType) voidvoidsetDeleted(Boolean deleted) voidvoidsetExactLength(Integer exactLength) voidsetGt(BigDecimal gt) voidsetGte(BigDecimal gte) voidsetLt(BigDecimal lt) voidsetLte(BigDecimal lte) voidsetMaxLength(Integer maxLength) voidsetMinLength(Integer minLength) voidsetNe(List<BigDecimal> ne) voidsetObjectType(String objectType) voidsetOptional(Boolean optional) voidtoJson()Convert an instance of ManagementProjectsMetadataSchemaDefinition to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_OPTIONAL
- See Also:
-
SERIALIZED_NAME_ARRAY
- See Also:
-
SERIALIZED_NAME_DELETED
- See Also:
-
SERIALIZED_NAME_OBJECT_TYPE
- See Also:
-
SERIALIZED_NAME_MIN_LENGTH
- See Also:
-
SERIALIZED_NAME_MAX_LENGTH
- See Also:
-
SERIALIZED_NAME_EXACT_LENGTH
- See Also:
-
SERIALIZED_NAME_EQ
- See Also:
-
SERIALIZED_NAME_NE
- See Also:
-
SERIALIZED_NAME_LT
- See Also:
-
SERIALIZED_NAME_LTE
- See Also:
-
SERIALIZED_NAME_GT
- See Also:
-
SERIALIZED_NAME_GTE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ManagementProjectsMetadataSchemaDefinition
public ManagementProjectsMetadataSchemaDefinition()
-
-
Method Details
-
type
-
getType
Indicates the type of metadata. Note that `\"geopoint\"` type is a paid feature.- Returns:
- type
-
setType
-
optional
-
getOptional
Indicates if this definition is optional or not for the resource.- Returns:
- optional
-
setOptional
-
array
-
getArray
Indicates if the definition is an array.- Returns:
- array
-
setArray
-
deleted
-
getDeleted
Indicates if the definition has been deleted from the schema.- Returns:
- deleted
-
setDeleted
-
objectType
-
getObjectType
The name of the custom resource (i.e. a nested object) if the resource has been previously defined. Otherwise, it is `null` for other types.- Returns:
- objectType
-
setObjectType
-
minLength
-
getMinLength
Value indicating the minimum length. Available only for the `string` type.- Returns:
- minLength
-
setMinLength
-
maxLength
-
getMaxLength
Value indicating the maximum length. Available only for the `string` type.- Returns:
- maxLength
-
setMaxLength
-
exactLength
-
getExactLength
Value indicating the exact length. Available only for the `string` type.- Returns:
- exactLength
-
setExactLength
-
eq
-
addEqItem
-
getEq
Get eq- Returns:
- eq
-
setEq
-
ne
-
addNeItem
-
getNe
Array of values that are not allowed. Available only for the `number` type.- Returns:
- ne
-
setNe
-
lt
-
getLt
A property of the `number` type must have `less than` this value. The value should be up to two decimal places.- Returns:
- lt
-
setLt
-
lte
-
getLte
A property of the `number` type must be `less than or equal` to this value. The value should be up to two decimal places.- Returns:
- lte
-
setLte
-
gt
-
getGt
A property of `number` type must be `greater than` this value. The value should be up to two decimal places.- Returns:
- gt
-
setGt
-
gte
-
getGte
A property of `number` type must be `greater than or equal` to this value. The value should be up to two decimal places.- Returns:
- gte
-
setGte
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ManagementProjectsMetadataSchemaDefinition fromJson(String jsonString) throws IOException Create an instance of ManagementProjectsMetadataSchemaDefinition given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManagementProjectsMetadataSchemaDefinition
- Throws:
IOException- if the JSON string is invalid with respect to ManagementProjectsMetadataSchemaDefinition
-
toJson
Convert an instance of ManagementProjectsMetadataSchemaDefinition to an JSON string- Returns:
- JSON string
-