com.volcengine.service.vikingDB.common.UpdateCollectionParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
package com.volcengine.service.vikingDB.common;
import java.util.List;
import com.volcengine.service.vikingDB.VikingDBException;
import lombok.Data;
@Data
public class UpdateCollectionParam {
private String collectionName = null;
private List fields = null;
private String description = null;
private Integer isBuild = 0;
public UpdateCollectionParam setCollectionName(String collection_name) {
this.collectionName = collection_name;
return this;
}
public UpdateCollectionParam setFields(List fields) {
this.fields = fields;
return this;
}
public UpdateCollectionParam setDescription(String description) {
this.description = description;
return this;
}
public UpdateCollectionParam build() throws Exception{
VikingDBException vikingDBException = new VikingDBException(1000030, null, "Params does not exist");
if(this.collectionName == null){
throw vikingDBException.getErrorCodeException(1000030, null, "CollectionName does not exist");
} else if(this.fields == null){
throw vikingDBException.getErrorCodeException(1000030, null, "Fields does not exist");
} else {
this.isBuild = 1;
return this;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy