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

com.aliyun.sdk.service.cloudapi20160714.models.CreateModelRequest Maven / Gradle / Ivy

There is a newer version: 3.0.24
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;

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 { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("GroupId") @com.aliyun.core.annotation.Validation(required = true) private String groupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ModelName") @com.aliyun.core.annotation.Validation(required = true) private String modelName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Schema") @com.aliyun.core.annotation.Validation(required = true) private String schema; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List < Tag> tag; private CreateModelRequest(Builder builder) { super(builder); this.description = builder.description; this.groupId = builder.groupId; this.modelName = builder.modelName; this.schema = builder.schema; this.tag = builder.tag; } 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; } /** * @return tag */ public java.util.List < Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder { private String description; private String groupId; private String modelName; private String schema; private java.util.List < Tag> tag; 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; this.tag = request.tag; } /** * 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; } /** * The object tags that match the lifecycle rule. You can specify multiple tags. */ public Builder tag(java.util.List < Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public CreateModelRequest build() { return new CreateModelRequest(this); } } public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** * The key of the tag. */ public Builder key(String key) { this.key = key; return this; } /** * The values of the tag. */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy