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

com.aliyun.sdk.service.chatbot20220408.models.CreateSimQuestionRequest 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 CreateSimQuestionRequest} extends {@link RequestModel}
 *
 * 

CreateSimQuestionRequest

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy