Package ai.reveng.model
Class CreateCollectionInputBody
java.lang.Object
ai.reveng.model.CreateCollectionInputBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CreateCollectionInputBody
extends Object
CreateCollectionInputBody
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumVisibility scope.static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBinariesItem(Long binariesItem) addTagsItem(String tagsItem) collectionName(String collectionName) collectionScope(CreateCollectionInputBody.CollectionScopeEnum collectionScope) description(String description) booleanstatic CreateCollectionInputBodyCreate an instance of CreateCollectionInputBody given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Optional binary IDs to link to the collection.Collection name.Visibility scope.Collection description.Model ID the collection is associated with.getTags()Optional tags to attach to the collection.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetBinaries(List<Long> binaries) voidsetCollectionName(String collectionName) voidsetCollectionScope(CreateCollectionInputBody.CollectionScopeEnum collectionScope) voidsetDescription(String description) voidsetModelId(Long modelId) voidtoJson()Convert an instance of CreateCollectionInputBody to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_BINARIES
- See Also:
-
SERIALIZED_NAME_COLLECTION_NAME
- See Also:
-
SERIALIZED_NAME_COLLECTION_SCOPE
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_MODEL_ID
- See Also:
-
SERIALIZED_NAME_TAGS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateCollectionInputBody
public CreateCollectionInputBody()
-
-
Method Details
-
binaries
-
addBinariesItem
-
getBinaries
Optional binary IDs to link to the collection.- Returns:
- binaries
-
setBinaries
-
collectionName
-
getCollectionName
Collection name.- Returns:
- collectionName
-
setCollectionName
-
collectionScope
public CreateCollectionInputBody collectionScope(@Nonnull CreateCollectionInputBody.CollectionScopeEnum collectionScope) -
getCollectionScope
Visibility scope.- Returns:
- collectionScope
-
setCollectionScope
public void setCollectionScope(@Nonnull CreateCollectionInputBody.CollectionScopeEnum collectionScope) -
description
-
getDescription
Collection description.- Returns:
- description
-
setDescription
-
modelId
-
getModelId
Model ID the collection is associated with. minimum: 1- Returns:
- modelId
-
setModelId
-
tags
-
addTagsItem
-
getTags
Optional tags to attach to the collection.- Returns:
- tags
-
setTags
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the CreateCollectionInputBody instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to CreateCollectionInputBody
-
fromJson
Create an instance of CreateCollectionInputBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateCollectionInputBody
- Throws:
IOException- if the JSON string is invalid with respect to CreateCollectionInputBody
-
toJson
Convert an instance of CreateCollectionInputBody to an JSON string- Returns:
- JSON string
-