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 stringOptional 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()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
-
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
-