com.aliyun.sdk.service.cloudapi20160714.models.ModifyModelRequest 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 ModifyModelRequest} extends {@link RequestModel}
*
* ModifyModelRequest
*/
public class ModifyModelRequest 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("NewModelName")
private String newModelName;
@Query
@NameInMap("Schema")
private String schema;
private ModifyModelRequest(Builder builder) {
super(builder);
this.description = builder.description;
this.groupId = builder.groupId;
this.modelName = builder.modelName;
this.newModelName = builder.newModelName;
this.schema = builder.schema;
}
public static Builder builder() {
return new Builder();
}
public static ModifyModelRequest 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 newModelName
*/
public String getNewModelName() {
return this.newModelName;
}
/**
* @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 newModelName;
private String schema;
private Builder() {
super();
}
private Builder(ModifyModelRequest request) {
super(request);
this.description = request.description;
this.groupId = request.groupId;
this.modelName = request.modelName;
this.newModelName = request.newModelName;
this.schema = request.schema;
}
/**
* The new definition of the model.
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* The new name of the model.
*/
public Builder groupId(String groupId) {
this.putQueryParameter("GroupId", groupId);
this.groupId = groupId;
return this;
}
/**
* The description of the new model definition.
*/
public Builder modelName(String modelName) {
this.putQueryParameter("ModelName", modelName);
this.modelName = modelName;
return this;
}
/**
* The ID of the request.
*/
public Builder newModelName(String newModelName) {
this.putQueryParameter("NewModelName", newModelName);
this.newModelName = newModelName;
return this;
}
/**
* The ID of the API group to which the model belongs.
*/
public Builder schema(String schema) {
this.putQueryParameter("Schema", schema);
this.schema = schema;
return this;
}
@Override
public ModifyModelRequest build() {
return new ModifyModelRequest(this);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy