com.aliyun.sdk.service.chatbot20220408.models.CreateDSEntityValueRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-chatbot20220408 Show documentation
Show all versions of alibabacloud-chatbot20220408 Show documentation
Alibaba Cloud Chatbot (20220408) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.chatbot20220408.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDSEntityValueRequest} extends {@link RequestModel}
*
* CreateDSEntityValueRequest
*/
public class CreateDSEntityValueRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AgentKey")
private String agentKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Content")
@com.aliyun.core.annotation.Validation(required = true)
private String content;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EntityId")
@com.aliyun.core.annotation.Validation(required = true)
private Long entityId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Synonyms")
private java.util.List < String > synonyms;
private CreateDSEntityValueRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.agentKey = builder.agentKey;
this.content = builder.content;
this.entityId = builder.entityId;
this.instanceId = builder.instanceId;
this.synonyms = builder.synonyms;
}
public static Builder builder() {
return new Builder();
}
public static CreateDSEntityValueRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return agentKey
*/
public String getAgentKey() {
return this.agentKey;
}
/**
* @return content
*/
public String getContent() {
return this.content;
}
/**
* @return entityId
*/
public Long getEntityId() {
return this.entityId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return synonyms
*/
public java.util.List < String > getSynonyms() {
return this.synonyms;
}
public static final class Builder extends Request.Builder {
private String regionId;
private String agentKey;
private String content;
private Long entityId;
private String instanceId;
private java.util.List < String > synonyms;
private Builder() {
super();
}
private Builder(CreateDSEntityValueRequest request) {
super(request);
this.regionId = request.regionId;
this.agentKey = request.agentKey;
this.content = request.content;
this.entityId = request.entityId;
this.instanceId = request.instanceId;
this.synonyms = request.synonyms;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* AgentKey.
*/
public Builder agentKey(String agentKey) {
this.putQueryParameter("AgentKey", agentKey);
this.agentKey = agentKey;
return this;
}
/**
* Content.
*/
public Builder content(String content) {
this.putQueryParameter("Content", content);
this.content = content;
return this;
}
/**
* EntityId.
*/
public Builder entityId(Long entityId) {
this.putQueryParameter("EntityId", entityId);
this.entityId = entityId;
return this;
}
/**
* InstanceId.
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* Synonyms.
*/
public Builder synonyms(java.util.List < String > synonyms) {
String synonymsShrink = shrink(synonyms, "Synonyms", "json");
this.putBodyParameter("Synonyms", synonymsShrink);
this.synonyms = synonyms;
return this;
}
@Override
public CreateDSEntityValueRequest build() {
return new CreateDSEntityValueRequest(this);
}
}
}