All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.chatbot20220408.models.CreateConnQuestionRequest Maven / Gradle / Ivy

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 CreateConnQuestionRequest} extends {@link RequestModel}
 *
 * 

CreateConnQuestionRequest

*/ public class CreateConnQuestionRequest 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.Body @com.aliyun.core.annotation.NameInMap("ConnQuestionId") @com.aliyun.core.annotation.Validation(required = true) private Long connQuestionId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("KnowledgeId") @com.aliyun.core.annotation.Validation(required = true) private Long knowledgeId; private CreateConnQuestionRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.agentKey = builder.agentKey; this.connQuestionId = builder.connQuestionId; this.knowledgeId = builder.knowledgeId; } public static Builder builder() { return new Builder(); } public static CreateConnQuestionRequest 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 connQuestionId */ public Long getConnQuestionId() { return this.connQuestionId; } /** * @return knowledgeId */ public Long getKnowledgeId() { return this.knowledgeId; } public static final class Builder extends Request.Builder { private String regionId; private String agentKey; private Long connQuestionId; private Long knowledgeId; private Builder() { super(); } private Builder(CreateConnQuestionRequest request) { super(request); this.regionId = request.regionId; this.agentKey = request.agentKey; this.connQuestionId = request.connQuestionId; this.knowledgeId = request.knowledgeId; } /** * 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; } /** * ConnQuestionId. */ public Builder connQuestionId(Long connQuestionId) { this.putBodyParameter("ConnQuestionId", connQuestionId); this.connQuestionId = connQuestionId; return this; } /** * KnowledgeId. */ public Builder knowledgeId(Long knowledgeId) { this.putBodyParameter("KnowledgeId", knowledgeId); this.knowledgeId = knowledgeId; return this; } @Override public CreateConnQuestionRequest build() { return new CreateConnQuestionRequest(this); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy