com.aliyun.sdk.service.cloudapi20160714.models.CreateModelRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-cloudapi20160714 Show documentation
Show all versions of alibabacloud-cloudapi20160714 Show documentation
Alibaba Cloud CloudAPI (20160714) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link CreateModelRequest} extends {@link RequestModel}
*
* CreateModelRequest
*/
public class CreateModelRequest extends Request {
@Query
@NameInMap("Description")
private String description;
@Query
@NameInMap("GroupId")
@Validation(required = true)
private String groupId;
@Query
@NameInMap("ModelName")
@Validation(required = true)
private String modelName;
@Query
@NameInMap("Schema")
@Validation(required = true)
private String schema;
private CreateModelRequest(Builder builder) {
super(builder);
this.description = builder.description;
this.groupId = builder.groupId;
this.modelName = builder.modelName;
this.schema = builder.schema;
}
public static Builder builder() {
return new Builder();
}
public static CreateModelRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return groupId
*/
public String getGroupId() {
return this.groupId;
}
/**
* @return modelName
*/
public String getModelName() {
return this.modelName;
}
/**
* @return schema
*/
public String getSchema() {
return this.schema;
}
public static final class Builder extends Request.Builder {
private String description;
private String groupId;
private String modelName;
private String schema;
private Builder() {
super();
}
private Builder(CreateModelRequest request) {
super(request);
this.description = request.description;
this.groupId = request.groupId;
this.modelName = request.modelName;
this.schema = request.schema;
}
/**
* The description of the model definition.
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* The ID of the API group to which the model belongs.
*/
public Builder groupId(String groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* The name of the model. The name must be unique within the group.
*/
public Builder modelName(String modelName) {
this.putQueryParameter("ModelName", modelName);
this.modelName = modelName;
return this;
}
/**
* The definition of the model in JSON Schema.
*/
public Builder schema(String schema) {
this.putQueryParameter("Schema", schema);
this.schema = schema;
return this;
}
@Override
public CreateModelRequest build() {
return new CreateModelRequest(this);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy