com.aliyun.sdk.service.chatbot20220408.models.CreateFaqRequest 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 CreateFaqRequest} extends {@link RequestModel}
*
* CreateFaqRequest
*/
public class CreateFaqRequest 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("CategoryId")
@com.aliyun.core.annotation.Validation(required = true)
private Long categoryId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("EndDate")
private String endDate;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("SolutionContent")
private String solutionContent;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("SolutionType")
private Integer solutionType;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("StartDate")
private String startDate;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Title")
@com.aliyun.core.annotation.Validation(required = true)
private String title;
private CreateFaqRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.agentKey = builder.agentKey;
this.categoryId = builder.categoryId;
this.endDate = builder.endDate;
this.solutionContent = builder.solutionContent;
this.solutionType = builder.solutionType;
this.startDate = builder.startDate;
this.title = builder.title;
}
public static Builder builder() {
return new Builder();
}
public static CreateFaqRequest 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 categoryId
*/
public Long getCategoryId() {
return this.categoryId;
}
/**
* @return endDate
*/
public String getEndDate() {
return this.endDate;
}
/**
* @return solutionContent
*/
public String getSolutionContent() {
return this.solutionContent;
}
/**
* @return solutionType
*/
public Integer getSolutionType() {
return this.solutionType;
}
/**
* @return startDate
*/
public String getStartDate() {
return this.startDate;
}
/**
* @return title
*/
public String getTitle() {
return this.title;
}
public static final class Builder extends Request.Builder {
private String regionId;
private String agentKey;
private Long categoryId;
private String endDate;
private String solutionContent;
private Integer solutionType;
private String startDate;
private String title;
private Builder() {
super();
}
private Builder(CreateFaqRequest request) {
super(request);
this.regionId = request.regionId;
this.agentKey = request.agentKey;
this.categoryId = request.categoryId;
this.endDate = request.endDate;
this.solutionContent = request.solutionContent;
this.solutionType = request.solutionType;
this.startDate = request.startDate;
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;
}
/**
* CategoryId.
*/
public Builder categoryId(Long categoryId) {
this.putBodyParameter("CategoryId", categoryId);
this.categoryId = categoryId;
return this;
}
/**
* EndDate.
*/
public Builder endDate(String endDate) {
this.putBodyParameter("EndDate", endDate);
this.endDate = endDate;
return this;
}
/**
* SolutionContent.
*/
public Builder solutionContent(String solutionContent) {
this.putBodyParameter("SolutionContent", solutionContent);
this.solutionContent = solutionContent;
return this;
}
/**
* SolutionType.
*/
public Builder solutionType(Integer solutionType) {
this.putBodyParameter("SolutionType", solutionType);
this.solutionType = solutionType;
return this;
}
/**
* StartDate.
*/
public Builder startDate(String startDate) {
this.putBodyParameter("StartDate", startDate);
this.startDate = startDate;
return this;
}
/**
* Title.
*/
public Builder title(String title) {
this.putBodyParameter("Title", title);
this.title = title;
return this;
}
@Override
public CreateFaqRequest build() {
return new CreateFaqRequest(this);
}
}
}