index
int64 | repo_id
string | file_path
string | content
string |
|---|---|---|---|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ListRebalanceInfoRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ListRebalanceInfoRequest extends TeaModel {
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>kafka-test</p>
*/
@NameInMap("ConsumerId")
public String consumerId;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_pre-cn-v0h1cng0****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
public static ListRebalanceInfoRequest build(java.util.Map<String, ?> map) throws Exception {
ListRebalanceInfoRequest self = new ListRebalanceInfoRequest();
return TeaModel.build(map, self);
}
public ListRebalanceInfoRequest setConsumerId(String consumerId) {
this.consumerId = consumerId;
return this;
}
public String getConsumerId() {
return this.consumerId;
}
public ListRebalanceInfoRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public ListRebalanceInfoRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ListRebalanceInfoResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ListRebalanceInfoResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public ListRebalanceInfoResponseBody body;
public static ListRebalanceInfoResponse build(java.util.Map<String, ?> map) throws Exception {
ListRebalanceInfoResponse self = new ListRebalanceInfoResponse();
return TeaModel.build(map, self);
}
public ListRebalanceInfoResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ListRebalanceInfoResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public ListRebalanceInfoResponse setBody(ListRebalanceInfoResponseBody body) {
this.body = body;
return this;
}
public ListRebalanceInfoResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ListRebalanceInfoResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ListRebalanceInfoResponseBody extends TeaModel {
/**
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
@NameInMap("Data")
public ListRebalanceInfoResponseBodyData data;
/**
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <strong>example:</strong>
* <p>06084011-E093-46F3-A51F-4B19A8AD****</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static ListRebalanceInfoResponseBody build(java.util.Map<String, ?> map) throws Exception {
ListRebalanceInfoResponseBody self = new ListRebalanceInfoResponseBody();
return TeaModel.build(map, self);
}
public ListRebalanceInfoResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public ListRebalanceInfoResponseBody setData(ListRebalanceInfoResponseBodyData data) {
this.data = data;
return this;
}
public ListRebalanceInfoResponseBodyData getData() {
return this.data;
}
public ListRebalanceInfoResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public ListRebalanceInfoResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public ListRebalanceInfoResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
public static class ListRebalanceInfoResponseBodyDataRebalanceInfoList extends TeaModel {
/**
* <strong>example:</strong>
* <p>100</p>
*/
@NameInMap("Generation")
public Long generation;
/**
* <strong>example:</strong>
* <p>kafka-test</p>
*/
@NameInMap("GroupId")
public String groupId;
/**
* <strong>example:</strong>
* <p>1709199270</p>
*/
@NameInMap("LastRebalanceTimestamp")
public Long lastRebalanceTimestamp;
/**
* <strong>example:</strong>
* <p>removing member consumer-1-cd14eb9c-379b-4b8e-9bbd-76f147f8536f on LeaveGroup</p>
*/
@NameInMap("Reason")
public String reason;
/**
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("RebalanceSuccess")
public Boolean rebalanceSuccess;
/**
* <strong>example:</strong>
* <p>12</p>
*/
@NameInMap("RebalanceTimeConsuming")
public Long rebalanceTimeConsuming;
public static ListRebalanceInfoResponseBodyDataRebalanceInfoList build(java.util.Map<String, ?> map) throws Exception {
ListRebalanceInfoResponseBodyDataRebalanceInfoList self = new ListRebalanceInfoResponseBodyDataRebalanceInfoList();
return TeaModel.build(map, self);
}
public ListRebalanceInfoResponseBodyDataRebalanceInfoList setGeneration(Long generation) {
this.generation = generation;
return this;
}
public Long getGeneration() {
return this.generation;
}
public ListRebalanceInfoResponseBodyDataRebalanceInfoList setGroupId(String groupId) {
this.groupId = groupId;
return this;
}
public String getGroupId() {
return this.groupId;
}
public ListRebalanceInfoResponseBodyDataRebalanceInfoList setLastRebalanceTimestamp(Long lastRebalanceTimestamp) {
this.lastRebalanceTimestamp = lastRebalanceTimestamp;
return this;
}
public Long getLastRebalanceTimestamp() {
return this.lastRebalanceTimestamp;
}
public ListRebalanceInfoResponseBodyDataRebalanceInfoList setReason(String reason) {
this.reason = reason;
return this;
}
public String getReason() {
return this.reason;
}
public ListRebalanceInfoResponseBodyDataRebalanceInfoList setRebalanceSuccess(Boolean rebalanceSuccess) {
this.rebalanceSuccess = rebalanceSuccess;
return this;
}
public Boolean getRebalanceSuccess() {
return this.rebalanceSuccess;
}
public ListRebalanceInfoResponseBodyDataRebalanceInfoList setRebalanceTimeConsuming(Long rebalanceTimeConsuming) {
this.rebalanceTimeConsuming = rebalanceTimeConsuming;
return this;
}
public Long getRebalanceTimeConsuming() {
return this.rebalanceTimeConsuming;
}
}
public static class ListRebalanceInfoResponseBodyData extends TeaModel {
@NameInMap("RebalanceInfoList")
public java.util.List<ListRebalanceInfoResponseBodyDataRebalanceInfoList> rebalanceInfoList;
public static ListRebalanceInfoResponseBodyData build(java.util.Map<String, ?> map) throws Exception {
ListRebalanceInfoResponseBodyData self = new ListRebalanceInfoResponseBodyData();
return TeaModel.build(map, self);
}
public ListRebalanceInfoResponseBodyData setRebalanceInfoList(java.util.List<ListRebalanceInfoResponseBodyDataRebalanceInfoList> rebalanceInfoList) {
this.rebalanceInfoList = rebalanceInfoList;
return this;
}
public java.util.List<ListRebalanceInfoResponseBodyDataRebalanceInfoList> getRebalanceInfoList() {
return this.rebalanceInfoList;
}
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ListTagResourcesRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ListTagResourcesRequest extends TeaModel {
/**
* <p>The token that determines the start point of the next query.</p>
*
* <strong>example:</strong>
* <p>caeba0bbb2be03f84eb48b699f0a4883</p>
*/
@NameInMap("NextToken")
public String nextToken;
/**
* <p>The ID of the region in which the resource is deployed.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The ID of the resource whose tags you want to query. The resource ID follows the following rules:</p>
* <ul>
* <li>Instance ID: instanceId</li>
* <li>Topic ID: Kafka_alikafka_instanceId_topic</li>
* <li>Group ID: Kafka_alikafka_instanceId_consumerGroup</li>
* </ul>
* <p>For example, if the instance ID is alikafka_post-cn-v0h1fgs2xxxx, the topic name is test-topic, and the group name is test-consumer-group, the resource IDs are alikafka_post-cn-v0h1fgs2xxxx, Kafka_alikafka_post-cn-v0h1fgs2xxxx_test-topic, and Kafka_alikafka_post-cn-v0h1fgs2xxxx_test-consumer-group, respectively.</p>
* <blockquote>
* <p> You must configure one of <strong>ResourceId</strong> and <strong>Tag</strong> to query the tags that are bound to a resource. Otherwise, the request fails.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-v0h1fgs2****</p>
*/
@NameInMap("ResourceId")
public java.util.List<String> resourceId;
/**
* <p>The type of the resource whose tags you want to query. The value is an enumerated value. Valid values:</p>
* <ul>
* <li><strong>INSTANCE</strong></li>
* <li><strong>TOPIC</strong></li>
* <li><strong>CONSUMERGROUP</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>INSTANCE</p>
*/
@NameInMap("ResourceType")
public String resourceType;
/**
* <p>The tags.</p>
*/
@NameInMap("Tag")
public java.util.List<ListTagResourcesRequestTag> tag;
public static ListTagResourcesRequest build(java.util.Map<String, ?> map) throws Exception {
ListTagResourcesRequest self = new ListTagResourcesRequest();
return TeaModel.build(map, self);
}
public ListTagResourcesRequest setNextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
public String getNextToken() {
return this.nextToken;
}
public ListTagResourcesRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public ListTagResourcesRequest setResourceId(java.util.List<String> resourceId) {
this.resourceId = resourceId;
return this;
}
public java.util.List<String> getResourceId() {
return this.resourceId;
}
public ListTagResourcesRequest setResourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
public String getResourceType() {
return this.resourceType;
}
public ListTagResourcesRequest setTag(java.util.List<ListTagResourcesRequestTag> tag) {
this.tag = tag;
return this;
}
public java.util.List<ListTagResourcesRequestTag> getTag() {
return this.tag;
}
public static class ListTagResourcesRequestTag extends TeaModel {
/**
* <p>The key of the resource tag.</p>
* <ul>
* <li>If you leave this parameter empty, the keys of all tags are matched.</li>
* <li>The tag key can be up to 128 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun.</li>
* </ul>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
@NameInMap("Key")
public String key;
/**
* <p>The value of the resource tag.</p>
* <ul>
* <li>If you leave Key empty, you must also leave this parameter empty. If you leave this parameter empty, the values of all tags are matched.</li>
* <li>The tag value can be up to 128 characters in length and cannot contain http:// or https://. The tag value cannot start with acs: or aliyun.</li>
* </ul>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
@NameInMap("Value")
public String value;
public static ListTagResourcesRequestTag build(java.util.Map<String, ?> map) throws Exception {
ListTagResourcesRequestTag self = new ListTagResourcesRequestTag();
return TeaModel.build(map, self);
}
public ListTagResourcesRequestTag setKey(String key) {
this.key = key;
return this;
}
public String getKey() {
return this.key;
}
public ListTagResourcesRequestTag setValue(String value) {
this.value = value;
return this;
}
public String getValue() {
return this.value;
}
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ListTagResourcesResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ListTagResourcesResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public ListTagResourcesResponseBody body;
public static ListTagResourcesResponse build(java.util.Map<String, ?> map) throws Exception {
ListTagResourcesResponse self = new ListTagResourcesResponse();
return TeaModel.build(map, self);
}
public ListTagResourcesResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ListTagResourcesResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public ListTagResourcesResponse setBody(ListTagResourcesResponseBody body) {
this.body = body;
return this;
}
public ListTagResourcesResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ListTagResourcesResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ListTagResourcesResponseBody extends TeaModel {
/**
* <p>The token that determines the start point of the next query.</p>
*
* <strong>example:</strong>
* <p>caeba0bbb2be03f84eb48b699f0a4883</p>
*/
@NameInMap("NextToken")
public String nextToken;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>DE65F6B7-7566-4802-9007-96F2494A****</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Details of the resource and tags, such as the resource ID, the resource type, tag keys, and tag values.</p>
*/
@NameInMap("TagResources")
public ListTagResourcesResponseBodyTagResources tagResources;
public static ListTagResourcesResponseBody build(java.util.Map<String, ?> map) throws Exception {
ListTagResourcesResponseBody self = new ListTagResourcesResponseBody();
return TeaModel.build(map, self);
}
public ListTagResourcesResponseBody setNextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
public String getNextToken() {
return this.nextToken;
}
public ListTagResourcesResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public ListTagResourcesResponseBody setTagResources(ListTagResourcesResponseBodyTagResources tagResources) {
this.tagResources = tagResources;
return this;
}
public ListTagResourcesResponseBodyTagResources getTagResources() {
return this.tagResources;
}
public static class ListTagResourcesResponseBodyTagResourcesTagResource extends TeaModel {
/**
* <p>The ID of the resource. A resource ID complies with the following rules:</p>
* <ul>
* <li>The resource ID of an instance is the value of the instanceId parameter.</li>
* <li>The resource ID of a topic is the value of the Kafka_alikafka_instanceId_topic parameter.</li>
* <li>The resource ID of a consumer group is the value of the Kafka_alikafka_instanceId_consumerGroup parameter.</li>
* </ul>
* <p>For example, the resources whose tags you want to query include the alikafka_post-cn-v0h1fgs2xxxx instance, the test-topic topic, and the test-consumer-group consumer group. In this case, their resource IDs are alikafka_post-cn-v0h1fgs2xxxx, Kafka_alikafka_post-cn-v0h1fgs2xxxx_test-topic, and Kafka_alikafka_post-cn-v0h1fgs2xxxx_test-consumer-group.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-v0h1fgs2****</p>
*/
@NameInMap("ResourceId")
public String resourceId;
/**
* <p>The type of the resource. The value is an enumerated value. Valid values:</p>
* <ul>
* <li><strong>Instance</strong></li>
* <li><strong>Topic</strong></li>
* <li><strong>Consumergroup</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>instance</p>
*/
@NameInMap("ResourceType")
public String resourceType;
/**
* <p>The key of the tag.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
@NameInMap("TagKey")
public String tagKey;
/**
* <p>The value of the tag.</p>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
@NameInMap("TagValue")
public String tagValue;
public static ListTagResourcesResponseBodyTagResourcesTagResource build(java.util.Map<String, ?> map) throws Exception {
ListTagResourcesResponseBodyTagResourcesTagResource self = new ListTagResourcesResponseBodyTagResourcesTagResource();
return TeaModel.build(map, self);
}
public ListTagResourcesResponseBodyTagResourcesTagResource setResourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
public String getResourceId() {
return this.resourceId;
}
public ListTagResourcesResponseBodyTagResourcesTagResource setResourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
public String getResourceType() {
return this.resourceType;
}
public ListTagResourcesResponseBodyTagResourcesTagResource setTagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
public String getTagKey() {
return this.tagKey;
}
public ListTagResourcesResponseBodyTagResourcesTagResource setTagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public String getTagValue() {
return this.tagValue;
}
}
public static class ListTagResourcesResponseBodyTagResources extends TeaModel {
@NameInMap("TagResource")
public java.util.List<ListTagResourcesResponseBodyTagResourcesTagResource> tagResource;
public static ListTagResourcesResponseBodyTagResources build(java.util.Map<String, ?> map) throws Exception {
ListTagResourcesResponseBodyTagResources self = new ListTagResourcesResponseBodyTagResources();
return TeaModel.build(map, self);
}
public ListTagResourcesResponseBodyTagResources setTagResource(java.util.List<ListTagResourcesResponseBodyTagResourcesTagResource> tagResource) {
this.tagResource = tagResource;
return this;
}
public java.util.List<ListTagResourcesResponseBodyTagResourcesTagResource> getTagResource() {
return this.tagResource;
}
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ModifyInstanceNameRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ModifyInstanceNameRequest extends TeaModel {
/**
* <p>The ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-v0h1fgs2****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The instance name. Valid values:</p>
* <ul>
* <li>The name can contain only letters, digits, hyphens (-), and underscores (_).</li>
* <li>The name must be 3 to 64 characters in length. A name that contains more than 64 characters is automatically truncated.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>dev-test</p>
*/
@NameInMap("InstanceName")
public String instanceName;
/**
* <p>The region ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
public static ModifyInstanceNameRequest build(java.util.Map<String, ?> map) throws Exception {
ModifyInstanceNameRequest self = new ModifyInstanceNameRequest();
return TeaModel.build(map, self);
}
public ModifyInstanceNameRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public ModifyInstanceNameRequest setInstanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
public String getInstanceName() {
return this.instanceName;
}
public ModifyInstanceNameRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ModifyInstanceNameResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ModifyInstanceNameResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public ModifyInstanceNameResponseBody body;
public static ModifyInstanceNameResponse build(java.util.Map<String, ?> map) throws Exception {
ModifyInstanceNameResponse self = new ModifyInstanceNameResponse();
return TeaModel.build(map, self);
}
public ModifyInstanceNameResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ModifyInstanceNameResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public ModifyInstanceNameResponse setBody(ModifyInstanceNameResponseBody body) {
this.body = body;
return this;
}
public ModifyInstanceNameResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ModifyInstanceNameResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ModifyInstanceNameResponseBody extends TeaModel {
/**
* <p>The HTTP status code. The status code 200 indicates that the call is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>06084011-E093-46F3-A51F-4B19A8AD****</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the call is successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static ModifyInstanceNameResponseBody build(java.util.Map<String, ?> map) throws Exception {
ModifyInstanceNameResponseBody self = new ModifyInstanceNameResponseBody();
return TeaModel.build(map, self);
}
public ModifyInstanceNameResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public ModifyInstanceNameResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public ModifyInstanceNameResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public ModifyInstanceNameResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ModifyPartitionNumRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ModifyPartitionNumRequest extends TeaModel {
/**
* <p>The number of partitions that you want to add to the topic.</p>
* <ul>
* <li>The value must be an integer that is greater than 0.</li>
* <li>To reduce the risk of data skew, we recommend that you set the value to a multiple of 6.</li>
* <li>The number of total partitions ranges from 1 to 360.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>6</p>
*/
@NameInMap("AddPartitionNum")
public Integer addPartitionNum;
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-0pp1l9z****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The region ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The topic name.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>TopicPartitionNum</p>
*/
@NameInMap("Topic")
public String topic;
public static ModifyPartitionNumRequest build(java.util.Map<String, ?> map) throws Exception {
ModifyPartitionNumRequest self = new ModifyPartitionNumRequest();
return TeaModel.build(map, self);
}
public ModifyPartitionNumRequest setAddPartitionNum(Integer addPartitionNum) {
this.addPartitionNum = addPartitionNum;
return this;
}
public Integer getAddPartitionNum() {
return this.addPartitionNum;
}
public ModifyPartitionNumRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public ModifyPartitionNumRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public ModifyPartitionNumRequest setTopic(String topic) {
this.topic = topic;
return this;
}
public String getTopic() {
return this.topic;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ModifyPartitionNumResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ModifyPartitionNumResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public ModifyPartitionNumResponseBody body;
public static ModifyPartitionNumResponse build(java.util.Map<String, ?> map) throws Exception {
ModifyPartitionNumResponse self = new ModifyPartitionNumResponse();
return TeaModel.build(map, self);
}
public ModifyPartitionNumResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ModifyPartitionNumResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public ModifyPartitionNumResponse setBody(ModifyPartitionNumResponseBody body) {
this.body = body;
return this;
}
public ModifyPartitionNumResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ModifyPartitionNumResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ModifyPartitionNumResponseBody extends TeaModel {
/**
* <p>The HTTP status code returned. The HTTP status code 200 indicates that the request is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The message returned.</p>
*
* <strong>example:</strong>
* <p>operation success</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>B7A39AE5-0B36-4442-A304-E088526****</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request is successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static ModifyPartitionNumResponseBody build(java.util.Map<String, ?> map) throws Exception {
ModifyPartitionNumResponseBody self = new ModifyPartitionNumResponseBody();
return TeaModel.build(map, self);
}
public ModifyPartitionNumResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public ModifyPartitionNumResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public ModifyPartitionNumResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public ModifyPartitionNumResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ModifyScheduledScalingRuleRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ModifyScheduledScalingRuleRequest extends TeaModel {
/**
* <p>Specifies whether to enable the scheduled scaling rule. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
* <blockquote>
* <p> If the scaling task is scheduled to execute only once and you want to enable the scheduled scaling rule, make sure that the value of this parameter is at least 30 minutes later than the current point in time.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Enable")
public Boolean enable;
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_serverless-cn-vxxxxxxxx</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The ID of the region where the instance resides.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The name of the scheduled scaling rule.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>contact-id</p>
*/
@NameInMap("RuleName")
public String ruleName;
public static ModifyScheduledScalingRuleRequest build(java.util.Map<String, ?> map) throws Exception {
ModifyScheduledScalingRuleRequest self = new ModifyScheduledScalingRuleRequest();
return TeaModel.build(map, self);
}
public ModifyScheduledScalingRuleRequest setEnable(Boolean enable) {
this.enable = enable;
return this;
}
public Boolean getEnable() {
return this.enable;
}
public ModifyScheduledScalingRuleRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public ModifyScheduledScalingRuleRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public ModifyScheduledScalingRuleRequest setRuleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
public String getRuleName() {
return this.ruleName;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ModifyScheduledScalingRuleResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ModifyScheduledScalingRuleResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public ModifyScheduledScalingRuleResponseBody body;
public static ModifyScheduledScalingRuleResponse build(java.util.Map<String, ?> map) throws Exception {
ModifyScheduledScalingRuleResponse self = new ModifyScheduledScalingRuleResponse();
return TeaModel.build(map, self);
}
public ModifyScheduledScalingRuleResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ModifyScheduledScalingRuleResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public ModifyScheduledScalingRuleResponse setBody(ModifyScheduledScalingRuleResponseBody body) {
this.body = body;
return this;
}
public ModifyScheduledScalingRuleResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ModifyScheduledScalingRuleResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ModifyScheduledScalingRuleResponseBody extends TeaModel {
/**
* <p>The response code.</p>
* <p>The value <strong>200</strong> indicates that the request was successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Long code;
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>DB6F1BEA-903B-4FD8-8809-46E7E9CE***</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request was successful.</p>
*
* <strong>example:</strong>
* <p>True</p>
*/
@NameInMap("Success")
public Boolean success;
public static ModifyScheduledScalingRuleResponseBody build(java.util.Map<String, ?> map) throws Exception {
ModifyScheduledScalingRuleResponseBody self = new ModifyScheduledScalingRuleResponseBody();
return TeaModel.build(map, self);
}
public ModifyScheduledScalingRuleResponseBody setCode(Long code) {
this.code = code;
return this;
}
public Long getCode() {
return this.code;
}
public ModifyScheduledScalingRuleResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public ModifyScheduledScalingRuleResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public ModifyScheduledScalingRuleResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ModifyTopicRemarkRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ModifyTopicRemarkRequest extends TeaModel {
/**
* <p>The ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-0pp1l9z****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The region ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The description of the topic.</p>
*
* <strong>example:</strong>
* <p>testremark</p>
*/
@NameInMap("Remark")
public String remark;
/**
* <p>The name of the topic.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-0pp1l9z8****</p>
*/
@NameInMap("Topic")
public String topic;
public static ModifyTopicRemarkRequest build(java.util.Map<String, ?> map) throws Exception {
ModifyTopicRemarkRequest self = new ModifyTopicRemarkRequest();
return TeaModel.build(map, self);
}
public ModifyTopicRemarkRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public ModifyTopicRemarkRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public ModifyTopicRemarkRequest setRemark(String remark) {
this.remark = remark;
return this;
}
public String getRemark() {
return this.remark;
}
public ModifyTopicRemarkRequest setTopic(String topic) {
this.topic = topic;
return this;
}
public String getTopic() {
return this.topic;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ModifyTopicRemarkResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ModifyTopicRemarkResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public ModifyTopicRemarkResponseBody body;
public static ModifyTopicRemarkResponse build(java.util.Map<String, ?> map) throws Exception {
ModifyTopicRemarkResponse self = new ModifyTopicRemarkResponse();
return TeaModel.build(map, self);
}
public ModifyTopicRemarkResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ModifyTopicRemarkResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public ModifyTopicRemarkResponse setBody(ModifyTopicRemarkResponseBody body) {
this.body = body;
return this;
}
public ModifyTopicRemarkResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ModifyTopicRemarkResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ModifyTopicRemarkResponseBody extends TeaModel {
/**
* <p>The HTTP status code returned. The HTTP status code 200 indicates that the request is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>operation success</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>DB6F1BEA-903B-4FD8-8809-46E7E9CE***</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request is successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static ModifyTopicRemarkResponseBody build(java.util.Map<String, ?> map) throws Exception {
ModifyTopicRemarkResponseBody self = new ModifyTopicRemarkResponseBody();
return TeaModel.build(map, self);
}
public ModifyTopicRemarkResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public ModifyTopicRemarkResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public ModifyTopicRemarkResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public ModifyTopicRemarkResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/QueryMessageRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class QueryMessageRequest extends TeaModel {
/**
* <p>The beginning of the time range to query. The value of this parameter is a UNIX timestamp in milliseconds.</p>
*
* <strong>example:</strong>
* <p>1672410180000</p>
*/
@NameInMap("BeginTime")
public Long beginTime;
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_pre-cn-mp919o4v****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The consumer offset of the partition.</p>
*
* <strong>example:</strong>
* <p>100</p>
*/
@NameInMap("Offset")
public String offset;
/**
* <p>The partition ID.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
@NameInMap("Partition")
public String partition;
/**
* <p>The query type. Valid values:</p>
* <ul>
* <li>byOffset: queries messages by offset. If you select this value, you must configure Partition and Offset.</li>
* <li>byTimestamp: queries messages by time. If you select this value, you must configure BeginTime.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>byTimestamp</p>
*/
@NameInMap("QueryType")
public String queryType;
/**
* <p>The ID of the region where the resource resides.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The topic name.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>testkafka</p>
*/
@NameInMap("Topic")
public String topic;
public static QueryMessageRequest build(java.util.Map<String, ?> map) throws Exception {
QueryMessageRequest self = new QueryMessageRequest();
return TeaModel.build(map, self);
}
public QueryMessageRequest setBeginTime(Long beginTime) {
this.beginTime = beginTime;
return this;
}
public Long getBeginTime() {
return this.beginTime;
}
public QueryMessageRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public QueryMessageRequest setOffset(String offset) {
this.offset = offset;
return this;
}
public String getOffset() {
return this.offset;
}
public QueryMessageRequest setPartition(String partition) {
this.partition = partition;
return this;
}
public String getPartition() {
return this.partition;
}
public QueryMessageRequest setQueryType(String queryType) {
this.queryType = queryType;
return this;
}
public String getQueryType() {
return this.queryType;
}
public QueryMessageRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public QueryMessageRequest setTopic(String topic) {
this.topic = topic;
return this;
}
public String getTopic() {
return this.topic;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/QueryMessageResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class QueryMessageResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public QueryMessageResponseBody body;
public static QueryMessageResponse build(java.util.Map<String, ?> map) throws Exception {
QueryMessageResponse self = new QueryMessageResponse();
return TeaModel.build(map, self);
}
public QueryMessageResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public QueryMessageResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public QueryMessageResponse setBody(QueryMessageResponseBody body) {
this.body = body;
return this;
}
public QueryMessageResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/QueryMessageResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class QueryMessageResponseBody extends TeaModel {
/**
* <p>The returned HTTP status code. If the request is successful, 200 is returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The messages.</p>
*/
@NameInMap("MessageList")
public java.util.List<QueryMessageResponseBodyMessageList> messageList;
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>ABA4A7FD-E10F-45C7-9774-A5236015****</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request is successful. Valid values:</p>
* <ul>
* <li><strong>true</strong></li>
* <li><strong>false</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static QueryMessageResponseBody build(java.util.Map<String, ?> map) throws Exception {
QueryMessageResponseBody self = new QueryMessageResponseBody();
return TeaModel.build(map, self);
}
public QueryMessageResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public QueryMessageResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public QueryMessageResponseBody setMessageList(java.util.List<QueryMessageResponseBodyMessageList> messageList) {
this.messageList = messageList;
return this;
}
public java.util.List<QueryMessageResponseBodyMessageList> getMessageList() {
return this.messageList;
}
public QueryMessageResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public QueryMessageResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
public static class QueryMessageResponseBodyMessageList extends TeaModel {
/**
* <p>The check value of the chaincode.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
@NameInMap("Checksum")
public Long checksum;
/**
* <p>The message key.</p>
*
* <strong>example:</strong>
* <p>this is key</p>
*/
@NameInMap("Key")
public String key;
/**
* <p>Indicates whether the key is truncated.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
@NameInMap("KeyTruncated")
public Boolean keyTruncated;
/**
* <p>The consumer offset of the partition.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
@NameInMap("Offset")
public Long offset;
/**
* <p>The partition ID.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
@NameInMap("Partition")
public Long partition;
/**
* <p>The size of the key after serialization. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>11</p>
*/
@NameInMap("SerializedKeySize")
public Integer serializedKeySize;
/**
* <p>The size of the value after serialization. Unit: bytes.</p>
*
* <strong>example:</strong>
* <p>20</p>
*/
@NameInMap("SerializedValueSize")
public Integer serializedValueSize;
/**
* <p>The time when the message was created. The value of this parameter is a UNIX timestamp in milliseconds.</p>
*
* <strong>example:</strong>
* <p>1705482172640</p>
*/
@NameInMap("Timestamp")
public Long timestamp;
/**
* <p>The time type.</p>
*
* <strong>example:</strong>
* <p>CreateTime</p>
*/
@NameInMap("TimestampType")
public String timestampType;
/**
* <p>The topic name.</p>
*
* <strong>example:</strong>
* <p>dqc_test2</p>
*/
@NameInMap("Topic")
public String topic;
/**
* <p>The truncated size of the message key. Unit: bytes.</p>
* <blockquote>
* <p> A maximum of 1 KB of content can be displayed for each message. Content that exceeds 1 KB is automatically truncated. For more information, see <a href="https://help.aliyun.com/document_detail/113172.html">Query messages</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
@NameInMap("TruncatedKeySize")
public Integer truncatedKeySize;
/**
* <p>The truncated size of the message value. Unit: bytes.</p>
* <blockquote>
* <p> A maximum of 1 KB of content can be displayed for each message. Content that exceeds 1 KB is automatically truncated. For more information, see <a href="https://help.aliyun.com/document_detail/113172.html">Query messages</a>.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0</p>
*/
@NameInMap("TruncatedValueSize")
public Integer truncatedValueSize;
/**
* <p>The message value.</p>
*
* <strong>example:</strong>
* <p>Welcome to Ali kafka</p>
*/
@NameInMap("Value")
public String value;
/**
* <p>Indicates whether the value is truncated.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
@NameInMap("ValueTruncated")
public Boolean valueTruncated;
public static QueryMessageResponseBodyMessageList build(java.util.Map<String, ?> map) throws Exception {
QueryMessageResponseBodyMessageList self = new QueryMessageResponseBodyMessageList();
return TeaModel.build(map, self);
}
public QueryMessageResponseBodyMessageList setChecksum(Long checksum) {
this.checksum = checksum;
return this;
}
public Long getChecksum() {
return this.checksum;
}
public QueryMessageResponseBodyMessageList setKey(String key) {
this.key = key;
return this;
}
public String getKey() {
return this.key;
}
public QueryMessageResponseBodyMessageList setKeyTruncated(Boolean keyTruncated) {
this.keyTruncated = keyTruncated;
return this;
}
public Boolean getKeyTruncated() {
return this.keyTruncated;
}
public QueryMessageResponseBodyMessageList setOffset(Long offset) {
this.offset = offset;
return this;
}
public Long getOffset() {
return this.offset;
}
public QueryMessageResponseBodyMessageList setPartition(Long partition) {
this.partition = partition;
return this;
}
public Long getPartition() {
return this.partition;
}
public QueryMessageResponseBodyMessageList setSerializedKeySize(Integer serializedKeySize) {
this.serializedKeySize = serializedKeySize;
return this;
}
public Integer getSerializedKeySize() {
return this.serializedKeySize;
}
public QueryMessageResponseBodyMessageList setSerializedValueSize(Integer serializedValueSize) {
this.serializedValueSize = serializedValueSize;
return this;
}
public Integer getSerializedValueSize() {
return this.serializedValueSize;
}
public QueryMessageResponseBodyMessageList setTimestamp(Long timestamp) {
this.timestamp = timestamp;
return this;
}
public Long getTimestamp() {
return this.timestamp;
}
public QueryMessageResponseBodyMessageList setTimestampType(String timestampType) {
this.timestampType = timestampType;
return this;
}
public String getTimestampType() {
return this.timestampType;
}
public QueryMessageResponseBodyMessageList setTopic(String topic) {
this.topic = topic;
return this;
}
public String getTopic() {
return this.topic;
}
public QueryMessageResponseBodyMessageList setTruncatedKeySize(Integer truncatedKeySize) {
this.truncatedKeySize = truncatedKeySize;
return this;
}
public Integer getTruncatedKeySize() {
return this.truncatedKeySize;
}
public QueryMessageResponseBodyMessageList setTruncatedValueSize(Integer truncatedValueSize) {
this.truncatedValueSize = truncatedValueSize;
return this;
}
public Integer getTruncatedValueSize() {
return this.truncatedValueSize;
}
public QueryMessageResponseBodyMessageList setValue(String value) {
this.value = value;
return this;
}
public String getValue() {
return this.value;
}
public QueryMessageResponseBodyMessageList setValueTruncated(Boolean valueTruncated) {
this.valueTruncated = valueTruncated;
return this;
}
public Boolean getValueTruncated() {
return this.valueTruncated;
}
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ReleaseInstanceRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ReleaseInstanceRequest extends TeaModel {
/**
* <p>Specifies whether to immediately release the physical resources of the instance. Valid values:</p>
* <ul>
* <li><strong>true</strong>: The physical resources of the instance are immediately released.</li>
* <li><strong>false</strong>: The physical resources of the instance are retained for a period of time before they are released.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
@NameInMap("ForceDeleteInstance")
public Boolean forceDeleteInstance;
/**
* <p>The ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-mp919o4v****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The region ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
public static ReleaseInstanceRequest build(java.util.Map<String, ?> map) throws Exception {
ReleaseInstanceRequest self = new ReleaseInstanceRequest();
return TeaModel.build(map, self);
}
public ReleaseInstanceRequest setForceDeleteInstance(Boolean forceDeleteInstance) {
this.forceDeleteInstance = forceDeleteInstance;
return this;
}
public Boolean getForceDeleteInstance() {
return this.forceDeleteInstance;
}
public ReleaseInstanceRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public ReleaseInstanceRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ReleaseInstanceResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ReleaseInstanceResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public ReleaseInstanceResponseBody body;
public static ReleaseInstanceResponse build(java.util.Map<String, ?> map) throws Exception {
ReleaseInstanceResponse self = new ReleaseInstanceResponse();
return TeaModel.build(map, self);
}
public ReleaseInstanceResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ReleaseInstanceResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public ReleaseInstanceResponse setBody(ReleaseInstanceResponseBody body) {
this.body = body;
return this;
}
public ReleaseInstanceResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ReleaseInstanceResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ReleaseInstanceResponseBody extends TeaModel {
/**
* <p>The HTTP status code returned. The HTTP status code 200 indicates that the request is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>ABA4A7FD-E10F-45C7-9774-A5236015A***</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request is successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static ReleaseInstanceResponseBody build(java.util.Map<String, ?> map) throws Exception {
ReleaseInstanceResponseBody self = new ReleaseInstanceResponseBody();
return TeaModel.build(map, self);
}
public ReleaseInstanceResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public ReleaseInstanceResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public ReleaseInstanceResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public ReleaseInstanceResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ReopenInstanceRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ReopenInstanceRequest extends TeaModel {
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-mp91inkw****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The ID of the region where the instance resides.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
public static ReopenInstanceRequest build(java.util.Map<String, ?> map) throws Exception {
ReopenInstanceRequest self = new ReopenInstanceRequest();
return TeaModel.build(map, self);
}
public ReopenInstanceRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public ReopenInstanceRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ReopenInstanceResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ReopenInstanceResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public ReopenInstanceResponseBody body;
public static ReopenInstanceResponse build(java.util.Map<String, ?> map) throws Exception {
ReopenInstanceResponse self = new ReopenInstanceResponse();
return TeaModel.build(map, self);
}
public ReopenInstanceResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public ReopenInstanceResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public ReopenInstanceResponse setBody(ReopenInstanceResponseBody body) {
this.body = body;
return this;
}
public ReopenInstanceResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/ReopenInstanceResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class ReopenInstanceResponseBody extends TeaModel {
/**
* <p>The returned HTTP status code. If the request is successful, 200 is returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>252820E1-A2E6-45F2-B4C9-1056B8CE****</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request is successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static ReopenInstanceResponseBody build(java.util.Map<String, ?> map) throws Exception {
ReopenInstanceResponseBody self = new ReopenInstanceResponseBody();
return TeaModel.build(map, self);
}
public ReopenInstanceResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public ReopenInstanceResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public ReopenInstanceResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public ReopenInstanceResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/StartInstanceRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class StartInstanceRequest extends TeaModel {
/**
* <p>The initial configurations of the ApsaraMQ for Kafka instance. The values must be valid JSON strings. If you do not specify this parameter, it is left empty.</p>
* <blockquote>
* <ul>
* <li>You cannot configure this parameter when you deploy an ApsaraMQ for Confluent instance.</li>
* <li>You cannot configure enable.acl for instances whose versions are earlier than 2.2.0.</li>
* </ul>
* </blockquote>
* <p>The <strong>Config</strong> parameter supports the following parameters:</p>
* <ul>
* <li><p><strong>enable.vpc_sasl_ssl</strong>: specifies whether to enable VPC transmission encryption. Valid values:</p>
* <ul>
* <li><strong>true</strong>: enables VPC transmission encryption. If you enable VPC transmission encryption, you must also enable access control list (ACL).</li>
* <li><strong>false</strong>: disables VPC transmission encryption. This is the default value.</li>
* </ul>
* </li>
* <li><p><strong>enable.acl</strong>: specifies whether to enable ACL. Valid values:</p>
* <ul>
* <li><strong>true</strong>: enables ACL.</li>
* <li><strong>false</strong>: disables the ACL feature. This is the default value.</li>
* </ul>
* </li>
* <li><p><strong>kafka.log.retention.hours</strong>: the maximum message retention period when the disk capacity is sufficient. Unit: hours. Valid values: 24 to 480. Default value: <strong>72</strong>. When the disk usage reaches 85%, the disk capacity is insufficient. In this case, the system deletes the earliest stored messages to ensure service availability.</p>
* </li>
* <li><p><strong>kafka.message.max.bytes</strong>: the maximum size of a message that can be sent and received by ApsaraMQ for Kafka. Unit: bytes. Valid values: 1048576 to 10485760. Default value: <strong>1048576</strong>. Before you change the maximum message size to a new value, make sure that the new value matches the configurations of the producers and consumers.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>{"kafka.log.retention.hours":"33"}</p>
*/
@NameInMap("Config")
public String config;
/**
* <p>Specifies whether cross-zone deployment is required. Valid values:</p>
* <ul>
* <li>true</li>
* <li>false</li>
* </ul>
* <p>Default value: true.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
@NameInMap("CrossZone")
public Boolean crossZone;
/**
* <p>The deployment mode. If the instance is an ApsaraMQ for Kafka V2 instance, this parameter is required. If the instance is an ApsaraMQ for Kafka V3 instance or an ApsaraMQ for Confluent instance, this parameter is optional. Valid values:</p>
* <ul>
* <li><strong>vpc</strong>: deploys the instance in a virtual private cloud (VPC).</li>
* <li><strong>eip</strong>: deploys the instance over the Internet and in the VPC.</li>
* </ul>
* <p>The deployment mode of the ApsaraMQ for Kafka instance must be consistent with the instance type. If the instance is a VPC-connected instance, set this parameter to <strong>vpc</strong>. If the instance is an Internet- and VPC-connected instance, set this parameter to <strong>eip</strong>.</p>
*
* <strong>example:</strong>
* <p>vpc</p>
*/
@NameInMap("DeployModule")
public String deployModule;
/**
* <p>The ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-v0h1fgs2****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>Specifies whether the instance supports elastic IP addresses (EIPs). Valid values:</p>
* <ul>
* <li><strong>true</strong>: supports EIPs and allows access from the Internet and a VPC.</li>
* <li><strong>false</strong>: does not support EIPs and allows access only from a VPC.</li>
* </ul>
* <p>The value of this parameter must match the type of the instance. For example, if the instance allows access only from a VPC, set this parameter to <strong>false</strong>.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
@NameInMap("IsEipInner")
public Boolean isEipInner;
/**
* <p>Specifies whether to forcibly deploy the instance in the selected zones.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
@NameInMap("IsForceSelectedZones")
public Boolean isForceSelectedZones;
/**
* <p>Specifies whether to set a new username and password. Valid values:</p>
* <ul>
* <li><strong>true</strong>: sets a new username and password.</li>
* <li><strong>false</strong>: does not set a new username or password.</li>
* </ul>
* <p>This parameter is available only if you deploy an instance that allows access from the Internet and a VPC.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
@NameInMap("IsSetUserAndPassword")
public Boolean isSetUserAndPassword;
/**
* <p>The ID of the key that is used for disk encryption in the region where the instance is deployed. You can obtain the ID of the key in the <a href="https://kms.console.aliyun.com/?spm=a2c4g.11186623.2.5.336745b8hfiU21">Key Management Service (KMS) console</a> or create a key. For more information, see <a href="https://help.aliyun.com/document_detail/181610.html">Manage CMKs</a>.</p>
* <p>If this parameter is configured, disk encryption is enabled for the instance. You cannot disable disk encryption after disk encryption is enabled. When you call this operation, the system checks whether the AliyunServiceRoleForAlikafkaInstanceEncryption service-linked role is created. If the role is not created, the system automatically creates the role. For more information, see <a href="https://help.aliyun.com/document_detail/190460.html">Service-linked roles</a>.</p>
* <blockquote>
* <p>When you deploy a serverless ApsaraMQ for Kafka V3 instance, you cannot configure this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>0d24xxxx-da7b-4786-b981-9a164dxxxxxx</p>
*/
@NameInMap("KMSKeyId")
public String KMSKeyId;
/**
* <p>The name of the instance.</p>
* <blockquote>
* <p> If you specify a value for this parameter, make sure that the specified value is unique in the region of the instance.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>newInstanceName</p>
*/
@NameInMap("Name")
public String name;
/**
* <p>The alert contact.</p>
*
* <strong>example:</strong>
* <p>Mr. Wang</p>
*/
@NameInMap("Notifier")
public String notifier;
/**
* <p>The instance password.</p>
* <ul>
* <li>This parameter is available only for Internet- and VPC- connected ApsaraMQ for Kafka V2 and V3 instances.</li>
* <li>If the instance is an ApsaraMQ for Confluent instance, this parameter is required. The value of this parameter must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The following special characters are supported: ! @ # $ % ^ & \* () _ + - =</li>
* </ul>
*
* <strong>example:</strong>
* <p>password</p>
*/
@NameInMap("Password")
public String password;
/**
* <p>The region ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The security group of the instance.</p>
* <p>If you do not specify this parameter, ApsaraMQ for Kafka automatically configures a security group for your instance. If you specify this parameter, you must create a security group in advance. For more information, see <a href="https://help.aliyun.com/document_detail/25468.html">Create a security group</a>.</p>
*
* <strong>example:</strong>
* <p>sg-bp13wfx7kz9pko****</p>
*/
@NameInMap("SecurityGroup")
public String securityGroup;
/**
* <p>The two-dimensional arrays that consist of the candidate set for primary zones and the candidate set for secondary zones. Custom code in the <code>zone {zone}</code> format and standard code in the <code>cn-RegionID-{zone}</code> format are supported.</p>
* <ul>
* <li>If you set CrossZone to true and specify Zone H and Zone F as the candidate set for primary zones and Zone K as the candidate set for secondary zones, set this parameter to <code>[["zoneh","zonef"],["zonek"]]</code>.</li>
* </ul>
* <blockquote>
* <p>If you specify multiple zones as the primary or secondary zones, the system deploys the instance in one of the zones without prioritizing them. For example, if you set this parameter to <code>[["zoneh","zonef"],["zonek"]]</code>, the primary zone in which the instance is deployed can be Zone H or Zone F, and the secondary zone is Zone K.</p>
* </blockquote>
* <ul>
* <li>If you set CrossZone to false and want to deploy the instance in Zone K, set this parameter to <code>[["zonek"],[]]</code>. In this case, the value of this parameter must still be two-dimensional arrays, but the array that specifies the candidate for secondary zones is left empty.</li>
* </ul>
*
* <strong>example:</strong>
* <p>[[\"zonel\"],[\"zonek\"]]</p>
*/
@NameInMap("SelectedZones")
public String selectedZones;
/**
* <p>The version of the ApsaraMQ for Kafka instance. Valid values:</p>
* <ul>
* <li>ApsaraMQ for Kafka V2 instances: 2.2.0 and 2.6.2.</li>
* <li>ApsaraMQ for Kafka V3 instances: 3.3.1.</li>
* <li>ApsaraMQ for Confluent instances: 7.4.0.</li>
* </ul>
* <p>Default value:</p>
* <ul>
* <li>ApsaraMQ for Kafka V2 instances: 2.2.0.</li>
* <li>ApsaraMQ for Kafka V3 instances: 3.3.1.</li>
* <li>ApsaraMQ for Confluent instances: 7.4.0.</li>
* </ul>
*
* <strong>example:</strong>
* <p>ApsaraMQ for Kafka V2 instances: 2.2.0
* ApsaraMQ for Kafka V3 instances: 3.3.1
* ApsaraMQ for Confluent instances: 7.4.0</p>
*/
@NameInMap("ServiceVersion")
public String serviceVersion;
/**
* <p>The mobile phone number of the alert contact.</p>
*
* <strong>example:</strong>
* <p>1581234****</p>
*/
@NameInMap("UserPhoneNum")
public String userPhoneNum;
/**
* <p>The instance username.</p>
* <ul>
* <li>This parameter is available only for Internet- and VPC- connected ApsaraMQ for Kafka V2 and V3 instances.</li>
* <li>If the instance is an ApsaraMQ for Confluent instance, set this parameter to root or leave this parameter empty.</li>
* </ul>
* <p>Default value for ApsaraMQ for Kafka V2 and V3 instances: username. Default value for ApsaraMQ for Confluent instances: root.</p>
*
* <strong>example:</strong>
* <p>username</p>
*/
@NameInMap("Username")
public String username;
/**
* <p>The ID of the vSwitch to which you want to connect the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vsw-bp1j3sg5979fstnpl****</p>
*/
@NameInMap("VSwitchId")
public String vSwitchId;
/**
* <p>The IDs of the vSwitches with which the instance is associated. If the instance is an ApsaraMQ for Kafka V2 or V3 instance, this parameter is required. If the instance is an ApsaraMQ for Confluent instance, you must configure one of VSwitchIds and VSwitchId. If you configure both of the parameters, the value of VSwitchIds takes effect.</p>
*/
@NameInMap("VSwitchIds")
public java.util.List<String> vSwitchIds;
/**
* <p>The ID of the virtual private cloud (VPC) in which you want to deploy the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc-bp1r4eg3yrxmygv****</p>
*/
@NameInMap("VpcId")
public String vpcId;
/**
* <p>The ID of the zone where you want to deploy the ApsaraMQ for Kafka instance.</p>
* <ul>
* <li>The zone ID of the ApsaraMQ for Kafka instance must be the same as that of the vSwitch.</li>
* <li>The value must be in the zoneX or Region ID-X format. Examples: zonea and cn-hangzhou-k.</li>
* </ul>
* <blockquote>
* <p> If resources in the specified zone is insufficient, the instance may be deployed in another zone.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>cn-hangzhou-k</p>
*/
@NameInMap("ZoneId")
public String zoneId;
public static StartInstanceRequest build(java.util.Map<String, ?> map) throws Exception {
StartInstanceRequest self = new StartInstanceRequest();
return TeaModel.build(map, self);
}
public StartInstanceRequest setConfig(String config) {
this.config = config;
return this;
}
public String getConfig() {
return this.config;
}
public StartInstanceRequest setCrossZone(Boolean crossZone) {
this.crossZone = crossZone;
return this;
}
public Boolean getCrossZone() {
return this.crossZone;
}
public StartInstanceRequest setDeployModule(String deployModule) {
this.deployModule = deployModule;
return this;
}
public String getDeployModule() {
return this.deployModule;
}
public StartInstanceRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public StartInstanceRequest setIsEipInner(Boolean isEipInner) {
this.isEipInner = isEipInner;
return this;
}
public Boolean getIsEipInner() {
return this.isEipInner;
}
public StartInstanceRequest setIsForceSelectedZones(Boolean isForceSelectedZones) {
this.isForceSelectedZones = isForceSelectedZones;
return this;
}
public Boolean getIsForceSelectedZones() {
return this.isForceSelectedZones;
}
public StartInstanceRequest setIsSetUserAndPassword(Boolean isSetUserAndPassword) {
this.isSetUserAndPassword = isSetUserAndPassword;
return this;
}
public Boolean getIsSetUserAndPassword() {
return this.isSetUserAndPassword;
}
public StartInstanceRequest setKMSKeyId(String KMSKeyId) {
this.KMSKeyId = KMSKeyId;
return this;
}
public String getKMSKeyId() {
return this.KMSKeyId;
}
public StartInstanceRequest setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
public StartInstanceRequest setNotifier(String notifier) {
this.notifier = notifier;
return this;
}
public String getNotifier() {
return this.notifier;
}
public StartInstanceRequest setPassword(String password) {
this.password = password;
return this;
}
public String getPassword() {
return this.password;
}
public StartInstanceRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public StartInstanceRequest setSecurityGroup(String securityGroup) {
this.securityGroup = securityGroup;
return this;
}
public String getSecurityGroup() {
return this.securityGroup;
}
public StartInstanceRequest setSelectedZones(String selectedZones) {
this.selectedZones = selectedZones;
return this;
}
public String getSelectedZones() {
return this.selectedZones;
}
public StartInstanceRequest setServiceVersion(String serviceVersion) {
this.serviceVersion = serviceVersion;
return this;
}
public String getServiceVersion() {
return this.serviceVersion;
}
public StartInstanceRequest setUserPhoneNum(String userPhoneNum) {
this.userPhoneNum = userPhoneNum;
return this;
}
public String getUserPhoneNum() {
return this.userPhoneNum;
}
public StartInstanceRequest setUsername(String username) {
this.username = username;
return this;
}
public String getUsername() {
return this.username;
}
public StartInstanceRequest setVSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
public String getVSwitchId() {
return this.vSwitchId;
}
public StartInstanceRequest setVSwitchIds(java.util.List<String> vSwitchIds) {
this.vSwitchIds = vSwitchIds;
return this;
}
public java.util.List<String> getVSwitchIds() {
return this.vSwitchIds;
}
public StartInstanceRequest setVpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public String getVpcId() {
return this.vpcId;
}
public StartInstanceRequest setZoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public String getZoneId() {
return this.zoneId;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/StartInstanceResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class StartInstanceResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public StartInstanceResponseBody body;
public static StartInstanceResponse build(java.util.Map<String, ?> map) throws Exception {
StartInstanceResponse self = new StartInstanceResponse();
return TeaModel.build(map, self);
}
public StartInstanceResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public StartInstanceResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public StartInstanceResponse setBody(StartInstanceResponseBody body) {
this.body = body;
return this;
}
public StartInstanceResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/StartInstanceResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class StartInstanceResponseBody extends TeaModel {
/**
* <p>The HTTP status code returned. The HTTP status code 200 indicates that the request is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>ABA4A7FD-E10F-45C7-9774-A5236015****</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request is successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static StartInstanceResponseBody build(java.util.Map<String, ?> map) throws Exception {
StartInstanceResponseBody self = new StartInstanceResponseBody();
return TeaModel.build(map, self);
}
public StartInstanceResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public StartInstanceResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public StartInstanceResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public StartInstanceResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/StopInstanceRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class StopInstanceRequest extends TeaModel {
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-v0h1fgs2****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The ID of the region where the instance resides.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
public static StopInstanceRequest build(java.util.Map<String, ?> map) throws Exception {
StopInstanceRequest self = new StopInstanceRequest();
return TeaModel.build(map, self);
}
public StopInstanceRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public StopInstanceRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/StopInstanceResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class StopInstanceResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public StopInstanceResponseBody body;
public static StopInstanceResponse build(java.util.Map<String, ?> map) throws Exception {
StopInstanceResponse self = new StopInstanceResponse();
return TeaModel.build(map, self);
}
public StopInstanceResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public StopInstanceResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public StopInstanceResponse setBody(StopInstanceResponseBody body) {
this.body = body;
return this;
}
public StopInstanceResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/StopInstanceResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class StopInstanceResponseBody extends TeaModel {
/**
* <p>The returned status code. If the request is successful, 200 is returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>17D425C2-4EA3-4AB8-928D-E10511ECF***</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request is successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static StopInstanceResponseBody build(java.util.Map<String, ?> map) throws Exception {
StopInstanceResponseBody self = new StopInstanceResponseBody();
return TeaModel.build(map, self);
}
public StopInstanceResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public StopInstanceResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public StopInstanceResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public StopInstanceResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/TagResourcesRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class TagResourcesRequest extends TeaModel {
/**
* <p>The ID of the Message Queue for Apache RocketMQ instance which contains the resource to which you want to attach tags.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-v0h1fgs2****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The ID of the region in which the resource is deployed.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The resource IDs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-v0h1fgs2****</p>
*/
@NameInMap("ResourceId")
public java.util.List<String> resourceId;
/**
* <p>The type of the resources. The value is an enumerated value. Valid values:</p>
* <ul>
* <li><strong>INSTANCE</strong></li>
* <li><strong>TOPIC</strong></li>
* <li><strong>CONSUMERGROUP</strong></li>
* </ul>
* <blockquote>
* <p> The value of this parameter is not case-sensitive.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>instance</p>
*/
@NameInMap("ResourceType")
public String resourceType;
/**
* <p>The tags.</p>
* <p>This parameter is required.</p>
*/
@NameInMap("Tag")
public java.util.List<TagResourcesRequestTag> tag;
public static TagResourcesRequest build(java.util.Map<String, ?> map) throws Exception {
TagResourcesRequest self = new TagResourcesRequest();
return TeaModel.build(map, self);
}
public TagResourcesRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public TagResourcesRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public TagResourcesRequest setResourceId(java.util.List<String> resourceId) {
this.resourceId = resourceId;
return this;
}
public java.util.List<String> getResourceId() {
return this.resourceId;
}
public TagResourcesRequest setResourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
public String getResourceType() {
return this.resourceType;
}
public TagResourcesRequest setTag(java.util.List<TagResourcesRequestTag> tag) {
this.tag = tag;
return this;
}
public java.util.List<TagResourcesRequestTag> getTag() {
return this.tag;
}
public static class TagResourcesRequestTag extends TeaModel {
/**
* <p>The tag key.</p>
* <ul>
* <li>You must specify this parameter.</li>
* <li>The tag key can be up to 128 characters in length and cannot contain <code>http://</code> or <code>https://</code>. The tag key cannot start with <code>acs:</code> or <code>aliyun</code>.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
@NameInMap("Key")
public String key;
/**
* <p>The tag value.</p>
* <ul>
* <li>You can leave this parameter empty.</li>
* <li>The tag value can be up to 128 characters in length and cannot contain http:// or https://. The tag value cannot start with acs: or aliyun.</li>
* </ul>
*
* <strong>example:</strong>
* <p>FinanceJoshua</p>
*/
@NameInMap("Value")
public String value;
public static TagResourcesRequestTag build(java.util.Map<String, ?> map) throws Exception {
TagResourcesRequestTag self = new TagResourcesRequestTag();
return TeaModel.build(map, self);
}
public TagResourcesRequestTag setKey(String key) {
this.key = key;
return this;
}
public String getKey() {
return this.key;
}
public TagResourcesRequestTag setValue(String value) {
this.value = value;
return this;
}
public String getValue() {
return this.value;
}
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/TagResourcesResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class TagResourcesResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public TagResourcesResponseBody body;
public static TagResourcesResponse build(java.util.Map<String, ?> map) throws Exception {
TagResourcesResponse self = new TagResourcesResponse();
return TeaModel.build(map, self);
}
public TagResourcesResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public TagResourcesResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public TagResourcesResponse setBody(TagResourcesResponseBody body) {
this.body = body;
return this;
}
public TagResourcesResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/TagResourcesResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class TagResourcesResponseBody extends TeaModel {
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>C46FF5A8-C5F0-4024-8262-B16B6392****</p>
*/
@NameInMap("RequestId")
public String requestId;
public static TagResourcesResponseBody build(java.util.Map<String, ?> map) throws Exception {
TagResourcesResponseBody self = new TagResourcesResponseBody();
return TeaModel.build(map, self);
}
public TagResourcesResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UntagResourcesRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UntagResourcesRequest extends TeaModel {
/**
* <p>Specifies whether to detach all tags from the resource. This parameter only takes effect when the TagKey.N parameter is not configured. Default value: <strong>false</strong>.</p>
*
* <strong>example:</strong>
* <p>false</p>
*/
@NameInMap("All")
public Boolean all;
/**
* <p>The ID of the region in which the resource is deployed.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The IDs of the resources from which you want to detach tags.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-v0h1fgs2****</p>
*/
@NameInMap("ResourceId")
public java.util.List<String> resourceId;
/**
* <p>The type of the resources. Valid values:</p>
* <ul>
* <li><strong>INSTANCE</strong></li>
* <li><strong>TOPIC</strong></li>
* <li><strong>CONSUMERGROUP</strong></li>
* </ul>
* <blockquote>
* <p> The value of this parameter is not case-sensitive.</p>
* </blockquote>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>INSTANCE</p>
*/
@NameInMap("ResourceType")
public String resourceType;
/**
* <p>The key of the resource tag.</p>
*
* <strong>example:</strong>
* <p>FinanceDept</p>
*/
@NameInMap("TagKey")
public java.util.List<String> tagKey;
public static UntagResourcesRequest build(java.util.Map<String, ?> map) throws Exception {
UntagResourcesRequest self = new UntagResourcesRequest();
return TeaModel.build(map, self);
}
public UntagResourcesRequest setAll(Boolean all) {
this.all = all;
return this;
}
public Boolean getAll() {
return this.all;
}
public UntagResourcesRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public UntagResourcesRequest setResourceId(java.util.List<String> resourceId) {
this.resourceId = resourceId;
return this;
}
public java.util.List<String> getResourceId() {
return this.resourceId;
}
public UntagResourcesRequest setResourceType(String resourceType) {
this.resourceType = resourceType;
return this;
}
public String getResourceType() {
return this.resourceType;
}
public UntagResourcesRequest setTagKey(java.util.List<String> tagKey) {
this.tagKey = tagKey;
return this;
}
public java.util.List<String> getTagKey() {
return this.tagKey;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UntagResourcesResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UntagResourcesResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public UntagResourcesResponseBody body;
public static UntagResourcesResponse build(java.util.Map<String, ?> map) throws Exception {
UntagResourcesResponse self = new UntagResourcesResponse();
return TeaModel.build(map, self);
}
public UntagResourcesResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public UntagResourcesResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public UntagResourcesResponse setBody(UntagResourcesResponseBody body) {
this.body = body;
return this;
}
public UntagResourcesResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UntagResourcesResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UntagResourcesResponseBody extends TeaModel {
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>C46FF5A8-C5F0-4024-8262-B16B6392****</p>
*/
@NameInMap("RequestId")
public String requestId;
public static UntagResourcesResponseBody build(java.util.Map<String, ?> map) throws Exception {
UntagResourcesResponseBody self = new UntagResourcesResponseBody();
return TeaModel.build(map, self);
}
public UntagResourcesResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateAllowedIpRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateAllowedIpRequest extends TeaModel {
/**
* <p>The IP addresses that you want to manage. You can specify a CIDR block. Example: <strong>192.168.0.0/16</strong>.</p>
* <ul>
* <li>If the <strong>UpdateType</strong> parameter is set to <strong>add</strong>, specify one or more IP addresses for this parameter. Separate multiple IP addresses with commas (,).</li>
* <li>If the <strong>UpdateType</strong> parameter is set to <strong>delete</strong>, specify only one IP address.</li>
* <li>Exercise caution when you delete IP addresses.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0.0.0.0/0</p>
*/
@NameInMap("AllowedListIp")
public String allowedListIp;
/**
* <p>The type of the whitelist. Valid values:</p>
* <ul>
* <li><strong>vpc</strong>: a whitelist for access from a VPC.</li>
* <li><strong>internet</strong>: a whitelist for access from the Internet.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>vpc</p>
*/
@NameInMap("AllowedListType")
public String allowedListType;
/**
* <p>The description of the whitelist.</p>
*
* <strong>example:</strong>
* <p>tf-testAccEcsImageConfigBasic3549descriptionChange</p>
*/
@NameInMap("Description")
public String description;
/**
* <p>The ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_pre-cn-0pp1cng20***</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The port range. Valid values:</p>
* <ul>
* <li><strong>9092/9092</strong>: Messages are transmitted in a virtual private cloud (VPC) by using the PLAINTEXT protocol.</li>
* <li><strong>9093/9093</strong>: Messages are transmitted over the Internet by using the SASL_SSL protocol.</li>
* <li><strong>9094/9094</strong>: Messages are transmitted in a VPC by using the SASL_PLAINTEXT protocol.</li>
* <li><strong>9095/9095</strong>: Messages are transmitted in a VPC by using the SASL_SSL protocol.</li>
* </ul>
* <p>This parameter must correspond to <strong>AllowdedListType</strong>.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>9092/9092</p>
*/
@NameInMap("PortRange")
public String portRange;
/**
* <p>The ID of the region where the instance resides.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The type of configuration change. Valid values:</p>
* <ul>
* <li><strong>add</strong></li>
* <li><strong>delete</strong></li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>add</p>
*/
@NameInMap("UpdateType")
public String updateType;
public static UpdateAllowedIpRequest build(java.util.Map<String, ?> map) throws Exception {
UpdateAllowedIpRequest self = new UpdateAllowedIpRequest();
return TeaModel.build(map, self);
}
public UpdateAllowedIpRequest setAllowedListIp(String allowedListIp) {
this.allowedListIp = allowedListIp;
return this;
}
public String getAllowedListIp() {
return this.allowedListIp;
}
public UpdateAllowedIpRequest setAllowedListType(String allowedListType) {
this.allowedListType = allowedListType;
return this;
}
public String getAllowedListType() {
return this.allowedListType;
}
public UpdateAllowedIpRequest setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public UpdateAllowedIpRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public UpdateAllowedIpRequest setPortRange(String portRange) {
this.portRange = portRange;
return this;
}
public String getPortRange() {
return this.portRange;
}
public UpdateAllowedIpRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public UpdateAllowedIpRequest setUpdateType(String updateType) {
this.updateType = updateType;
return this;
}
public String getUpdateType() {
return this.updateType;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateAllowedIpResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateAllowedIpResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public UpdateAllowedIpResponseBody body;
public static UpdateAllowedIpResponse build(java.util.Map<String, ?> map) throws Exception {
UpdateAllowedIpResponse self = new UpdateAllowedIpResponse();
return TeaModel.build(map, self);
}
public UpdateAllowedIpResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public UpdateAllowedIpResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public UpdateAllowedIpResponse setBody(UpdateAllowedIpResponseBody body) {
this.body = body;
return this;
}
public UpdateAllowedIpResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateAllowedIpResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateAllowedIpResponseBody extends TeaModel {
/**
* <p>The HTTP status code that is returned. The HTTP status code 200 indicates that the request is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The message returned.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>17D425C2-4EA3-4AB8-928D-E10511ECF***</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request is successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static UpdateAllowedIpResponseBody build(java.util.Map<String, ?> map) throws Exception {
UpdateAllowedIpResponseBody self = new UpdateAllowedIpResponseBody();
return TeaModel.build(map, self);
}
public UpdateAllowedIpResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public UpdateAllowedIpResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public UpdateAllowedIpResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public UpdateAllowedIpResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateConsumerOffsetRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateConsumerOffsetRequest extends TeaModel {
/**
* <p>The name of the consumer group.</p>
* <ul>
* <li>The name can contain letters, digits, hyphens (-), and underscores (_).</li>
* <li>The name must be <strong>3 to 64</strong> characters in length. If a name contains more than <strong>64</strong> characters, the name is automatically truncated.</li>
* <li>The name of a consumer group cannot be changed after the consumer group is created.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>kafka-test</p>
*/
@NameInMap("ConsumerId")
public String consumerId;
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-mp91inkw****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>If you set resetType to offset, you can use this parameter to reset the consumer offset of each partition of a specific topic in the consumer group.</p>
*
* <strong>if can be null:</strong>
* <p>true</p>
*/
@NameInMap("Offsets")
public java.util.List<UpdateConsumerOffsetRequestOffsets> offsets;
/**
* <p>The region ID of the instance to which the consumer group belongs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The method that is used to reset the consumer offsets of the subscribed topics of a consumer group. Valid values:</p>
* <ul>
* <li><strong>timestamp</strong> (default)</li>
* <li><strong>offset</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>timestamp</p>
*/
@NameInMap("ResetType")
public String resetType;
/**
* <p>The point in time when message consumption starts. The value of this parameter is a UNIX timestamp in milliseconds. The value of this parameter must be <strong>less than 0</strong> or <strong>within the retention period of the consumer offset</strong>. This parameter takes effect only if you set resetType to timestamp.</p>
* <ul>
* <li>If you want to reset the consumer offset to the latest offset, set this parameter to -1.</li>
* <li>If you want to reset the consumer offset to the earliest offset, set this parameter to -2.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1</p>
*/
@NameInMap("Time")
public String time;
/**
* <p>The topic name.</p>
* <ul>
* <li>The name can contain letters, digits, underscores (_), and hyphens (-).</li>
* <li>The name must be <strong>3 to 64</strong> characters in length. If a name contains more than <strong>64</strong> characters, the name is automatically truncated.</li>
* <li>The name of a topic cannot be changed after the topic is created.</li>
* </ul>
* <p><strong>If you want to reset the consumer offsets of all topics to which the consumer subscribes, specify an empty string.</strong></p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>topic_name</p>
*/
@NameInMap("Topic")
public String topic;
public static UpdateConsumerOffsetRequest build(java.util.Map<String, ?> map) throws Exception {
UpdateConsumerOffsetRequest self = new UpdateConsumerOffsetRequest();
return TeaModel.build(map, self);
}
public UpdateConsumerOffsetRequest setConsumerId(String consumerId) {
this.consumerId = consumerId;
return this;
}
public String getConsumerId() {
return this.consumerId;
}
public UpdateConsumerOffsetRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public UpdateConsumerOffsetRequest setOffsets(java.util.List<UpdateConsumerOffsetRequestOffsets> offsets) {
this.offsets = offsets;
return this;
}
public java.util.List<UpdateConsumerOffsetRequestOffsets> getOffsets() {
return this.offsets;
}
public UpdateConsumerOffsetRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public UpdateConsumerOffsetRequest setResetType(String resetType) {
this.resetType = resetType;
return this;
}
public String getResetType() {
return this.resetType;
}
public UpdateConsumerOffsetRequest setTime(String time) {
this.time = time;
return this;
}
public String getTime() {
return this.time;
}
public UpdateConsumerOffsetRequest setTopic(String topic) {
this.topic = topic;
return this;
}
public String getTopic() {
return this.topic;
}
public static class UpdateConsumerOffsetRequestOffsets extends TeaModel {
/**
* <p>The consumer offset of the partition.</p>
*
* <strong>example:</strong>
* <p>1</p>
*/
@NameInMap("Offset")
public Long offset;
/**
* <p>The partition ID.</p>
*
* <strong>example:</strong>
* <p>0</p>
*/
@NameInMap("Partition")
public Integer partition;
public static UpdateConsumerOffsetRequestOffsets build(java.util.Map<String, ?> map) throws Exception {
UpdateConsumerOffsetRequestOffsets self = new UpdateConsumerOffsetRequestOffsets();
return TeaModel.build(map, self);
}
public UpdateConsumerOffsetRequestOffsets setOffset(Long offset) {
this.offset = offset;
return this;
}
public Long getOffset() {
return this.offset;
}
public UpdateConsumerOffsetRequestOffsets setPartition(Integer partition) {
this.partition = partition;
return this;
}
public Integer getPartition() {
return this.partition;
}
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateConsumerOffsetResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateConsumerOffsetResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public UpdateConsumerOffsetResponseBody body;
public static UpdateConsumerOffsetResponse build(java.util.Map<String, ?> map) throws Exception {
UpdateConsumerOffsetResponse self = new UpdateConsumerOffsetResponse();
return TeaModel.build(map, self);
}
public UpdateConsumerOffsetResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public UpdateConsumerOffsetResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public UpdateConsumerOffsetResponse setBody(UpdateConsumerOffsetResponseBody body) {
this.body = body;
return this;
}
public UpdateConsumerOffsetResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateConsumerOffsetResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateConsumerOffsetResponseBody extends TeaModel {
/**
* <p>The HTTP status code that is returned. The status code <strong>200</strong> indicates that the request is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>operation success</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>56729737-C428-4E1B-AC68-7A8C2D5****</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the call was successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static UpdateConsumerOffsetResponseBody build(java.util.Map<String, ?> map) throws Exception {
UpdateConsumerOffsetResponseBody self = new UpdateConsumerOffsetResponseBody();
return TeaModel.build(map, self);
}
public UpdateConsumerOffsetResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public UpdateConsumerOffsetResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public UpdateConsumerOffsetResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public UpdateConsumerOffsetResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateConsumerOffsetShrinkRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateConsumerOffsetShrinkRequest extends TeaModel {
/**
* <p>The name of the consumer group.</p>
* <ul>
* <li>The name can contain letters, digits, hyphens (-), and underscores (_).</li>
* <li>The name must be <strong>3 to 64</strong> characters in length. If a name contains more than <strong>64</strong> characters, the name is automatically truncated.</li>
* <li>The name of a consumer group cannot be changed after the consumer group is created.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>kafka-test</p>
*/
@NameInMap("ConsumerId")
public String consumerId;
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-mp91inkw****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>If you set resetType to offset, you can use this parameter to reset the consumer offset of each partition of a specific topic in the consumer group.</p>
*
* <strong>if can be null:</strong>
* <p>true</p>
*/
@NameInMap("Offsets")
public String offsetsShrink;
/**
* <p>The region ID of the instance to which the consumer group belongs.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The method that is used to reset the consumer offsets of the subscribed topics of a consumer group. Valid values:</p>
* <ul>
* <li><strong>timestamp</strong> (default)</li>
* <li><strong>offset</strong></li>
* </ul>
*
* <strong>example:</strong>
* <p>timestamp</p>
*/
@NameInMap("ResetType")
public String resetType;
/**
* <p>The point in time when message consumption starts. The value of this parameter is a UNIX timestamp in milliseconds. The value of this parameter must be <strong>less than 0</strong> or <strong>within the retention period of the consumer offset</strong>. This parameter takes effect only if you set resetType to timestamp.</p>
* <ul>
* <li>If you want to reset the consumer offset to the latest offset, set this parameter to -1.</li>
* <li>If you want to reset the consumer offset to the earliest offset, set this parameter to -2.</li>
* </ul>
*
* <strong>example:</strong>
* <p>-1</p>
*/
@NameInMap("Time")
public String time;
/**
* <p>The topic name.</p>
* <ul>
* <li>The name can contain letters, digits, underscores (_), and hyphens (-).</li>
* <li>The name must be <strong>3 to 64</strong> characters in length. If a name contains more than <strong>64</strong> characters, the name is automatically truncated.</li>
* <li>The name of a topic cannot be changed after the topic is created.</li>
* </ul>
* <p><strong>If you want to reset the consumer offsets of all topics to which the consumer subscribes, specify an empty string.</strong></p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>topic_name</p>
*/
@NameInMap("Topic")
public String topic;
public static UpdateConsumerOffsetShrinkRequest build(java.util.Map<String, ?> map) throws Exception {
UpdateConsumerOffsetShrinkRequest self = new UpdateConsumerOffsetShrinkRequest();
return TeaModel.build(map, self);
}
public UpdateConsumerOffsetShrinkRequest setConsumerId(String consumerId) {
this.consumerId = consumerId;
return this;
}
public String getConsumerId() {
return this.consumerId;
}
public UpdateConsumerOffsetShrinkRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public UpdateConsumerOffsetShrinkRequest setOffsetsShrink(String offsetsShrink) {
this.offsetsShrink = offsetsShrink;
return this;
}
public String getOffsetsShrink() {
return this.offsetsShrink;
}
public UpdateConsumerOffsetShrinkRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public UpdateConsumerOffsetShrinkRequest setResetType(String resetType) {
this.resetType = resetType;
return this;
}
public String getResetType() {
return this.resetType;
}
public UpdateConsumerOffsetShrinkRequest setTime(String time) {
this.time = time;
return this;
}
public String getTime() {
return this.time;
}
public UpdateConsumerOffsetShrinkRequest setTopic(String topic) {
this.topic = topic;
return this;
}
public String getTopic() {
return this.topic;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateInstanceConfigRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateInstanceConfigRequest extends TeaModel {
/**
* <p>The configurations that you want to update for the ApsaraMQ for Kafka instance. The value must be a valid JSON string.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>{"kafka.log.retention.hours":"33"}</p>
*/
@NameInMap("Config")
public String config;
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-v0h1fgs2****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The region ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
public static UpdateInstanceConfigRequest build(java.util.Map<String, ?> map) throws Exception {
UpdateInstanceConfigRequest self = new UpdateInstanceConfigRequest();
return TeaModel.build(map, self);
}
public UpdateInstanceConfigRequest setConfig(String config) {
this.config = config;
return this;
}
public String getConfig() {
return this.config;
}
public UpdateInstanceConfigRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public UpdateInstanceConfigRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateInstanceConfigResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateInstanceConfigResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public UpdateInstanceConfigResponseBody body;
public static UpdateInstanceConfigResponse build(java.util.Map<String, ?> map) throws Exception {
UpdateInstanceConfigResponse self = new UpdateInstanceConfigResponse();
return TeaModel.build(map, self);
}
public UpdateInstanceConfigResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public UpdateInstanceConfigResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public UpdateInstanceConfigResponse setBody(UpdateInstanceConfigResponseBody body) {
this.body = body;
return this;
}
public UpdateInstanceConfigResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateInstanceConfigResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateInstanceConfigResponseBody extends TeaModel {
/**
* <p>The HTTP status code. The status code 200 indicates that the call is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>4B6D821D-7F67-4CAA-9E13-A5A997C35***</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the call is successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static UpdateInstanceConfigResponseBody build(java.util.Map<String, ?> map) throws Exception {
UpdateInstanceConfigResponseBody self = new UpdateInstanceConfigResponseBody();
return TeaModel.build(map, self);
}
public UpdateInstanceConfigResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public UpdateInstanceConfigResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public UpdateInstanceConfigResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public UpdateInstanceConfigResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateTopicConfigRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateTopicConfigRequest extends TeaModel {
/**
* <p>The key of the topic configuration.</p>
* <ul>
* <li>For reserved instances, you can modify only the configurations of the topics that use local storage.</li>
* <li>For serverless instances, you can modify the configurations of all topics.</li>
* <li>Reserved instances whose topics use local storage support the following keys: retention.ms, max.message.bytes, replications, message.timestamp.type, and message.timestamp.difference.max.ms.``</li>
* <li>Serverless instances support the following keys: retention.hours, max.message.bytes, message.timestamp.type, message.timestamp.difference.max.ms.</li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>replications</p>
*/
@NameInMap("Config")
public String config;
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-v0h1fgs2****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The ID of the region where the instance resides.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The topic name.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>dqc_test2</p>
*/
@NameInMap("Topic")
public String topic;
/**
* <p>The value of the topic configuration.</p>
* <ul>
* <li><p>Serverless instances support the following values:</p>
* <ul>
* <li><code>retention.hours</code>: the message retention period. Value type: string. Valid values: 24 to 8760.</li>
* <li><code>max.message.bytes</code>: the maximum size of a sent message. Value type: string. Valid values: 1048576 to 10485760.</li>
* <li><code>message.timestamp.type</code>: the timestamp type of a message. Valid values: CreateTime and LogAppendTime. The value CreateTime specifies the timestamp that is specified by the producer when the message is sent. The value LogAppendTime specifies the time when the broker appends the message to its log. If you do not specify this parameter, the time when the message is created on the client is used.</li>
* <li><code>message.timestamp.difference.max.ms</code>: the maximum positive or negative difference allowed between the timestamp when the broker receives a message and the timestamp specified in the message. If you set message.timestamp.type to CreateTime, <strong>a message is rejected</strong> if the difference in timestamp exceeds the threshold. If you set message.timestamp.type to LogAppendTime, this configuration does not take effect.</li>
* </ul>
* </li>
* <li><p>Reserved instances support the following values:</p>
* <ul>
* <li><code>retention.ms</code>: the message retention period. Value type: string. Valid values: 3600000 to 31536000000.</li>
* <li><code>max.message.bytes</code>: the maximum size of a sent message. Value type: string. Valid values: 1048576 to 10485760.</li>
* <li><code>replications</code>: the number of replicas. Value type: string. Valid values: 1 to 3.</li>
* <li><code>message.timestamp.type</code>: the timestamp type of a message. Valid values: CreateTime and LogAppendTime. The value CreateTime specifies the timestamp that is specified by the producer when the message is sent. The value LogAppendTime specifies the time when the broker appends the message to its log. If you do not specify this parameter, the time when the message is created on the client is used.</li>
* <li><code>message.timestamp.difference.max.ms</code>: the maximum positive or negative difference allowed between the timestamp when the broker receives a message and the timestamp specified in the message. If you set message.timestamp.type to CreateTime, <strong>a message is rejected</strong> if the difference in timestamp exceeds the threshold. If you set message.timestamp.type to LogAppendTime, this configuration does not take effect.</li>
* </ul>
* </li>
* </ul>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>3</p>
*/
@NameInMap("Value")
public String value;
public static UpdateTopicConfigRequest build(java.util.Map<String, ?> map) throws Exception {
UpdateTopicConfigRequest self = new UpdateTopicConfigRequest();
return TeaModel.build(map, self);
}
public UpdateTopicConfigRequest setConfig(String config) {
this.config = config;
return this;
}
public String getConfig() {
return this.config;
}
public UpdateTopicConfigRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public UpdateTopicConfigRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public UpdateTopicConfigRequest setTopic(String topic) {
this.topic = topic;
return this;
}
public String getTopic() {
return this.topic;
}
public UpdateTopicConfigRequest setValue(String value) {
this.value = value;
return this;
}
public String getValue() {
return this.value;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateTopicConfigResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateTopicConfigResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public UpdateTopicConfigResponseBody body;
public static UpdateTopicConfigResponse build(java.util.Map<String, ?> map) throws Exception {
UpdateTopicConfigResponse self = new UpdateTopicConfigResponse();
return TeaModel.build(map, self);
}
public UpdateTopicConfigResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public UpdateTopicConfigResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public UpdateTopicConfigResponse setBody(UpdateTopicConfigResponseBody body) {
this.body = body;
return this;
}
public UpdateTopicConfigResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpdateTopicConfigResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpdateTopicConfigResponseBody extends TeaModel {
/**
* <p>The HTTP status code. If the request is successful, 200 is returned.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Long code;
/**
* <p>The returned data.</p>
*
* <strong>example:</strong>
* <p>[]</p>
*/
@NameInMap("Data")
public String data;
/**
* <p>The returned message.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The request ID.</p>
*
* <strong>example:</strong>
* <p>0178A3A7-E87B-5E50-A16F-3E62F534****</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request is successful.</p>
*
* <strong>example:</strong>
* <p>True</p>
*/
@NameInMap("Success")
public Boolean success;
public static UpdateTopicConfigResponseBody build(java.util.Map<String, ?> map) throws Exception {
UpdateTopicConfigResponseBody self = new UpdateTopicConfigResponseBody();
return TeaModel.build(map, self);
}
public UpdateTopicConfigResponseBody setCode(Long code) {
this.code = code;
return this;
}
public Long getCode() {
return this.code;
}
public UpdateTopicConfigResponseBody setData(String data) {
this.data = data;
return this;
}
public String getData() {
return this.data;
}
public UpdateTopicConfigResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public UpdateTopicConfigResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public UpdateTopicConfigResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpgradeInstanceVersionRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpgradeInstanceVersionRequest extends TeaModel {
/**
* <p>The ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-v0h1fgs2****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The ID of the region where the instance resides.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The major version to be upgraded to. Valid values:</p>
* <ul>
* <li><strong>0.10.2</strong></li>
* <li><strong>2.2.0</strong></li>
* </ul>
* <p>If you set this parameter to the current major version, the system upgrades the instance to the latest minor version.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0.10.2</p>
*/
@NameInMap("TargetVersion")
public String targetVersion;
public static UpgradeInstanceVersionRequest build(java.util.Map<String, ?> map) throws Exception {
UpgradeInstanceVersionRequest self = new UpgradeInstanceVersionRequest();
return TeaModel.build(map, self);
}
public UpgradeInstanceVersionRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public UpgradeInstanceVersionRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public UpgradeInstanceVersionRequest setTargetVersion(String targetVersion) {
this.targetVersion = targetVersion;
return this;
}
public String getTargetVersion() {
return this.targetVersion;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpgradeInstanceVersionResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpgradeInstanceVersionResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public UpgradeInstanceVersionResponseBody body;
public static UpgradeInstanceVersionResponse build(java.util.Map<String, ?> map) throws Exception {
UpgradeInstanceVersionResponse self = new UpgradeInstanceVersionResponse();
return TeaModel.build(map, self);
}
public UpgradeInstanceVersionResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public UpgradeInstanceVersionResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public UpgradeInstanceVersionResponse setBody(UpgradeInstanceVersionResponseBody body) {
this.body = body;
return this;
}
public UpgradeInstanceVersionResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpgradeInstanceVersionResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpgradeInstanceVersionResponseBody extends TeaModel {
/**
* <p>The HTTP status code that is returned. The HTTP status code 200 indicates that the request is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The error message returned.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>ABA4A7FD-E10F-45C7-9774-A5236015***</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request is successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static UpgradeInstanceVersionResponseBody build(java.util.Map<String, ?> map) throws Exception {
UpgradeInstanceVersionResponseBody self = new UpgradeInstanceVersionResponseBody();
return TeaModel.build(map, self);
}
public UpgradeInstanceVersionResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public UpgradeInstanceVersionResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public UpgradeInstanceVersionResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public UpgradeInstanceVersionResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpgradePostPayOrderRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpgradePostPayOrderRequest extends TeaModel {
/**
* <p>The disk size. Unit: GB.</p>
* <ul>
* <li>The disk size that you specify must be greater than or equal to the current disk size of the instance.</li>
* <li>For information about the valid values of this parameter, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</li>
* </ul>
* <blockquote>
* <p> If the instance is a serverless ApsaraMQ for Kafka instance, you do not need to configure this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>500</p>
*/
@NameInMap("DiskSize")
public Integer diskSize;
/**
* <p>The maximum Internet traffic of the instance.</p>
* <ul>
* <li>The Internet traffic that you specify must be greater than or equal to the current Internet traffic of the instance.</li>
* <li>For information about the valid values of this parameter, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</li>
* </ul>
* <blockquote>
* </blockquote>
* <ul>
* <li><p>If you set <strong>EipModel</strong> to <strong>true</strong>, set <strong>EipMax</strong> to a value that is greater than 0.</p>
* </li>
* <li><p>If you set <strong>EipModel</strong> to <strong>false</strong>, set <strong>EipMax</strong> to <strong>0</strong>.</p>
* </li>
* <li><p>If the instance is a serverless ApsaraMQ for Kafka instance, you do not need to configure this parameter.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
@NameInMap("EipMax")
public Integer eipMax;
/**
* <p>Specifies whether to enable Internet access for the instance. Valid values:</p>
* <ul>
* <li>true: enables Internet access.</li>
* <li>false: disables Internet access.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
@NameInMap("EipModel")
public Boolean eipModel;
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-mp919o4v****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The maximum traffic of the instance. We recommend that you do not configure this parameter.</p>
* <ul>
* <li>The maximum traffic that you specify must be greater than or equal to the current maximum traffic of the instance.</li>
* <li>You must configure at least one of IoMax and IoMaxSpec. If you configure both parameters, the value of IoMaxSpec takes effect. We recommend that you configure only IoMaxSpec.</li>
* <li>For information about the valid values of this parameter, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</li>
* </ul>
* <blockquote>
* <p> If the instance is a serverless ApsaraMQ for Kafka instance, you do not need to configure this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>60</p>
*/
@NameInMap("IoMax")
public Integer ioMax;
/**
* <p>The traffic specification of the instance. We recommend that you configure this parameter.</p>
* <ul>
* <li>The traffic specification that you specify must be greater than or equal to the current traffic specification of the instance.</li>
* <li>You must configure at least one of IoMax and IoMaxSpec. If you configure both parameters, the value of IoMaxSpec takes effect. We recommend that you configure only IoMaxSpec.</li>
* <li>For information about the valid values of this parameter, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</li>
* </ul>
* <blockquote>
* <p> If the instance is a serverless ApsaraMQ for Kafka instance, you do not need to configure this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>alikafka.hw.6xlarge</p>
*/
@NameInMap("IoMaxSpec")
public String ioMaxSpec;
/**
* <p>The number of partitions. We recommend that you configure this parameter.</p>
* <ul>
* <li>You must configure one of PartitionNum and TopicQuota. We recommend that you configure only PartitionNum.</li>
* <li>If you configure PartitionNum and TopicQuota at the same time, the system verifies whether the price of the partitions equals the price of the topics based on the previous topic-based selling mode. If the price of the partitions does not equal the price of the topics, an error is returned. If the price of the partitions equals the price of the topics, the instance is purchased based on the partition number.</li>
* <li>For information about the valid values of this parameter, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</li>
* </ul>
* <blockquote>
* <p> If the instance is a serverless ApsaraMQ for Kafka instance, you do not need to configure this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80</p>
*/
@NameInMap("PartitionNum")
public Integer partitionNum;
/**
* <p>The region ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The parameters that are configured for the serverless instance. These parameters are required only when you create a serverless instance.</p>
*/
@NameInMap("ServerlessConfig")
public UpgradePostPayOrderRequestServerlessConfig serverlessConfig;
/**
* <p>The instance edition.</p>
* <p>Valid values for this parameter if you set PaidType to 1:</p>
* <ul>
* <li>normal: Standard Edition (High Write)</li>
* <li>professional: Professional Edition (High Write)</li>
* <li>professionalForHighRead: Professional Edition (High Read)</li>
* </ul>
* <p>Valid values for this parameter if you set PaidType to 3:</p>
* <ul>
* <li>normal: Serverless Standard Edition</li>
* </ul>
* <p>For more information, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</p>
*
* <strong>example:</strong>
* <p>professional</p>
*/
@NameInMap("SpecType")
public String specType;
/**
* <p>The number of topics. We recommend that you do not configure this parameter.</p>
* <ul>
* <li>You must configure one of PartitionNum and TopicQuota. We recommend that you configure only PartitionNum.</li>
* <li>If you configure PartitionNum and TopicQuota at the same time, the system verifies whether the price of the partitions equals the price of the topics based on the previous topic-based selling mode. If the price of the partitions does not equal the price of the topics, an error is returned. If the price of the partitions equals the price of the topics, the instance is purchased based on the partition number.</li>
* <li>The default value of TopicQuota varies based on the value of IoMaxSpec. If the number of topics that you use exceeds the default value, you are charged additional fees.</li>
* <li>For information about the valid values of this parameter, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</li>
* </ul>
* <blockquote>
* <p> If the instance is a serverless ApsaraMQ for Kafka instance, you do not need to configure this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80</p>
*/
@NameInMap("TopicQuota")
public Integer topicQuota;
public static UpgradePostPayOrderRequest build(java.util.Map<String, ?> map) throws Exception {
UpgradePostPayOrderRequest self = new UpgradePostPayOrderRequest();
return TeaModel.build(map, self);
}
public UpgradePostPayOrderRequest setDiskSize(Integer diskSize) {
this.diskSize = diskSize;
return this;
}
public Integer getDiskSize() {
return this.diskSize;
}
public UpgradePostPayOrderRequest setEipMax(Integer eipMax) {
this.eipMax = eipMax;
return this;
}
public Integer getEipMax() {
return this.eipMax;
}
public UpgradePostPayOrderRequest setEipModel(Boolean eipModel) {
this.eipModel = eipModel;
return this;
}
public Boolean getEipModel() {
return this.eipModel;
}
public UpgradePostPayOrderRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public UpgradePostPayOrderRequest setIoMax(Integer ioMax) {
this.ioMax = ioMax;
return this;
}
public Integer getIoMax() {
return this.ioMax;
}
public UpgradePostPayOrderRequest setIoMaxSpec(String ioMaxSpec) {
this.ioMaxSpec = ioMaxSpec;
return this;
}
public String getIoMaxSpec() {
return this.ioMaxSpec;
}
public UpgradePostPayOrderRequest setPartitionNum(Integer partitionNum) {
this.partitionNum = partitionNum;
return this;
}
public Integer getPartitionNum() {
return this.partitionNum;
}
public UpgradePostPayOrderRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public UpgradePostPayOrderRequest setServerlessConfig(UpgradePostPayOrderRequestServerlessConfig serverlessConfig) {
this.serverlessConfig = serverlessConfig;
return this;
}
public UpgradePostPayOrderRequestServerlessConfig getServerlessConfig() {
return this.serverlessConfig;
}
public UpgradePostPayOrderRequest setSpecType(String specType) {
this.specType = specType;
return this;
}
public String getSpecType() {
return this.specType;
}
public UpgradePostPayOrderRequest setTopicQuota(Integer topicQuota) {
this.topicQuota = topicQuota;
return this;
}
public Integer getTopicQuota() {
return this.topicQuota;
}
public static class UpgradePostPayOrderRequestServerlessConfig extends TeaModel {
/**
* <p>The reserved capacity for publishing messages. You can specify only an integer for this parameter. Minimum value: 60.</p>
* <blockquote>
* <p> The maximum capacity that you can reserve for an instance varies based on available resources in a region. The reserved capacity range displayed on the buy page shall prevail.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>50</p>
*/
@NameInMap("ReservedPublishCapacity")
public Long reservedPublishCapacity;
/**
* <p>The reserved capacity for subscribing to messages. You can specify only an integer for this parameter. Minimum value: 50.</p>
* <blockquote>
* <p> The maximum capacity that you can reserve for an instance varies based on available resources in a region. The reserved capacity range displayed on the buy page shall prevail.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>50</p>
*/
@NameInMap("ReservedSubscribeCapacity")
public Long reservedSubscribeCapacity;
public static UpgradePostPayOrderRequestServerlessConfig build(java.util.Map<String, ?> map) throws Exception {
UpgradePostPayOrderRequestServerlessConfig self = new UpgradePostPayOrderRequestServerlessConfig();
return TeaModel.build(map, self);
}
public UpgradePostPayOrderRequestServerlessConfig setReservedPublishCapacity(Long reservedPublishCapacity) {
this.reservedPublishCapacity = reservedPublishCapacity;
return this;
}
public Long getReservedPublishCapacity() {
return this.reservedPublishCapacity;
}
public UpgradePostPayOrderRequestServerlessConfig setReservedSubscribeCapacity(Long reservedSubscribeCapacity) {
this.reservedSubscribeCapacity = reservedSubscribeCapacity;
return this;
}
public Long getReservedSubscribeCapacity() {
return this.reservedSubscribeCapacity;
}
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpgradePostPayOrderResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpgradePostPayOrderResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public UpgradePostPayOrderResponseBody body;
public static UpgradePostPayOrderResponse build(java.util.Map<String, ?> map) throws Exception {
UpgradePostPayOrderResponse self = new UpgradePostPayOrderResponse();
return TeaModel.build(map, self);
}
public UpgradePostPayOrderResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public UpgradePostPayOrderResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public UpgradePostPayOrderResponse setBody(UpgradePostPayOrderResponseBody body) {
this.body = body;
return this;
}
public UpgradePostPayOrderResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpgradePostPayOrderResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpgradePostPayOrderResponseBody extends TeaModel {
/**
* <p>The HTTP status code returned. The HTTP status code 200 indicates that the request is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The message returned.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>ABA4A7FD-E10F-45C7-9774-A5236015A***</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request is successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static UpgradePostPayOrderResponseBody build(java.util.Map<String, ?> map) throws Exception {
UpgradePostPayOrderResponseBody self = new UpgradePostPayOrderResponseBody();
return TeaModel.build(map, self);
}
public UpgradePostPayOrderResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public UpgradePostPayOrderResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public UpgradePostPayOrderResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public UpgradePostPayOrderResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpgradePostPayOrderShrinkRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpgradePostPayOrderShrinkRequest extends TeaModel {
/**
* <p>The disk size. Unit: GB.</p>
* <ul>
* <li>The disk size that you specify must be greater than or equal to the current disk size of the instance.</li>
* <li>For information about the valid values of this parameter, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</li>
* </ul>
* <blockquote>
* <p> If the instance is a serverless ApsaraMQ for Kafka instance, you do not need to configure this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>500</p>
*/
@NameInMap("DiskSize")
public Integer diskSize;
/**
* <p>The maximum Internet traffic of the instance.</p>
* <ul>
* <li>The Internet traffic that you specify must be greater than or equal to the current Internet traffic of the instance.</li>
* <li>For information about the valid values of this parameter, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</li>
* </ul>
* <blockquote>
* </blockquote>
* <ul>
* <li><p>If you set <strong>EipModel</strong> to <strong>true</strong>, set <strong>EipMax</strong> to a value that is greater than 0.</p>
* </li>
* <li><p>If you set <strong>EipModel</strong> to <strong>false</strong>, set <strong>EipMax</strong> to <strong>0</strong>.</p>
* </li>
* <li><p>If the instance is a serverless ApsaraMQ for Kafka instance, you do not need to configure this parameter.</p>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>0</p>
*/
@NameInMap("EipMax")
public Integer eipMax;
/**
* <p>Specifies whether to enable Internet access for the instance. Valid values:</p>
* <ul>
* <li>true: enables Internet access.</li>
* <li>false: disables Internet access.</li>
* </ul>
*
* <strong>example:</strong>
* <p>false</p>
*/
@NameInMap("EipModel")
public Boolean eipModel;
/**
* <p>The instance ID.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-mp919o4v****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The maximum traffic of the instance. We recommend that you do not configure this parameter.</p>
* <ul>
* <li>The maximum traffic that you specify must be greater than or equal to the current maximum traffic of the instance.</li>
* <li>You must configure at least one of IoMax and IoMaxSpec. If you configure both parameters, the value of IoMaxSpec takes effect. We recommend that you configure only IoMaxSpec.</li>
* <li>For information about the valid values of this parameter, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</li>
* </ul>
* <blockquote>
* <p> If the instance is a serverless ApsaraMQ for Kafka instance, you do not need to configure this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>60</p>
*/
@NameInMap("IoMax")
public Integer ioMax;
/**
* <p>The traffic specification of the instance. We recommend that you configure this parameter.</p>
* <ul>
* <li>The traffic specification that you specify must be greater than or equal to the current traffic specification of the instance.</li>
* <li>You must configure at least one of IoMax and IoMaxSpec. If you configure both parameters, the value of IoMaxSpec takes effect. We recommend that you configure only IoMaxSpec.</li>
* <li>For information about the valid values of this parameter, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</li>
* </ul>
* <blockquote>
* <p> If the instance is a serverless ApsaraMQ for Kafka instance, you do not need to configure this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>alikafka.hw.6xlarge</p>
*/
@NameInMap("IoMaxSpec")
public String ioMaxSpec;
/**
* <p>The number of partitions. We recommend that you configure this parameter.</p>
* <ul>
* <li>You must configure one of PartitionNum and TopicQuota. We recommend that you configure only PartitionNum.</li>
* <li>If you configure PartitionNum and TopicQuota at the same time, the system verifies whether the price of the partitions equals the price of the topics based on the previous topic-based selling mode. If the price of the partitions does not equal the price of the topics, an error is returned. If the price of the partitions equals the price of the topics, the instance is purchased based on the partition number.</li>
* <li>For information about the valid values of this parameter, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</li>
* </ul>
* <blockquote>
* <p> If the instance is a serverless ApsaraMQ for Kafka instance, you do not need to configure this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80</p>
*/
@NameInMap("PartitionNum")
public Integer partitionNum;
/**
* <p>The region ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The parameters that are configured for the serverless instance. These parameters are required only when you create a serverless instance.</p>
*/
@NameInMap("ServerlessConfig")
public String serverlessConfigShrink;
/**
* <p>The instance edition.</p>
* <p>Valid values for this parameter if you set PaidType to 1:</p>
* <ul>
* <li>normal: Standard Edition (High Write)</li>
* <li>professional: Professional Edition (High Write)</li>
* <li>professionalForHighRead: Professional Edition (High Read)</li>
* </ul>
* <p>Valid values for this parameter if you set PaidType to 3:</p>
* <ul>
* <li>normal: Serverless Standard Edition</li>
* </ul>
* <p>For more information, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</p>
*
* <strong>example:</strong>
* <p>professional</p>
*/
@NameInMap("SpecType")
public String specType;
/**
* <p>The number of topics. We recommend that you do not configure this parameter.</p>
* <ul>
* <li>You must configure one of PartitionNum and TopicQuota. We recommend that you configure only PartitionNum.</li>
* <li>If you configure PartitionNum and TopicQuota at the same time, the system verifies whether the price of the partitions equals the price of the topics based on the previous topic-based selling mode. If the price of the partitions does not equal the price of the topics, an error is returned. If the price of the partitions equals the price of the topics, the instance is purchased based on the partition number.</li>
* <li>The default value of TopicQuota varies based on the value of IoMaxSpec. If the number of topics that you use exceeds the default value, you are charged additional fees.</li>
* <li>For information about the valid values of this parameter, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing</a>.</li>
* </ul>
* <blockquote>
* <p> If the instance is a serverless ApsaraMQ for Kafka instance, you do not need to configure this parameter.</p>
* </blockquote>
*
* <strong>example:</strong>
* <p>80</p>
*/
@NameInMap("TopicQuota")
public Integer topicQuota;
public static UpgradePostPayOrderShrinkRequest build(java.util.Map<String, ?> map) throws Exception {
UpgradePostPayOrderShrinkRequest self = new UpgradePostPayOrderShrinkRequest();
return TeaModel.build(map, self);
}
public UpgradePostPayOrderShrinkRequest setDiskSize(Integer diskSize) {
this.diskSize = diskSize;
return this;
}
public Integer getDiskSize() {
return this.diskSize;
}
public UpgradePostPayOrderShrinkRequest setEipMax(Integer eipMax) {
this.eipMax = eipMax;
return this;
}
public Integer getEipMax() {
return this.eipMax;
}
public UpgradePostPayOrderShrinkRequest setEipModel(Boolean eipModel) {
this.eipModel = eipModel;
return this;
}
public Boolean getEipModel() {
return this.eipModel;
}
public UpgradePostPayOrderShrinkRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public UpgradePostPayOrderShrinkRequest setIoMax(Integer ioMax) {
this.ioMax = ioMax;
return this;
}
public Integer getIoMax() {
return this.ioMax;
}
public UpgradePostPayOrderShrinkRequest setIoMaxSpec(String ioMaxSpec) {
this.ioMaxSpec = ioMaxSpec;
return this;
}
public String getIoMaxSpec() {
return this.ioMaxSpec;
}
public UpgradePostPayOrderShrinkRequest setPartitionNum(Integer partitionNum) {
this.partitionNum = partitionNum;
return this;
}
public Integer getPartitionNum() {
return this.partitionNum;
}
public UpgradePostPayOrderShrinkRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public UpgradePostPayOrderShrinkRequest setServerlessConfigShrink(String serverlessConfigShrink) {
this.serverlessConfigShrink = serverlessConfigShrink;
return this;
}
public String getServerlessConfigShrink() {
return this.serverlessConfigShrink;
}
public UpgradePostPayOrderShrinkRequest setSpecType(String specType) {
this.specType = specType;
return this;
}
public String getSpecType() {
return this.specType;
}
public UpgradePostPayOrderShrinkRequest setTopicQuota(Integer topicQuota) {
this.topicQuota = topicQuota;
return this;
}
public Integer getTopicQuota() {
return this.topicQuota;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpgradePrePayOrderRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpgradePrePayOrderRequest extends TeaModel {
@NameInMap("ConfluentConfig")
public UpgradePrePayOrderRequestConfluentConfig confluentConfig;
/**
* <p>The size of the disk.</p>
* <ul>
* <li>The disk size that you specify must be greater than or equal to the current disk size of the instance.</li>
* <li>For more information about the valid values, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>900</p>
*/
@NameInMap("DiskSize")
public Integer diskSize;
/**
* <p>The Internet traffic for the instance.</p>
* <ul>
* <li>The Internet traffic volume that you specify must be greater than or equal to the current Internet traffic volume of the instance.</li>
* <li>For more information about the valid values, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.<blockquote>
* <ul>
* <li>If the <strong>EipModel</strong> parameter is set to <strong>true</strong>, set the <strong>EipMax</strong> parameter to a value that is greater than 0.</li>
* <li>If the <strong>EipModel</strong> parameter is set to <strong>false</strong>, set the <strong>EipMax</strong> parameter to <strong>0</strong>.</li>
* </ul>
* </blockquote>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
@NameInMap("EipMax")
public Integer eipMax;
/**
* <p>Specifies whether to enable Internet access for the instance. Valid values:</p>
* <ul>
* <li>true: enables Internet access.</li>
* <li>false: disables Internet access.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("EipModel")
public Boolean eipModel;
/**
* <p>The ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-mp919o4v****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The maximum traffic for the instance. We recommend that you do not configure this parameter.</p>
* <ul>
* <li>The maximum traffic volume that you specify must be greater than or equal to the current maximum traffic volume of the instance.</li>
* <li>You must configure at least one of the IoMax and IoMaxSpec parameters. If you configure both parameters, the value of the IoMaxSpec parameter takes effect. We recommend that you configure only the IoMaxSpec parameter.</li>
* <li>For more information about the valid values, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>40</p>
*/
@NameInMap("IoMax")
public Integer ioMax;
/**
* <p>The traffic specification of the instance. We recommend that you configure this parameter.</p>
* <ul>
* <li>The traffic specification that you specify must be greater than or equal to the current traffic specification of the instance.</li>
* <li>You must configure at least one of the IoMax and IoMaxSpec parameters. If you configure both parameters, the value of the IoMaxSpec parameter takes effect. We recommend that you configure only the IoMaxSpec parameter.</li>
* <li>For more information about the valid values, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>alikafka.hw.2xlarge</p>
*/
@NameInMap("IoMaxSpec")
public String ioMaxSpec;
@NameInMap("PaidType")
public Integer paidType;
/**
* <p>The number of partitions. We recommend that you configure this parameter.</p>
* <ul>
* <li>You must specify at least one of the PartitionNum and TopicQuota parameters. We recommend that you configure only the PartitionNum parameter.</li>
* <li>If you specify both parameters, the topic-based sales model is used to check whether the PartitionNum value and the TopicQuota value are the same. If they are not the same, a failure response is returned. If they are the same, the order is placed based on the PartitionNum value.</li>
* <li>For more information about the valid values, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>50</p>
*/
@NameInMap("PartitionNum")
public Integer partitionNum;
/**
* <p>The region ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The edition of the instance. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: Standard Edition (High Write)</li>
* <li><strong>professional</strong>: Professional Edition (High Write)</li>
* <li><strong>professionalForHighRead</strong>: Professional Edition (High Read)</li>
* </ul>
* <p>You cannot downgrade an instance from the Professional Edition to the Standard Edition. For more information about these instance editions, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.</p>
*
* <strong>example:</strong>
* <p>professional</p>
*/
@NameInMap("SpecType")
public String specType;
/**
* <p>The number of topics. We recommend that you do not configure this parameter.</p>
* <ul>
* <li>You must specify at least one of the PartitionNum and TopicQuota parameters. We recommend that you configure only the PartitionNum parameter.</li>
* <li>If you specify both parameters, the topic-based sales model is used to check whether the PartitionNum value and the TopicQuota value are the same. If they are not the same, a failure response is returned. If they are the same, the order is placed based on the PartitionNum value.</li>
* <li>The default value of the TopicQuota parameter varies based on the value of the IoMaxSpec parameter. If the number of topics that you consume exceeds the default value, you are charged additional fees.</li>
* <li>For more information about the valid values, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>50</p>
*/
@NameInMap("TopicQuota")
public Integer topicQuota;
public static UpgradePrePayOrderRequest build(java.util.Map<String, ?> map) throws Exception {
UpgradePrePayOrderRequest self = new UpgradePrePayOrderRequest();
return TeaModel.build(map, self);
}
public UpgradePrePayOrderRequest setConfluentConfig(UpgradePrePayOrderRequestConfluentConfig confluentConfig) {
this.confluentConfig = confluentConfig;
return this;
}
public UpgradePrePayOrderRequestConfluentConfig getConfluentConfig() {
return this.confluentConfig;
}
public UpgradePrePayOrderRequest setDiskSize(Integer diskSize) {
this.diskSize = diskSize;
return this;
}
public Integer getDiskSize() {
return this.diskSize;
}
public UpgradePrePayOrderRequest setEipMax(Integer eipMax) {
this.eipMax = eipMax;
return this;
}
public Integer getEipMax() {
return this.eipMax;
}
public UpgradePrePayOrderRequest setEipModel(Boolean eipModel) {
this.eipModel = eipModel;
return this;
}
public Boolean getEipModel() {
return this.eipModel;
}
public UpgradePrePayOrderRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public UpgradePrePayOrderRequest setIoMax(Integer ioMax) {
this.ioMax = ioMax;
return this;
}
public Integer getIoMax() {
return this.ioMax;
}
public UpgradePrePayOrderRequest setIoMaxSpec(String ioMaxSpec) {
this.ioMaxSpec = ioMaxSpec;
return this;
}
public String getIoMaxSpec() {
return this.ioMaxSpec;
}
public UpgradePrePayOrderRequest setPaidType(Integer paidType) {
this.paidType = paidType;
return this;
}
public Integer getPaidType() {
return this.paidType;
}
public UpgradePrePayOrderRequest setPartitionNum(Integer partitionNum) {
this.partitionNum = partitionNum;
return this;
}
public Integer getPartitionNum() {
return this.partitionNum;
}
public UpgradePrePayOrderRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public UpgradePrePayOrderRequest setSpecType(String specType) {
this.specType = specType;
return this;
}
public String getSpecType() {
return this.specType;
}
public UpgradePrePayOrderRequest setTopicQuota(Integer topicQuota) {
this.topicQuota = topicQuota;
return this;
}
public Integer getTopicQuota() {
return this.topicQuota;
}
public static class UpgradePrePayOrderRequestConfluentConfig extends TeaModel {
@NameInMap("ConnectCU")
public Integer connectCU;
@NameInMap("ConnectReplica")
public Integer connectReplica;
@NameInMap("ControlCenterCU")
public Integer controlCenterCU;
@NameInMap("ControlCenterReplica")
public Integer controlCenterReplica;
@NameInMap("ControlCenterStorage")
public Integer controlCenterStorage;
@NameInMap("KafkaCU")
public Integer kafkaCU;
@NameInMap("KafkaReplica")
public Integer kafkaReplica;
@NameInMap("KafkaRestProxyCU")
public Integer kafkaRestProxyCU;
@NameInMap("KafkaRestProxyReplica")
public Integer kafkaRestProxyReplica;
@NameInMap("KafkaStorage")
public Integer kafkaStorage;
@NameInMap("KsqlCU")
public Integer ksqlCU;
@NameInMap("KsqlReplica")
public Integer ksqlReplica;
@NameInMap("KsqlStorage")
public Integer ksqlStorage;
@NameInMap("SchemaRegistryCU")
public Integer schemaRegistryCU;
@NameInMap("SchemaRegistryReplica")
public Integer schemaRegistryReplica;
@NameInMap("ZooKeeperCU")
public Integer zooKeeperCU;
@NameInMap("ZooKeeperReplica")
public Integer zooKeeperReplica;
@NameInMap("ZooKeeperStorage")
public Integer zooKeeperStorage;
public static UpgradePrePayOrderRequestConfluentConfig build(java.util.Map<String, ?> map) throws Exception {
UpgradePrePayOrderRequestConfluentConfig self = new UpgradePrePayOrderRequestConfluentConfig();
return TeaModel.build(map, self);
}
public UpgradePrePayOrderRequestConfluentConfig setConnectCU(Integer connectCU) {
this.connectCU = connectCU;
return this;
}
public Integer getConnectCU() {
return this.connectCU;
}
public UpgradePrePayOrderRequestConfluentConfig setConnectReplica(Integer connectReplica) {
this.connectReplica = connectReplica;
return this;
}
public Integer getConnectReplica() {
return this.connectReplica;
}
public UpgradePrePayOrderRequestConfluentConfig setControlCenterCU(Integer controlCenterCU) {
this.controlCenterCU = controlCenterCU;
return this;
}
public Integer getControlCenterCU() {
return this.controlCenterCU;
}
public UpgradePrePayOrderRequestConfluentConfig setControlCenterReplica(Integer controlCenterReplica) {
this.controlCenterReplica = controlCenterReplica;
return this;
}
public Integer getControlCenterReplica() {
return this.controlCenterReplica;
}
public UpgradePrePayOrderRequestConfluentConfig setControlCenterStorage(Integer controlCenterStorage) {
this.controlCenterStorage = controlCenterStorage;
return this;
}
public Integer getControlCenterStorage() {
return this.controlCenterStorage;
}
public UpgradePrePayOrderRequestConfluentConfig setKafkaCU(Integer kafkaCU) {
this.kafkaCU = kafkaCU;
return this;
}
public Integer getKafkaCU() {
return this.kafkaCU;
}
public UpgradePrePayOrderRequestConfluentConfig setKafkaReplica(Integer kafkaReplica) {
this.kafkaReplica = kafkaReplica;
return this;
}
public Integer getKafkaReplica() {
return this.kafkaReplica;
}
public UpgradePrePayOrderRequestConfluentConfig setKafkaRestProxyCU(Integer kafkaRestProxyCU) {
this.kafkaRestProxyCU = kafkaRestProxyCU;
return this;
}
public Integer getKafkaRestProxyCU() {
return this.kafkaRestProxyCU;
}
public UpgradePrePayOrderRequestConfluentConfig setKafkaRestProxyReplica(Integer kafkaRestProxyReplica) {
this.kafkaRestProxyReplica = kafkaRestProxyReplica;
return this;
}
public Integer getKafkaRestProxyReplica() {
return this.kafkaRestProxyReplica;
}
public UpgradePrePayOrderRequestConfluentConfig setKafkaStorage(Integer kafkaStorage) {
this.kafkaStorage = kafkaStorage;
return this;
}
public Integer getKafkaStorage() {
return this.kafkaStorage;
}
public UpgradePrePayOrderRequestConfluentConfig setKsqlCU(Integer ksqlCU) {
this.ksqlCU = ksqlCU;
return this;
}
public Integer getKsqlCU() {
return this.ksqlCU;
}
public UpgradePrePayOrderRequestConfluentConfig setKsqlReplica(Integer ksqlReplica) {
this.ksqlReplica = ksqlReplica;
return this;
}
public Integer getKsqlReplica() {
return this.ksqlReplica;
}
public UpgradePrePayOrderRequestConfluentConfig setKsqlStorage(Integer ksqlStorage) {
this.ksqlStorage = ksqlStorage;
return this;
}
public Integer getKsqlStorage() {
return this.ksqlStorage;
}
public UpgradePrePayOrderRequestConfluentConfig setSchemaRegistryCU(Integer schemaRegistryCU) {
this.schemaRegistryCU = schemaRegistryCU;
return this;
}
public Integer getSchemaRegistryCU() {
return this.schemaRegistryCU;
}
public UpgradePrePayOrderRequestConfluentConfig setSchemaRegistryReplica(Integer schemaRegistryReplica) {
this.schemaRegistryReplica = schemaRegistryReplica;
return this;
}
public Integer getSchemaRegistryReplica() {
return this.schemaRegistryReplica;
}
public UpgradePrePayOrderRequestConfluentConfig setZooKeeperCU(Integer zooKeeperCU) {
this.zooKeeperCU = zooKeeperCU;
return this;
}
public Integer getZooKeeperCU() {
return this.zooKeeperCU;
}
public UpgradePrePayOrderRequestConfluentConfig setZooKeeperReplica(Integer zooKeeperReplica) {
this.zooKeeperReplica = zooKeeperReplica;
return this;
}
public Integer getZooKeeperReplica() {
return this.zooKeeperReplica;
}
public UpgradePrePayOrderRequestConfluentConfig setZooKeeperStorage(Integer zooKeeperStorage) {
this.zooKeeperStorage = zooKeeperStorage;
return this;
}
public Integer getZooKeeperStorage() {
return this.zooKeeperStorage;
}
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpgradePrePayOrderResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpgradePrePayOrderResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public UpgradePrePayOrderResponseBody body;
public static UpgradePrePayOrderResponse build(java.util.Map<String, ?> map) throws Exception {
UpgradePrePayOrderResponse self = new UpgradePrePayOrderResponse();
return TeaModel.build(map, self);
}
public UpgradePrePayOrderResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public UpgradePrePayOrderResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public UpgradePrePayOrderResponse setBody(UpgradePrePayOrderResponseBody body) {
this.body = body;
return this;
}
public UpgradePrePayOrderResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpgradePrePayOrderResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpgradePrePayOrderResponseBody extends TeaModel {
/**
* <p>The HTTP status code returned. The HTTP status code 200 indicates that the request is successful.</p>
*
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <p>The error message returned.</p>
*
* <strong>example:</strong>
* <p>operation success.</p>
*/
@NameInMap("Message")
public String message;
@NameInMap("OrderId")
public String orderId;
/**
* <p>The ID of the request.</p>
*
* <strong>example:</strong>
* <p>ABA4A7FD-E10F-45C7-9774-A5236015***</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <p>Indicates whether the request is successful.</p>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("Success")
public Boolean success;
public static UpgradePrePayOrderResponseBody build(java.util.Map<String, ?> map) throws Exception {
UpgradePrePayOrderResponseBody self = new UpgradePrePayOrderResponseBody();
return TeaModel.build(map, self);
}
public UpgradePrePayOrderResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public UpgradePrePayOrderResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public UpgradePrePayOrderResponseBody setOrderId(String orderId) {
this.orderId = orderId;
return this;
}
public String getOrderId() {
return this.orderId;
}
public UpgradePrePayOrderResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public UpgradePrePayOrderResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
|
0
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916
|
java-sources/com/aliyun/alikafka20190916/1.13.0/com/aliyun/alikafka20190916/models/UpgradePrePayOrderShrinkRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alikafka20190916.models;
import com.aliyun.tea.*;
public class UpgradePrePayOrderShrinkRequest extends TeaModel {
@NameInMap("ConfluentConfig")
public String confluentConfigShrink;
/**
* <p>The size of the disk.</p>
* <ul>
* <li>The disk size that you specify must be greater than or equal to the current disk size of the instance.</li>
* <li>For more information about the valid values, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>900</p>
*/
@NameInMap("DiskSize")
public Integer diskSize;
/**
* <p>The Internet traffic for the instance.</p>
* <ul>
* <li>The Internet traffic volume that you specify must be greater than or equal to the current Internet traffic volume of the instance.</li>
* <li>For more information about the valid values, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.<blockquote>
* <ul>
* <li>If the <strong>EipModel</strong> parameter is set to <strong>true</strong>, set the <strong>EipMax</strong> parameter to a value that is greater than 0.</li>
* <li>If the <strong>EipModel</strong> parameter is set to <strong>false</strong>, set the <strong>EipMax</strong> parameter to <strong>0</strong>.</li>
* </ul>
* </blockquote>
* </li>
* </ul>
*
* <strong>example:</strong>
* <p>3</p>
*/
@NameInMap("EipMax")
public Integer eipMax;
/**
* <p>Specifies whether to enable Internet access for the instance. Valid values:</p>
* <ul>
* <li>true: enables Internet access.</li>
* <li>false: disables Internet access.</li>
* </ul>
*
* <strong>example:</strong>
* <p>true</p>
*/
@NameInMap("EipModel")
public Boolean eipModel;
/**
* <p>The ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>alikafka_post-cn-mp919o4v****</p>
*/
@NameInMap("InstanceId")
public String instanceId;
/**
* <p>The maximum traffic for the instance. We recommend that you do not configure this parameter.</p>
* <ul>
* <li>The maximum traffic volume that you specify must be greater than or equal to the current maximum traffic volume of the instance.</li>
* <li>You must configure at least one of the IoMax and IoMaxSpec parameters. If you configure both parameters, the value of the IoMaxSpec parameter takes effect. We recommend that you configure only the IoMaxSpec parameter.</li>
* <li>For more information about the valid values, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>40</p>
*/
@NameInMap("IoMax")
public Integer ioMax;
/**
* <p>The traffic specification of the instance. We recommend that you configure this parameter.</p>
* <ul>
* <li>The traffic specification that you specify must be greater than or equal to the current traffic specification of the instance.</li>
* <li>You must configure at least one of the IoMax and IoMaxSpec parameters. If you configure both parameters, the value of the IoMaxSpec parameter takes effect. We recommend that you configure only the IoMaxSpec parameter.</li>
* <li>For more information about the valid values, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>alikafka.hw.2xlarge</p>
*/
@NameInMap("IoMaxSpec")
public String ioMaxSpec;
@NameInMap("PaidType")
public Integer paidType;
/**
* <p>The number of partitions. We recommend that you configure this parameter.</p>
* <ul>
* <li>You must specify at least one of the PartitionNum and TopicQuota parameters. We recommend that you configure only the PartitionNum parameter.</li>
* <li>If you specify both parameters, the topic-based sales model is used to check whether the PartitionNum value and the TopicQuota value are the same. If they are not the same, a failure response is returned. If they are the same, the order is placed based on the PartitionNum value.</li>
* <li>For more information about the valid values, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>50</p>
*/
@NameInMap("PartitionNum")
public Integer partitionNum;
/**
* <p>The region ID of the instance.</p>
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>cn-hangzhou</p>
*/
@NameInMap("RegionId")
public String regionId;
/**
* <p>The edition of the instance. Valid values:</p>
* <ul>
* <li><strong>normal</strong>: Standard Edition (High Write)</li>
* <li><strong>professional</strong>: Professional Edition (High Write)</li>
* <li><strong>professionalForHighRead</strong>: Professional Edition (High Read)</li>
* </ul>
* <p>You cannot downgrade an instance from the Professional Edition to the Standard Edition. For more information about these instance editions, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.</p>
*
* <strong>example:</strong>
* <p>professional</p>
*/
@NameInMap("SpecType")
public String specType;
/**
* <p>The number of topics. We recommend that you do not configure this parameter.</p>
* <ul>
* <li>You must specify at least one of the PartitionNum and TopicQuota parameters. We recommend that you configure only the PartitionNum parameter.</li>
* <li>If you specify both parameters, the topic-based sales model is used to check whether the PartitionNum value and the TopicQuota value are the same. If they are not the same, a failure response is returned. If they are the same, the order is placed based on the PartitionNum value.</li>
* <li>The default value of the TopicQuota parameter varies based on the value of the IoMaxSpec parameter. If the number of topics that you consume exceeds the default value, you are charged additional fees.</li>
* <li>For more information about the valid values, see <a href="https://help.aliyun.com/document_detail/84737.html">Billing overview</a>.</li>
* </ul>
*
* <strong>example:</strong>
* <p>50</p>
*/
@NameInMap("TopicQuota")
public Integer topicQuota;
public static UpgradePrePayOrderShrinkRequest build(java.util.Map<String, ?> map) throws Exception {
UpgradePrePayOrderShrinkRequest self = new UpgradePrePayOrderShrinkRequest();
return TeaModel.build(map, self);
}
public UpgradePrePayOrderShrinkRequest setConfluentConfigShrink(String confluentConfigShrink) {
this.confluentConfigShrink = confluentConfigShrink;
return this;
}
public String getConfluentConfigShrink() {
return this.confluentConfigShrink;
}
public UpgradePrePayOrderShrinkRequest setDiskSize(Integer diskSize) {
this.diskSize = diskSize;
return this;
}
public Integer getDiskSize() {
return this.diskSize;
}
public UpgradePrePayOrderShrinkRequest setEipMax(Integer eipMax) {
this.eipMax = eipMax;
return this;
}
public Integer getEipMax() {
return this.eipMax;
}
public UpgradePrePayOrderShrinkRequest setEipModel(Boolean eipModel) {
this.eipModel = eipModel;
return this;
}
public Boolean getEipModel() {
return this.eipModel;
}
public UpgradePrePayOrderShrinkRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public UpgradePrePayOrderShrinkRequest setIoMax(Integer ioMax) {
this.ioMax = ioMax;
return this;
}
public Integer getIoMax() {
return this.ioMax;
}
public UpgradePrePayOrderShrinkRequest setIoMaxSpec(String ioMaxSpec) {
this.ioMaxSpec = ioMaxSpec;
return this;
}
public String getIoMaxSpec() {
return this.ioMaxSpec;
}
public UpgradePrePayOrderShrinkRequest setPaidType(Integer paidType) {
this.paidType = paidType;
return this;
}
public Integer getPaidType() {
return this.paidType;
}
public UpgradePrePayOrderShrinkRequest setPartitionNum(Integer partitionNum) {
this.partitionNum = partitionNum;
return this;
}
public Integer getPartitionNum() {
return this.partitionNum;
}
public UpgradePrePayOrderShrinkRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public UpgradePrePayOrderShrinkRequest setSpecType(String specType) {
this.specType = specType;
return this;
}
public String getSpecType() {
return this.specType;
}
public UpgradePrePayOrderShrinkRequest setTopicQuota(Integer topicQuota) {
this.topicQuota = topicQuota;
return this;
}
public Integer getTopicQuota() {
return this.topicQuota;
}
}
|
0
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807/Client.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20180807;
import com.aliyun.tea.*;
import com.aliyun.alimt20180807.models.*;
public class Client extends com.aliyun.teaopenapi.Client {
public Client(com.aliyun.teaopenapi.models.Config config) throws Exception {
super(config);
this._endpointRule = "regional";
this._endpointMap = TeaConverter.buildMap(
new TeaPair("cn-hangzhou", "mt.cn-hangzhou.aliyuncs.com"),
new TeaPair("ap-northeast-1", "mt.aliyuncs.com"),
new TeaPair("ap-northeast-2-pop", "mt.aliyuncs.com"),
new TeaPair("ap-south-1", "mt.aliyuncs.com"),
new TeaPair("ap-southeast-1", "mt.ap-southeast-1.aliyuncs.com"),
new TeaPair("ap-southeast-2", "mt.aliyuncs.com"),
new TeaPair("ap-southeast-3", "mt.aliyuncs.com"),
new TeaPair("ap-southeast-5", "mt.aliyuncs.com"),
new TeaPair("cn-beijing", "mt.aliyuncs.com"),
new TeaPair("cn-beijing-finance-1", "mt.aliyuncs.com"),
new TeaPair("cn-beijing-finance-pop", "mt.aliyuncs.com"),
new TeaPair("cn-beijing-gov-1", "mt.aliyuncs.com"),
new TeaPair("cn-beijing-nu16-b01", "mt.aliyuncs.com"),
new TeaPair("cn-chengdu", "mt.aliyuncs.com"),
new TeaPair("cn-edge-1", "mt.aliyuncs.com"),
new TeaPair("cn-fujian", "mt.aliyuncs.com"),
new TeaPair("cn-haidian-cm12-c01", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-bj-b01", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-finance", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-internal-prod-1", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-internal-test-1", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-internal-test-2", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-internal-test-3", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-test-306", "mt.aliyuncs.com"),
new TeaPair("cn-hongkong", "mt.aliyuncs.com"),
new TeaPair("cn-hongkong-finance-pop", "mt.aliyuncs.com"),
new TeaPair("cn-huhehaote", "mt.aliyuncs.com"),
new TeaPair("cn-north-2-gov-1", "mt.aliyuncs.com"),
new TeaPair("cn-qingdao", "mt.aliyuncs.com"),
new TeaPair("cn-qingdao-nebula", "mt.aliyuncs.com"),
new TeaPair("cn-shanghai", "mt.aliyuncs.com"),
new TeaPair("cn-shanghai-et15-b01", "mt.aliyuncs.com"),
new TeaPair("cn-shanghai-et2-b01", "mt.aliyuncs.com"),
new TeaPair("cn-shanghai-finance-1", "mt.aliyuncs.com"),
new TeaPair("cn-shanghai-inner", "mt.aliyuncs.com"),
new TeaPair("cn-shanghai-internal-test-1", "mt.aliyuncs.com"),
new TeaPair("cn-shenzhen", "mt.aliyuncs.com"),
new TeaPair("cn-shenzhen-finance-1", "mt.aliyuncs.com"),
new TeaPair("cn-shenzhen-inner", "mt.aliyuncs.com"),
new TeaPair("cn-shenzhen-st4-d01", "mt.aliyuncs.com"),
new TeaPair("cn-shenzhen-su18-b01", "mt.aliyuncs.com"),
new TeaPair("cn-wuhan", "mt.aliyuncs.com"),
new TeaPair("cn-yushanfang", "mt.aliyuncs.com"),
new TeaPair("cn-zhangbei-na61-b01", "mt.aliyuncs.com"),
new TeaPair("cn-zhangjiakou", "mt.aliyuncs.com"),
new TeaPair("cn-zhangjiakou-na62-a01", "mt.aliyuncs.com"),
new TeaPair("cn-zhengzhou-nebula-1", "mt.aliyuncs.com"),
new TeaPair("eu-central-1", "mt.aliyuncs.com"),
new TeaPair("eu-west-1", "mt.aliyuncs.com"),
new TeaPair("eu-west-1-oxs", "mt.aliyuncs.com"),
new TeaPair("me-east-1", "mt.aliyuncs.com"),
new TeaPair("rus-west-1-pop", "mt.aliyuncs.com"),
new TeaPair("us-east-1", "mt.aliyuncs.com"),
new TeaPair("us-west-1", "mt.aliyuncs.com")
);
this.checkConfig(config);
this._endpoint = this.getEndpoint("alimt", _regionId, _endpointRule, _network, _suffix, _endpointMap, _endpoint);
}
public String getEndpoint(String productId, String regionId, String endpointRule, String network, String suffix, java.util.Map<String, String> endpointMap, String endpoint) throws Exception {
if (!com.aliyun.teautil.Common.empty(endpoint)) {
return endpoint;
}
if (!com.aliyun.teautil.Common.isUnset(endpointMap) && !com.aliyun.teautil.Common.empty(endpointMap.get(regionId))) {
return endpointMap.get(regionId);
}
return com.aliyun.endpointutil.Client.getEndpointRules(productId, regionId, endpointRule, network, suffix);
}
/**
* @param request MachineTranslateECommerceRequest
* @param runtime runtime options for this request RuntimeOptions
* @return MachineTranslateECommerceResponse
*/
public MachineTranslateECommerceResponse machineTranslateECommerceWithOptions(MachineTranslateECommerceRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.contentFormat)) {
body.put("ContentFormat", request.contentFormat);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceText)) {
body.put("SourceText", request.sourceText);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "MachineTranslateECommerce"),
new TeaPair("version", "2018-08-07"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new MachineTranslateECommerceResponse());
}
/**
* @param request MachineTranslateECommerceRequest
* @return MachineTranslateECommerceResponse
*/
public MachineTranslateECommerceResponse machineTranslateECommerce(MachineTranslateECommerceRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.machineTranslateECommerceWithOptions(request, runtime);
}
/**
* @param request MachineTranslateGeneralRequest
* @param runtime runtime options for this request RuntimeOptions
* @return MachineTranslateGeneralResponse
*/
public MachineTranslateGeneralResponse machineTranslateGeneralWithOptions(MachineTranslateGeneralRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.contentFormat)) {
body.put("ContentFormat", request.contentFormat);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceText)) {
body.put("SourceText", request.sourceText);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "MachineTranslateGeneral"),
new TeaPair("version", "2018-08-07"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new MachineTranslateGeneralResponse());
}
/**
* @param request MachineTranslateGeneralRequest
* @return MachineTranslateGeneralResponse
*/
public MachineTranslateGeneralResponse machineTranslateGeneral(MachineTranslateGeneralRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.machineTranslateGeneralWithOptions(request, runtime);
}
}
|
0
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807/models/MachineTranslateECommerceRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20180807.models;
import com.aliyun.tea.*;
public class MachineTranslateECommerceRequest extends TeaModel {
/**
* <p>This parameter is required.</p>
*/
@NameInMap("ContentFormat")
public String contentFormat;
/**
* <p>This parameter is required.</p>
*/
@NameInMap("SourceLanguage")
public String sourceLanguage;
/**
* <p>This parameter is required.</p>
*/
@NameInMap("SourceText")
public String sourceText;
/**
* <p>This parameter is required.</p>
*/
@NameInMap("TargetLanguage")
public String targetLanguage;
public static MachineTranslateECommerceRequest build(java.util.Map<String, ?> map) throws Exception {
MachineTranslateECommerceRequest self = new MachineTranslateECommerceRequest();
return TeaModel.build(map, self);
}
public MachineTranslateECommerceRequest setContentFormat(String contentFormat) {
this.contentFormat = contentFormat;
return this;
}
public String getContentFormat() {
return this.contentFormat;
}
public MachineTranslateECommerceRequest setSourceLanguage(String sourceLanguage) {
this.sourceLanguage = sourceLanguage;
return this;
}
public String getSourceLanguage() {
return this.sourceLanguage;
}
public MachineTranslateECommerceRequest setSourceText(String sourceText) {
this.sourceText = sourceText;
return this;
}
public String getSourceText() {
return this.sourceText;
}
public MachineTranslateECommerceRequest setTargetLanguage(String targetLanguage) {
this.targetLanguage = targetLanguage;
return this;
}
public String getTargetLanguage() {
return this.targetLanguage;
}
}
|
0
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807/models/MachineTranslateECommerceResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20180807.models;
import com.aliyun.tea.*;
public class MachineTranslateECommerceResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public MachineTranslateECommerceResponseBody body;
public static MachineTranslateECommerceResponse build(java.util.Map<String, ?> map) throws Exception {
MachineTranslateECommerceResponse self = new MachineTranslateECommerceResponse();
return TeaModel.build(map, self);
}
public MachineTranslateECommerceResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public MachineTranslateECommerceResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public MachineTranslateECommerceResponse setBody(MachineTranslateECommerceResponseBody body) {
this.body = body;
return this;
}
public MachineTranslateECommerceResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807/models/MachineTranslateECommerceResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20180807.models;
import com.aliyun.tea.*;
public class MachineTranslateECommerceResponseBody extends TeaModel {
@NameInMap("RequestId")
public String requestId;
@NameInMap("ResultCode")
public MachineTranslateECommerceResponseBodyResultCode resultCode;
@NameInMap("Success")
public Boolean success;
@NameInMap("TranslateText")
public String translateText;
public static MachineTranslateECommerceResponseBody build(java.util.Map<String, ?> map) throws Exception {
MachineTranslateECommerceResponseBody self = new MachineTranslateECommerceResponseBody();
return TeaModel.build(map, self);
}
public MachineTranslateECommerceResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public MachineTranslateECommerceResponseBody setResultCode(MachineTranslateECommerceResponseBodyResultCode resultCode) {
this.resultCode = resultCode;
return this;
}
public MachineTranslateECommerceResponseBodyResultCode getResultCode() {
return this.resultCode;
}
public MachineTranslateECommerceResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
public MachineTranslateECommerceResponseBody setTranslateText(String translateText) {
this.translateText = translateText;
return this;
}
public String getTranslateText() {
return this.translateText;
}
public static class MachineTranslateECommerceResponseBodyResultCode extends TeaModel {
@NameInMap("Code")
public Integer code;
@NameInMap("Message")
public String message;
public static MachineTranslateECommerceResponseBodyResultCode build(java.util.Map<String, ?> map) throws Exception {
MachineTranslateECommerceResponseBodyResultCode self = new MachineTranslateECommerceResponseBodyResultCode();
return TeaModel.build(map, self);
}
public MachineTranslateECommerceResponseBodyResultCode setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public MachineTranslateECommerceResponseBodyResultCode setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
}
}
|
0
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807/models/MachineTranslateGeneralRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20180807.models;
import com.aliyun.tea.*;
public class MachineTranslateGeneralRequest extends TeaModel {
/**
* <p>This parameter is required.</p>
*/
@NameInMap("ContentFormat")
public String contentFormat;
/**
* <p>This parameter is required.</p>
*/
@NameInMap("SourceLanguage")
public String sourceLanguage;
/**
* <p>This parameter is required.</p>
*/
@NameInMap("SourceText")
public String sourceText;
/**
* <p>This parameter is required.</p>
*/
@NameInMap("TargetLanguage")
public String targetLanguage;
public static MachineTranslateGeneralRequest build(java.util.Map<String, ?> map) throws Exception {
MachineTranslateGeneralRequest self = new MachineTranslateGeneralRequest();
return TeaModel.build(map, self);
}
public MachineTranslateGeneralRequest setContentFormat(String contentFormat) {
this.contentFormat = contentFormat;
return this;
}
public String getContentFormat() {
return this.contentFormat;
}
public MachineTranslateGeneralRequest setSourceLanguage(String sourceLanguage) {
this.sourceLanguage = sourceLanguage;
return this;
}
public String getSourceLanguage() {
return this.sourceLanguage;
}
public MachineTranslateGeneralRequest setSourceText(String sourceText) {
this.sourceText = sourceText;
return this;
}
public String getSourceText() {
return this.sourceText;
}
public MachineTranslateGeneralRequest setTargetLanguage(String targetLanguage) {
this.targetLanguage = targetLanguage;
return this;
}
public String getTargetLanguage() {
return this.targetLanguage;
}
}
|
0
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807/models/MachineTranslateGeneralResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20180807.models;
import com.aliyun.tea.*;
public class MachineTranslateGeneralResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public MachineTranslateGeneralResponseBody body;
public static MachineTranslateGeneralResponse build(java.util.Map<String, ?> map) throws Exception {
MachineTranslateGeneralResponse self = new MachineTranslateGeneralResponse();
return TeaModel.build(map, self);
}
public MachineTranslateGeneralResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public MachineTranslateGeneralResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public MachineTranslateGeneralResponse setBody(MachineTranslateGeneralResponseBody body) {
this.body = body;
return this;
}
public MachineTranslateGeneralResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807
|
java-sources/com/aliyun/alimt20180807/1.0.0/com/aliyun/alimt20180807/models/MachineTranslateGeneralResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20180807.models;
import com.aliyun.tea.*;
public class MachineTranslateGeneralResponseBody extends TeaModel {
@NameInMap("RequestId")
public String requestId;
@NameInMap("ResultCode")
public MachineTranslateGeneralResponseBodyResultCode resultCode;
@NameInMap("Success")
public Boolean success;
@NameInMap("TranslateText")
public String translateText;
public static MachineTranslateGeneralResponseBody build(java.util.Map<String, ?> map) throws Exception {
MachineTranslateGeneralResponseBody self = new MachineTranslateGeneralResponseBody();
return TeaModel.build(map, self);
}
public MachineTranslateGeneralResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public MachineTranslateGeneralResponseBody setResultCode(MachineTranslateGeneralResponseBodyResultCode resultCode) {
this.resultCode = resultCode;
return this;
}
public MachineTranslateGeneralResponseBodyResultCode getResultCode() {
return this.resultCode;
}
public MachineTranslateGeneralResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
public MachineTranslateGeneralResponseBody setTranslateText(String translateText) {
this.translateText = translateText;
return this;
}
public String getTranslateText() {
return this.translateText;
}
public static class MachineTranslateGeneralResponseBodyResultCode extends TeaModel {
@NameInMap("Code")
public Integer code;
@NameInMap("Message")
public String message;
public static MachineTranslateGeneralResponseBodyResultCode build(java.util.Map<String, ?> map) throws Exception {
MachineTranslateGeneralResponseBodyResultCode self = new MachineTranslateGeneralResponseBodyResultCode();
return TeaModel.build(map, self);
}
public MachineTranslateGeneralResponseBodyResultCode setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public MachineTranslateGeneralResponseBodyResultCode setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/Client.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012;
import com.aliyun.tea.*;
import com.aliyun.tea.interceptor.InterceptorChain;
import com.aliyun.tea.interceptor.RuntimeOptionsInterceptor;
import com.aliyun.tea.interceptor.RequestInterceptor;
import com.aliyun.tea.interceptor.ResponseInterceptor;
import com.aliyun.alimt20181012.models.*;
public class Client extends com.aliyun.teaopenapi.Client {
private final static InterceptorChain interceptorChain = InterceptorChain.create();
public Client(com.aliyun.teaopenapi.models.Config config) throws Exception {
super(config);
this._signatureAlgorithm = "v2";
this._endpointRule = "regional";
this._endpointMap = TeaConverter.buildMap(
new TeaPair("cn-hangzhou", "mt.cn-hangzhou.aliyuncs.com"),
new TeaPair("ap-northeast-1", "mt.aliyuncs.com"),
new TeaPair("ap-northeast-2-pop", "mt.aliyuncs.com"),
new TeaPair("ap-south-1", "mt.aliyuncs.com"),
new TeaPair("ap-southeast-1", "mt.ap-southeast-1.aliyuncs.com"),
new TeaPair("ap-southeast-2", "mt.aliyuncs.com"),
new TeaPair("ap-southeast-3", "mt.aliyuncs.com"),
new TeaPair("ap-southeast-5", "mt.aliyuncs.com"),
new TeaPair("cn-beijing", "mt.aliyuncs.com"),
new TeaPair("cn-beijing-finance-1", "mt.aliyuncs.com"),
new TeaPair("cn-beijing-finance-pop", "mt.aliyuncs.com"),
new TeaPair("cn-beijing-gov-1", "mt.aliyuncs.com"),
new TeaPair("cn-beijing-nu16-b01", "mt.aliyuncs.com"),
new TeaPair("cn-chengdu", "mt.aliyuncs.com"),
new TeaPair("cn-edge-1", "mt.aliyuncs.com"),
new TeaPair("cn-fujian", "mt.aliyuncs.com"),
new TeaPair("cn-haidian-cm12-c01", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-bj-b01", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-finance", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-internal-prod-1", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-internal-test-1", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-internal-test-2", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-internal-test-3", "mt.aliyuncs.com"),
new TeaPair("cn-hangzhou-test-306", "mt.aliyuncs.com"),
new TeaPair("cn-hongkong", "mt.aliyuncs.com"),
new TeaPair("cn-hongkong-finance-pop", "mt.aliyuncs.com"),
new TeaPair("cn-huhehaote", "mt.aliyuncs.com"),
new TeaPair("cn-north-2-gov-1", "mt.aliyuncs.com"),
new TeaPair("cn-qingdao", "mt.aliyuncs.com"),
new TeaPair("cn-qingdao-nebula", "mt.aliyuncs.com"),
new TeaPair("cn-shanghai", "mt.aliyuncs.com"),
new TeaPair("cn-shanghai-et15-b01", "mt.aliyuncs.com"),
new TeaPair("cn-shanghai-et2-b01", "mt.aliyuncs.com"),
new TeaPair("cn-shanghai-finance-1", "mt.aliyuncs.com"),
new TeaPair("cn-shanghai-inner", "mt.aliyuncs.com"),
new TeaPair("cn-shanghai-internal-test-1", "mt.aliyuncs.com"),
new TeaPair("cn-shenzhen", "mt.aliyuncs.com"),
new TeaPair("cn-shenzhen-finance-1", "mt.aliyuncs.com"),
new TeaPair("cn-shenzhen-inner", "mt.aliyuncs.com"),
new TeaPair("cn-shenzhen-st4-d01", "mt.aliyuncs.com"),
new TeaPair("cn-shenzhen-su18-b01", "mt.aliyuncs.com"),
new TeaPair("cn-wuhan", "mt.aliyuncs.com"),
new TeaPair("cn-yushanfang", "mt.aliyuncs.com"),
new TeaPair("cn-zhangbei-na61-b01", "mt.aliyuncs.com"),
new TeaPair("cn-zhangjiakou", "mt.aliyuncs.com"),
new TeaPair("cn-zhangjiakou-na62-a01", "mt.aliyuncs.com"),
new TeaPair("cn-zhengzhou-nebula-1", "mt.aliyuncs.com"),
new TeaPair("eu-central-1", "mt.aliyuncs.com"),
new TeaPair("eu-west-1", "mt.aliyuncs.com"),
new TeaPair("eu-west-1-oxs", "mt.aliyuncs.com"),
new TeaPair("me-east-1", "mt.aliyuncs.com"),
new TeaPair("rus-west-1-pop", "mt.aliyuncs.com"),
new TeaPair("us-east-1", "mt.aliyuncs.com"),
new TeaPair("us-west-1", "mt.aliyuncs.com")
);
this.checkConfig(config);
this._endpoint = this.getEndpoint("alimt", _regionId, _endpointRule, _network, _suffix, _endpointMap, _endpoint);
}
public java.util.Map<String, ?> _postOSSObject(String bucketName, java.util.Map<String, ?> data) throws Exception {
TeaRequest request_ = new TeaRequest();
java.util.Map<String, Object> form = com.aliyun.teautil.Common.assertAsMap(data);
String boundary = com.aliyun.fileform.Client.getBoundary();
String host = com.aliyun.teautil.Common.assertAsString(form.get("host"));
request_.protocol = "HTTPS";
request_.method = "POST";
request_.pathname = "/";
request_.headers = TeaConverter.buildMap(
new TeaPair("host", host),
new TeaPair("date", com.aliyun.teautil.Common.getDateUTCString()),
new TeaPair("user-agent", com.aliyun.teautil.Common.getUserAgent(""))
);
request_.headers.put("content-type", "multipart/form-data; boundary=" + boundary + "");
request_.body = com.aliyun.fileform.Client.toFileForm(form, boundary);
TeaResponse response_ = Tea.doAction(request_, new java.util.HashMap<String, Object>(), interceptorChain);
java.util.Map<String, Object> respMap = null;
String bodyStr = com.aliyun.teautil.Common.readAsString(response_.body);
if (com.aliyun.teautil.Common.is4xx(response_.statusCode) || com.aliyun.teautil.Common.is5xx(response_.statusCode)) {
respMap = com.aliyun.teaxml.Client.parseXml(bodyStr, null);
java.util.Map<String, Object> err = com.aliyun.teautil.Common.assertAsMap(respMap.get("Error"));
throw new TeaException(TeaConverter.buildMap(
new TeaPair("code", err.get("Code")),
new TeaPair("message", err.get("Message")),
new TeaPair("data", TeaConverter.buildMap(
new TeaPair("httpCode", response_.statusCode),
new TeaPair("requestId", err.get("RequestId")),
new TeaPair("hostId", err.get("HostId"))
))
));
}
respMap = com.aliyun.teaxml.Client.parseXml(bodyStr, null);
return TeaConverter.merge(Object.class,
respMap
);
}
public void addRuntimeOptionsInterceptor(RuntimeOptionsInterceptor interceptor) {
interceptorChain.addRuntimeOptionsInterceptor(interceptor);
}
public void addRequestInterceptor(RequestInterceptor interceptor) {
interceptorChain.addRequestInterceptor(interceptor);
}
public void addResponseInterceptor(ResponseInterceptor interceptor) {
interceptorChain.addResponseInterceptor(interceptor);
}
public String getEndpoint(String productId, String regionId, String endpointRule, String network, String suffix, java.util.Map<String, String> endpointMap, String endpoint) throws Exception {
if (!com.aliyun.teautil.Common.empty(endpoint)) {
return endpoint;
}
if (!com.aliyun.teautil.Common.isUnset(endpointMap) && !com.aliyun.teautil.Common.empty(endpointMap.get(regionId))) {
return endpointMap.get(regionId);
}
return com.aliyun.endpointutil.Client.getEndpointRules(productId, regionId, endpointRule, network, suffix);
}
/**
* <b>summary</b> :
* <p>大文本异步翻译,支持5000-50000字翻译</p>
*
* @param request CreateAsyncTranslateRequest
* @param runtime runtime options for this request RuntimeOptions
* @return CreateAsyncTranslateResponse
*/
public CreateAsyncTranslateResponse createAsyncTranslateWithOptions(CreateAsyncTranslateRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.apiType)) {
body.put("ApiType", request.apiType);
}
if (!com.aliyun.teautil.Common.isUnset(request.formatType)) {
body.put("FormatType", request.formatType);
}
if (!com.aliyun.teautil.Common.isUnset(request.scene)) {
body.put("Scene", request.scene);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceText)) {
body.put("SourceText", request.sourceText);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "CreateAsyncTranslate"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new CreateAsyncTranslateResponse());
}
/**
* <b>summary</b> :
* <p>大文本异步翻译,支持5000-50000字翻译</p>
*
* @param request CreateAsyncTranslateRequest
* @return CreateAsyncTranslateResponse
*/
public CreateAsyncTranslateResponse createAsyncTranslate(CreateAsyncTranslateRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.createAsyncTranslateWithOptions(request, runtime);
}
/**
* @param request CreateDocTranslateTaskRequest
* @param runtime runtime options for this request RuntimeOptions
* @return CreateDocTranslateTaskResponse
*/
public CreateDocTranslateTaskResponse createDocTranslateTaskWithOptions(CreateDocTranslateTaskRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.callbackUrl)) {
body.put("CallbackUrl", request.callbackUrl);
}
if (!com.aliyun.teautil.Common.isUnset(request.clientToken)) {
body.put("ClientToken", request.clientToken);
}
if (!com.aliyun.teautil.Common.isUnset(request.fileUrl)) {
body.put("FileUrl", request.fileUrl);
}
if (!com.aliyun.teautil.Common.isUnset(request.scene)) {
body.put("Scene", request.scene);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "CreateDocTranslateTask"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new CreateDocTranslateTaskResponse());
}
/**
* @param request CreateDocTranslateTaskRequest
* @return CreateDocTranslateTaskResponse
*/
public CreateDocTranslateTaskResponse createDocTranslateTask(CreateDocTranslateTaskRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.createDocTranslateTaskWithOptions(request, runtime);
}
public CreateDocTranslateTaskResponse createDocTranslateTaskAdvance(CreateDocTranslateTaskAdvanceRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
// Step 0: init client
com.aliyun.credentials.models.CredentialModel credentialModel = null;
if (com.aliyun.teautil.Common.isUnset(_credential)) {
throw new TeaException(TeaConverter.buildMap(
new TeaPair("code", "InvalidCredentials"),
new TeaPair("message", "Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.")
));
}
credentialModel = _credential.getCredential();
String accessKeyId = credentialModel.accessKeyId;
String accessKeySecret = credentialModel.accessKeySecret;
String securityToken = credentialModel.securityToken;
String credentialType = credentialModel.type;
String openPlatformEndpoint = _openPlatformEndpoint;
if (com.aliyun.teautil.Common.empty(openPlatformEndpoint)) {
openPlatformEndpoint = "openplatform.aliyuncs.com";
}
if (com.aliyun.teautil.Common.isUnset(credentialType)) {
credentialType = "access_key";
}
com.aliyun.teaopenapi.models.Config authConfig = com.aliyun.teaopenapi.models.Config.build(TeaConverter.buildMap(
new TeaPair("accessKeyId", accessKeyId),
new TeaPair("accessKeySecret", accessKeySecret),
new TeaPair("securityToken", securityToken),
new TeaPair("type", credentialType),
new TeaPair("endpoint", openPlatformEndpoint),
new TeaPair("protocol", _protocol),
new TeaPair("regionId", _regionId)
));
com.aliyun.teaopenapi.Client authClient = new com.aliyun.teaopenapi.Client(authConfig);
java.util.Map<String, String> authRequest = TeaConverter.buildMap(
new TeaPair("Product", "alimt"),
new TeaPair("RegionId", _regionId)
);
com.aliyun.teaopenapi.models.OpenApiRequest authReq = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("query", com.aliyun.openapiutil.Client.query(authRequest))
));
com.aliyun.teaopenapi.models.Params authParams = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "AuthorizeFileUpload"),
new TeaPair("version", "2019-12-19"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "GET"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
java.util.Map<String, Object> authResponse = new java.util.HashMap<>();
com.aliyun.fileform.models.FileField fileObj = new com.aliyun.fileform.models.FileField();
java.util.Map<String, Object> ossHeader = new java.util.HashMap<>();
java.util.Map<String, Object> tmpBody = new java.util.HashMap<>();
Boolean useAccelerate = false;
java.util.Map<String, String> authResponseBody = new java.util.HashMap<>();
CreateDocTranslateTaskRequest createDocTranslateTaskReq = new CreateDocTranslateTaskRequest();
com.aliyun.openapiutil.Client.convert(request, createDocTranslateTaskReq);
if (!com.aliyun.teautil.Common.isUnset(request.fileUrlObject)) {
Object tmpResp0 = authClient.callApi(authParams, authReq, runtime);
authResponse = com.aliyun.teautil.Common.assertAsMap(tmpResp0);
tmpBody = com.aliyun.teautil.Common.assertAsMap(authResponse.get("body"));
useAccelerate = com.aliyun.teautil.Common.assertAsBoolean(tmpBody.get("UseAccelerate"));
authResponseBody = com.aliyun.teautil.Common.stringifyMapValue(tmpBody);
fileObj = com.aliyun.fileform.models.FileField.build(TeaConverter.buildMap(
new TeaPair("filename", authResponseBody.get("ObjectKey")),
new TeaPair("content", request.fileUrlObject),
new TeaPair("contentType", "")
));
ossHeader = TeaConverter.buildMap(
new TeaPair("host", "" + authResponseBody.get("Bucket") + "." + com.aliyun.openapiutil.Client.getEndpoint(authResponseBody.get("Endpoint"), useAccelerate, _endpointType) + ""),
new TeaPair("OSSAccessKeyId", authResponseBody.get("AccessKeyId")),
new TeaPair("policy", authResponseBody.get("EncodedPolicy")),
new TeaPair("Signature", authResponseBody.get("Signature")),
new TeaPair("key", authResponseBody.get("ObjectKey")),
new TeaPair("file", fileObj),
new TeaPair("success_action_status", "201")
);
this._postOSSObject(authResponseBody.get("Bucket"), ossHeader);
createDocTranslateTaskReq.fileUrl = "http://" + authResponseBody.get("Bucket") + "." + authResponseBody.get("Endpoint") + "/" + authResponseBody.get("ObjectKey") + "";
}
CreateDocTranslateTaskResponse createDocTranslateTaskResp = this.createDocTranslateTaskWithOptions(createDocTranslateTaskReq, runtime);
return createDocTranslateTaskResp;
}
/**
* @param request CreateImageTranslateTaskRequest
* @param runtime runtime options for this request RuntimeOptions
* @return CreateImageTranslateTaskResponse
*/
public CreateImageTranslateTaskResponse createImageTranslateTaskWithOptions(CreateImageTranslateTaskRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.clientToken)) {
body.put("ClientToken", request.clientToken);
}
if (!com.aliyun.teautil.Common.isUnset(request.extra)) {
body.put("Extra", request.extra);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.urlList)) {
body.put("UrlList", request.urlList);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "CreateImageTranslateTask"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new CreateImageTranslateTaskResponse());
}
/**
* @param request CreateImageTranslateTaskRequest
* @return CreateImageTranslateTaskResponse
*/
public CreateImageTranslateTaskResponse createImageTranslateTask(CreateImageTranslateTaskRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.createImageTranslateTaskWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>大文本异步翻译,支持5000-50000字翻译</p>
*
* @param request GetAsyncTranslateRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetAsyncTranslateResponse
*/
public GetAsyncTranslateResponse getAsyncTranslateWithOptions(GetAsyncTranslateRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.jobId)) {
body.put("JobId", request.jobId);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetAsyncTranslate"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetAsyncTranslateResponse());
}
/**
* <b>summary</b> :
* <p>大文本异步翻译,支持5000-50000字翻译</p>
*
* @param request GetAsyncTranslateRequest
* @return GetAsyncTranslateResponse
*/
public GetAsyncTranslateResponse getAsyncTranslate(GetAsyncTranslateRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getAsyncTranslateWithOptions(request, runtime);
}
/**
* @param request GetBatchTranslateRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetBatchTranslateResponse
*/
public GetBatchTranslateResponse getBatchTranslateWithOptions(GetBatchTranslateRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.apiType)) {
body.put("ApiType", request.apiType);
}
if (!com.aliyun.teautil.Common.isUnset(request.formatType)) {
body.put("FormatType", request.formatType);
}
if (!com.aliyun.teautil.Common.isUnset(request.scene)) {
body.put("Scene", request.scene);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceText)) {
body.put("SourceText", request.sourceText);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetBatchTranslate"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetBatchTranslateResponse());
}
/**
* @param request GetBatchTranslateRequest
* @return GetBatchTranslateResponse
*/
public GetBatchTranslateResponse getBatchTranslate(GetBatchTranslateRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getBatchTranslateWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>GetBatchTranslateByVPC</p>
*
* @param request GetBatchTranslateByVPCRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetBatchTranslateByVPCResponse
*/
public GetBatchTranslateByVPCResponse getBatchTranslateByVPCWithOptions(GetBatchTranslateByVPCRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.apiType)) {
body.put("ApiType", request.apiType);
}
if (!com.aliyun.teautil.Common.isUnset(request.formatType)) {
body.put("FormatType", request.formatType);
}
if (!com.aliyun.teautil.Common.isUnset(request.scene)) {
body.put("Scene", request.scene);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceText)) {
body.put("SourceText", request.sourceText);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetBatchTranslateByVPC"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetBatchTranslateByVPCResponse());
}
/**
* <b>summary</b> :
* <p>GetBatchTranslateByVPC</p>
*
* @param request GetBatchTranslateByVPCRequest
* @return GetBatchTranslateByVPCResponse
*/
public GetBatchTranslateByVPCResponse getBatchTranslateByVPC(GetBatchTranslateByVPCRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getBatchTranslateByVPCWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>语种识别</p>
*
* @param request GetDetectLanguageRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetDetectLanguageResponse
*/
public GetDetectLanguageResponse getDetectLanguageWithOptions(GetDetectLanguageRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.sourceText)) {
body.put("SourceText", request.sourceText);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetDetectLanguage"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetDetectLanguageResponse());
}
/**
* <b>summary</b> :
* <p>语种识别</p>
*
* @param request GetDetectLanguageRequest
* @return GetDetectLanguageResponse
*/
public GetDetectLanguageResponse getDetectLanguage(GetDetectLanguageRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getDetectLanguageWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>语种识别</p>
*
* @param request GetDetectLanguageVpcRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetDetectLanguageVpcResponse
*/
public GetDetectLanguageVpcResponse getDetectLanguageVpcWithOptions(GetDetectLanguageVpcRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.sourceText)) {
body.put("SourceText", request.sourceText);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetDetectLanguageVpc"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetDetectLanguageVpcResponse());
}
/**
* <b>summary</b> :
* <p>语种识别</p>
*
* @param request GetDetectLanguageVpcRequest
* @return GetDetectLanguageVpcResponse
*/
public GetDetectLanguageVpcResponse getDetectLanguageVpc(GetDetectLanguageVpcRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getDetectLanguageVpcWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>获取文档翻译任务</p>
*
* @param request GetDocTranslateTaskRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetDocTranslateTaskResponse
*/
public GetDocTranslateTaskResponse getDocTranslateTaskWithOptions(GetDocTranslateTaskRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, String> query = com.aliyun.openapiutil.Client.query(com.aliyun.teautil.Common.toMap(request));
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetDocTranslateTask"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "GET"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetDocTranslateTaskResponse());
}
/**
* <b>summary</b> :
* <p>获取文档翻译任务</p>
*
* @param request GetDocTranslateTaskRequest
* @return GetDocTranslateTaskResponse
*/
public GetDocTranslateTaskResponse getDocTranslateTask(GetDocTranslateTaskRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getDocTranslateTaskWithOptions(request, runtime);
}
/**
* @param request GetImageDiagnoseRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetImageDiagnoseResponse
*/
public GetImageDiagnoseResponse getImageDiagnoseWithOptions(GetImageDiagnoseRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.extra)) {
body.put("Extra", request.extra);
}
if (!com.aliyun.teautil.Common.isUnset(request.url)) {
body.put("Url", request.url);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetImageDiagnose"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetImageDiagnoseResponse());
}
/**
* @param request GetImageDiagnoseRequest
* @return GetImageDiagnoseResponse
*/
public GetImageDiagnoseResponse getImageDiagnose(GetImageDiagnoseRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getImageDiagnoseWithOptions(request, runtime);
}
/**
* @param request GetImageTranslateRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetImageTranslateResponse
*/
public GetImageTranslateResponse getImageTranslateWithOptions(GetImageTranslateRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.extra)) {
body.put("Extra", request.extra);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.url)) {
body.put("Url", request.url);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetImageTranslate"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetImageTranslateResponse());
}
/**
* @param request GetImageTranslateRequest
* @return GetImageTranslateResponse
*/
public GetImageTranslateResponse getImageTranslate(GetImageTranslateRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getImageTranslateWithOptions(request, runtime);
}
/**
* @param request GetImageTranslateTaskRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetImageTranslateTaskResponse
*/
public GetImageTranslateTaskResponse getImageTranslateTaskWithOptions(GetImageTranslateTaskRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.taskId)) {
body.put("TaskId", request.taskId);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetImageTranslateTask"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetImageTranslateTaskResponse());
}
/**
* @param request GetImageTranslateTaskRequest
* @return GetImageTranslateTaskResponse
*/
public GetImageTranslateTaskResponse getImageTranslateTask(GetImageTranslateTaskRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getImageTranslateTaskWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>GetTitleDiagnose</p>
*
* @param request GetTitleDiagnoseRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetTitleDiagnoseResponse
*/
public GetTitleDiagnoseResponse getTitleDiagnoseWithOptions(GetTitleDiagnoseRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.categoryId)) {
body.put("CategoryId", request.categoryId);
}
if (!com.aliyun.teautil.Common.isUnset(request.extra)) {
body.put("Extra", request.extra);
}
if (!com.aliyun.teautil.Common.isUnset(request.language)) {
body.put("Language", request.language);
}
if (!com.aliyun.teautil.Common.isUnset(request.platform)) {
body.put("Platform", request.platform);
}
if (!com.aliyun.teautil.Common.isUnset(request.title)) {
body.put("Title", request.title);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetTitleDiagnose"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetTitleDiagnoseResponse());
}
/**
* <b>summary</b> :
* <p>GetTitleDiagnose</p>
*
* @param request GetTitleDiagnoseRequest
* @return GetTitleDiagnoseResponse
*/
public GetTitleDiagnoseResponse getTitleDiagnose(GetTitleDiagnoseRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getTitleDiagnoseWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>GetTitleGenerate</p>
*
* @param request GetTitleGenerateRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetTitleGenerateResponse
*/
public GetTitleGenerateResponse getTitleGenerateWithOptions(GetTitleGenerateRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.attributes)) {
body.put("Attributes", request.attributes);
}
if (!com.aliyun.teautil.Common.isUnset(request.categoryId)) {
body.put("CategoryId", request.categoryId);
}
if (!com.aliyun.teautil.Common.isUnset(request.extra)) {
body.put("Extra", request.extra);
}
if (!com.aliyun.teautil.Common.isUnset(request.hotWords)) {
body.put("HotWords", request.hotWords);
}
if (!com.aliyun.teautil.Common.isUnset(request.language)) {
body.put("Language", request.language);
}
if (!com.aliyun.teautil.Common.isUnset(request.platform)) {
body.put("Platform", request.platform);
}
if (!com.aliyun.teautil.Common.isUnset(request.title)) {
body.put("Title", request.title);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetTitleGenerate"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetTitleGenerateResponse());
}
/**
* <b>summary</b> :
* <p>GetTitleGenerate</p>
*
* @param request GetTitleGenerateRequest
* @return GetTitleGenerateResponse
*/
public GetTitleGenerateResponse getTitleGenerate(GetTitleGenerateRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getTitleGenerateWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>GetTitleIntelligence</p>
*
* @param request GetTitleIntelligenceRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetTitleIntelligenceResponse
*/
public GetTitleIntelligenceResponse getTitleIntelligenceWithOptions(GetTitleIntelligenceRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.catLevelThreeId)) {
body.put("CatLevelThreeId", request.catLevelThreeId);
}
if (!com.aliyun.teautil.Common.isUnset(request.catLevelTwoId)) {
body.put("CatLevelTwoId", request.catLevelTwoId);
}
if (!com.aliyun.teautil.Common.isUnset(request.extra)) {
body.put("Extra", request.extra);
}
if (!com.aliyun.teautil.Common.isUnset(request.keywords)) {
body.put("Keywords", request.keywords);
}
if (!com.aliyun.teautil.Common.isUnset(request.platform)) {
body.put("Platform", request.platform);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetTitleIntelligence"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetTitleIntelligenceResponse());
}
/**
* <b>summary</b> :
* <p>GetTitleIntelligence</p>
*
* @param request GetTitleIntelligenceRequest
* @return GetTitleIntelligenceResponse
*/
public GetTitleIntelligenceResponse getTitleIntelligence(GetTitleIntelligenceRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getTitleIntelligenceWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>获取图片批量翻译结果</p>
*
* @param request GetTranslateImageBatchResultRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetTranslateImageBatchResultResponse
*/
public GetTranslateImageBatchResultResponse getTranslateImageBatchResultWithOptions(GetTranslateImageBatchResultRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.taskId)) {
body.put("TaskId", request.taskId);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetTranslateImageBatchResult"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetTranslateImageBatchResultResponse());
}
/**
* <b>summary</b> :
* <p>获取图片批量翻译结果</p>
*
* @param request GetTranslateImageBatchResultRequest
* @return GetTranslateImageBatchResultResponse
*/
public GetTranslateImageBatchResultResponse getTranslateImageBatchResult(GetTranslateImageBatchResultRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getTranslateImageBatchResultWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>GetTranslateReport</p>
*
* @param request GetTranslateReportRequest
* @param runtime runtime options for this request RuntimeOptions
* @return GetTranslateReportResponse
*/
public GetTranslateReportResponse getTranslateReportWithOptions(GetTranslateReportRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.apiName)) {
query.put("ApiName", request.apiName);
}
if (!com.aliyun.teautil.Common.isUnset(request.beginTime)) {
query.put("BeginTime", request.beginTime);
}
if (!com.aliyun.teautil.Common.isUnset(request.endTime)) {
query.put("EndTime", request.endTime);
}
if (!com.aliyun.teautil.Common.isUnset(request.group)) {
query.put("Group", request.group);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "GetTranslateReport"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new GetTranslateReportResponse());
}
/**
* <b>summary</b> :
* <p>GetTranslateReport</p>
*
* @param request GetTranslateReportRequest
* @return GetTranslateReportResponse
*/
public GetTranslateReportResponse getTranslateReport(GetTranslateReportRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.getTranslateReportWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>开通服务</p>
*
* @param request OpenAlimtServiceRequest
* @param runtime runtime options for this request RuntimeOptions
* @return OpenAlimtServiceResponse
*/
public OpenAlimtServiceResponse openAlimtServiceWithOptions(OpenAlimtServiceRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.ownerId)) {
query.put("OwnerId", request.ownerId);
}
if (!com.aliyun.teautil.Common.isUnset(request.type)) {
query.put("Type", request.type);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "OpenAlimtService"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new OpenAlimtServiceResponse());
}
/**
* <b>summary</b> :
* <p>开通服务</p>
*
* @param request OpenAlimtServiceRequest
* @return OpenAlimtServiceResponse
*/
public OpenAlimtServiceResponse openAlimtService(OpenAlimtServiceRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.openAlimtServiceWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>专业文本翻译</p>
*
* @param request TranslateRequest
* @param runtime runtime options for this request RuntimeOptions
* @return TranslateResponse
*/
public TranslateResponse translateWithOptions(TranslateRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.context)) {
query.put("Context", request.context);
}
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.formatType)) {
body.put("FormatType", request.formatType);
}
if (!com.aliyun.teautil.Common.isUnset(request.scene)) {
body.put("Scene", request.scene);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceText)) {
body.put("SourceText", request.sourceText);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "Translate"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new TranslateResponse());
}
/**
* <b>summary</b> :
* <p>专业文本翻译</p>
*
* @param request TranslateRequest
* @return TranslateResponse
*/
public TranslateResponse translate(TranslateRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.translateWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>TranslateCertificate</p>
*
* @param request TranslateCertificateRequest
* @param runtime runtime options for this request RuntimeOptions
* @return TranslateCertificateResponse
*/
public TranslateCertificateResponse translateCertificateWithOptions(TranslateCertificateRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.certificateType)) {
body.put("CertificateType", request.certificateType);
}
if (!com.aliyun.teautil.Common.isUnset(request.imageUrl)) {
body.put("ImageUrl", request.imageUrl);
}
if (!com.aliyun.teautil.Common.isUnset(request.resultType)) {
body.put("ResultType", request.resultType);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "TranslateCertificate"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new TranslateCertificateResponse());
}
/**
* <b>summary</b> :
* <p>TranslateCertificate</p>
*
* @param request TranslateCertificateRequest
* @return TranslateCertificateResponse
*/
public TranslateCertificateResponse translateCertificate(TranslateCertificateRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.translateCertificateWithOptions(request, runtime);
}
public TranslateCertificateResponse translateCertificateAdvance(TranslateCertificateAdvanceRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
// Step 0: init client
com.aliyun.credentials.models.CredentialModel credentialModel = null;
if (com.aliyun.teautil.Common.isUnset(_credential)) {
throw new TeaException(TeaConverter.buildMap(
new TeaPair("code", "InvalidCredentials"),
new TeaPair("message", "Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.")
));
}
credentialModel = _credential.getCredential();
String accessKeyId = credentialModel.accessKeyId;
String accessKeySecret = credentialModel.accessKeySecret;
String securityToken = credentialModel.securityToken;
String credentialType = credentialModel.type;
String openPlatformEndpoint = _openPlatformEndpoint;
if (com.aliyun.teautil.Common.empty(openPlatformEndpoint)) {
openPlatformEndpoint = "openplatform.aliyuncs.com";
}
if (com.aliyun.teautil.Common.isUnset(credentialType)) {
credentialType = "access_key";
}
com.aliyun.teaopenapi.models.Config authConfig = com.aliyun.teaopenapi.models.Config.build(TeaConverter.buildMap(
new TeaPair("accessKeyId", accessKeyId),
new TeaPair("accessKeySecret", accessKeySecret),
new TeaPair("securityToken", securityToken),
new TeaPair("type", credentialType),
new TeaPair("endpoint", openPlatformEndpoint),
new TeaPair("protocol", _protocol),
new TeaPair("regionId", _regionId)
));
com.aliyun.teaopenapi.Client authClient = new com.aliyun.teaopenapi.Client(authConfig);
java.util.Map<String, String> authRequest = TeaConverter.buildMap(
new TeaPair("Product", "alimt"),
new TeaPair("RegionId", _regionId)
);
com.aliyun.teaopenapi.models.OpenApiRequest authReq = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("query", com.aliyun.openapiutil.Client.query(authRequest))
));
com.aliyun.teaopenapi.models.Params authParams = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "AuthorizeFileUpload"),
new TeaPair("version", "2019-12-19"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "GET"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
java.util.Map<String, Object> authResponse = new java.util.HashMap<>();
com.aliyun.fileform.models.FileField fileObj = new com.aliyun.fileform.models.FileField();
java.util.Map<String, Object> ossHeader = new java.util.HashMap<>();
java.util.Map<String, Object> tmpBody = new java.util.HashMap<>();
Boolean useAccelerate = false;
java.util.Map<String, String> authResponseBody = new java.util.HashMap<>();
TranslateCertificateRequest translateCertificateReq = new TranslateCertificateRequest();
com.aliyun.openapiutil.Client.convert(request, translateCertificateReq);
if (!com.aliyun.teautil.Common.isUnset(request.imageUrlObject)) {
Object tmpResp0 = authClient.callApi(authParams, authReq, runtime);
authResponse = com.aliyun.teautil.Common.assertAsMap(tmpResp0);
tmpBody = com.aliyun.teautil.Common.assertAsMap(authResponse.get("body"));
useAccelerate = com.aliyun.teautil.Common.assertAsBoolean(tmpBody.get("UseAccelerate"));
authResponseBody = com.aliyun.teautil.Common.stringifyMapValue(tmpBody);
fileObj = com.aliyun.fileform.models.FileField.build(TeaConverter.buildMap(
new TeaPair("filename", authResponseBody.get("ObjectKey")),
new TeaPair("content", request.imageUrlObject),
new TeaPair("contentType", "")
));
ossHeader = TeaConverter.buildMap(
new TeaPair("host", "" + authResponseBody.get("Bucket") + "." + com.aliyun.openapiutil.Client.getEndpoint(authResponseBody.get("Endpoint"), useAccelerate, _endpointType) + ""),
new TeaPair("OSSAccessKeyId", authResponseBody.get("AccessKeyId")),
new TeaPair("policy", authResponseBody.get("EncodedPolicy")),
new TeaPair("Signature", authResponseBody.get("Signature")),
new TeaPair("key", authResponseBody.get("ObjectKey")),
new TeaPair("file", fileObj),
new TeaPair("success_action_status", "201")
);
this._postOSSObject(authResponseBody.get("Bucket"), ossHeader);
translateCertificateReq.imageUrl = "http://" + authResponseBody.get("Bucket") + "." + authResponseBody.get("Endpoint") + "/" + authResponseBody.get("ObjectKey") + "";
}
TranslateCertificateResponse translateCertificateResp = this.translateCertificateWithOptions(translateCertificateReq, runtime);
return translateCertificateResp;
}
/**
* <b>summary</b> :
* <p>TranslateECommerce</p>
*
* @deprecated OpenAPI TranslateECommerce is deprecated, please use alimt::2018-10-12::Translate instead.
*
* @param request TranslateECommerceRequest
* @param runtime runtime options for this request RuntimeOptions
* @return TranslateECommerceResponse
*/
@Deprecated
// Deprecated
public TranslateECommerceResponse translateECommerceWithOptions(TranslateECommerceRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.context)) {
query.put("Context", request.context);
}
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.formatType)) {
body.put("FormatType", request.formatType);
}
if (!com.aliyun.teautil.Common.isUnset(request.scene)) {
body.put("Scene", request.scene);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceText)) {
body.put("SourceText", request.sourceText);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "TranslateECommerce"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new TranslateECommerceResponse());
}
/**
* <b>summary</b> :
* <p>TranslateECommerce</p>
*
* @deprecated OpenAPI TranslateECommerce is deprecated, please use alimt::2018-10-12::Translate instead.
*
* @param request TranslateECommerceRequest
* @return TranslateECommerceResponse
*/
@Deprecated
// Deprecated
public TranslateECommerceResponse translateECommerce(TranslateECommerceRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.translateECommerceWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>文本通用翻译</p>
*
* @param request TranslateGeneralRequest
* @param runtime runtime options for this request RuntimeOptions
* @return TranslateGeneralResponse
*/
public TranslateGeneralResponse translateGeneralWithOptions(TranslateGeneralRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.context)) {
query.put("Context", request.context);
}
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.formatType)) {
body.put("FormatType", request.formatType);
}
if (!com.aliyun.teautil.Common.isUnset(request.scene)) {
body.put("Scene", request.scene);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceText)) {
body.put("SourceText", request.sourceText);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "TranslateGeneral"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new TranslateGeneralResponse());
}
/**
* <b>summary</b> :
* <p>文本通用翻译</p>
*
* @param request TranslateGeneralRequest
* @return TranslateGeneralResponse
*/
public TranslateGeneralResponse translateGeneral(TranslateGeneralRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.translateGeneralWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>TranslateGeneralVpc</p>
*
* @param request TranslateGeneralVpcRequest
* @param runtime runtime options for this request RuntimeOptions
* @return TranslateGeneralVpcResponse
*/
public TranslateGeneralVpcResponse translateGeneralVpcWithOptions(TranslateGeneralVpcRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.context)) {
query.put("Context", request.context);
}
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.formatType)) {
body.put("FormatType", request.formatType);
}
if (!com.aliyun.teautil.Common.isUnset(request.scene)) {
body.put("Scene", request.scene);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceText)) {
body.put("SourceText", request.sourceText);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "TranslateGeneralVpc"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new TranslateGeneralVpcResponse());
}
/**
* <b>summary</b> :
* <p>TranslateGeneralVpc</p>
*
* @param request TranslateGeneralVpcRequest
* @return TranslateGeneralVpcResponse
*/
public TranslateGeneralVpcResponse translateGeneralVpc(TranslateGeneralVpcRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.translateGeneralVpcWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>公有云图片翻译产品API</p>
*
* @param request TranslateImageRequest
* @param runtime runtime options for this request RuntimeOptions
* @return TranslateImageResponse
*/
public TranslateImageResponse translateImageWithOptions(TranslateImageRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.ext)) {
body.put("Ext", request.ext);
}
if (!com.aliyun.teautil.Common.isUnset(request.field)) {
body.put("Field", request.field);
}
if (!com.aliyun.teautil.Common.isUnset(request.imageBase64)) {
body.put("ImageBase64", request.imageBase64);
}
if (!com.aliyun.teautil.Common.isUnset(request.imageUrl)) {
body.put("ImageUrl", request.imageUrl);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "TranslateImage"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new TranslateImageResponse());
}
/**
* <b>summary</b> :
* <p>公有云图片翻译产品API</p>
*
* @param request TranslateImageRequest
* @return TranslateImageResponse
*/
public TranslateImageResponse translateImage(TranslateImageRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.translateImageWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>批量图片翻译接口</p>
*
* @param request TranslateImageBatchRequest
* @param runtime runtime options for this request RuntimeOptions
* @return TranslateImageBatchResponse
*/
public TranslateImageBatchResponse translateImageBatchWithOptions(TranslateImageBatchRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.customTaskId)) {
body.put("CustomTaskId", request.customTaskId);
}
if (!com.aliyun.teautil.Common.isUnset(request.ext)) {
body.put("Ext", request.ext);
}
if (!com.aliyun.teautil.Common.isUnset(request.field)) {
body.put("Field", request.field);
}
if (!com.aliyun.teautil.Common.isUnset(request.imageUrls)) {
body.put("ImageUrls", request.imageUrls);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "TranslateImageBatch"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new TranslateImageBatchResponse());
}
/**
* <b>summary</b> :
* <p>批量图片翻译接口</p>
*
* @param request TranslateImageBatchRequest
* @return TranslateImageBatchResponse
*/
public TranslateImageBatchResponse translateImageBatch(TranslateImageBatchRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.translateImageBatchWithOptions(request, runtime);
}
/**
* <b>summary</b> :
* <p>搜索翻译</p>
*
* @param request TranslateSearchRequest
* @param runtime runtime options for this request RuntimeOptions
* @return TranslateSearchResponse
*/
public TranslateSearchResponse translateSearchWithOptions(TranslateSearchRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.formatType)) {
body.put("FormatType", request.formatType);
}
if (!com.aliyun.teautil.Common.isUnset(request.scene)) {
body.put("Scene", request.scene);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceLanguage)) {
body.put("SourceLanguage", request.sourceLanguage);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceText)) {
body.put("SourceText", request.sourceText);
}
if (!com.aliyun.teautil.Common.isUnset(request.targetLanguage)) {
body.put("TargetLanguage", request.targetLanguage);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "TranslateSearch"),
new TeaPair("version", "2018-10-12"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new TranslateSearchResponse());
}
/**
* <b>summary</b> :
* <p>搜索翻译</p>
*
* @param request TranslateSearchRequest
* @return TranslateSearchResponse
*/
public TranslateSearchResponse translateSearch(TranslateSearchRequest request) throws Exception {
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
return this.translateSearchWithOptions(request, runtime);
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/CreateAsyncTranslateRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class CreateAsyncTranslateRequest extends TeaModel {
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>translate_standard</p>
*/
@NameInMap("ApiType")
public String apiType;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>text</p>
*/
@NameInMap("FormatType")
public String formatType;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>general</p>
*/
@NameInMap("Scene")
public String scene;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>en</p>
*/
@NameInMap("SourceLanguage")
public String sourceLanguage;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>Opinion: We have finally gotten some relief at the pump. But it may not last long</p>
*/
@NameInMap("SourceText")
public String sourceText;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>zh</p>
*/
@NameInMap("TargetLanguage")
public String targetLanguage;
public static CreateAsyncTranslateRequest build(java.util.Map<String, ?> map) throws Exception {
CreateAsyncTranslateRequest self = new CreateAsyncTranslateRequest();
return TeaModel.build(map, self);
}
public CreateAsyncTranslateRequest setApiType(String apiType) {
this.apiType = apiType;
return this;
}
public String getApiType() {
return this.apiType;
}
public CreateAsyncTranslateRequest setFormatType(String formatType) {
this.formatType = formatType;
return this;
}
public String getFormatType() {
return this.formatType;
}
public CreateAsyncTranslateRequest setScene(String scene) {
this.scene = scene;
return this;
}
public String getScene() {
return this.scene;
}
public CreateAsyncTranslateRequest setSourceLanguage(String sourceLanguage) {
this.sourceLanguage = sourceLanguage;
return this;
}
public String getSourceLanguage() {
return this.sourceLanguage;
}
public CreateAsyncTranslateRequest setSourceText(String sourceText) {
this.sourceText = sourceText;
return this;
}
public String getSourceText() {
return this.sourceText;
}
public CreateAsyncTranslateRequest setTargetLanguage(String targetLanguage) {
this.targetLanguage = targetLanguage;
return this;
}
public String getTargetLanguage() {
return this.targetLanguage;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/CreateAsyncTranslateResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class CreateAsyncTranslateResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public CreateAsyncTranslateResponseBody body;
public static CreateAsyncTranslateResponse build(java.util.Map<String, ?> map) throws Exception {
CreateAsyncTranslateResponse self = new CreateAsyncTranslateResponse();
return TeaModel.build(map, self);
}
public CreateAsyncTranslateResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public CreateAsyncTranslateResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public CreateAsyncTranslateResponse setBody(CreateAsyncTranslateResponseBody body) {
this.body = body;
return this;
}
public CreateAsyncTranslateResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/CreateAsyncTranslateResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class CreateAsyncTranslateResponseBody extends TeaModel {
/**
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
@NameInMap("Data")
public CreateAsyncTranslateResponseBodyData data;
/**
* <strong>example:</strong>
* <p>success</p>
*/
@NameInMap("Message")
public String message;
/**
* <strong>example:</strong>
* <p>DC2DCCC9-C3DF-4F59-8D8E-78185729F16D</p>
*/
@NameInMap("RequestId")
public String requestId;
public static CreateAsyncTranslateResponseBody build(java.util.Map<String, ?> map) throws Exception {
CreateAsyncTranslateResponseBody self = new CreateAsyncTranslateResponseBody();
return TeaModel.build(map, self);
}
public CreateAsyncTranslateResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public CreateAsyncTranslateResponseBody setData(CreateAsyncTranslateResponseBodyData data) {
this.data = data;
return this;
}
public CreateAsyncTranslateResponseBodyData getData() {
return this.data;
}
public CreateAsyncTranslateResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public CreateAsyncTranslateResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public static class CreateAsyncTranslateResponseBodyData extends TeaModel {
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>98bbb007-71bb-448b-bab0-2695ce8f8599</p>
*/
@NameInMap("JobId")
public String jobId;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>ready</p>
*/
@NameInMap("Status")
public String status;
public static CreateAsyncTranslateResponseBodyData build(java.util.Map<String, ?> map) throws Exception {
CreateAsyncTranslateResponseBodyData self = new CreateAsyncTranslateResponseBodyData();
return TeaModel.build(map, self);
}
public CreateAsyncTranslateResponseBodyData setJobId(String jobId) {
this.jobId = jobId;
return this;
}
public String getJobId() {
return this.jobId;
}
public CreateAsyncTranslateResponseBodyData setStatus(String status) {
this.status = status;
return this;
}
public String getStatus() {
return this.status;
}
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/CreateDocTranslateTaskAdvanceRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class CreateDocTranslateTaskAdvanceRequest extends TeaModel {
/**
* <strong>example:</strong>
* <p><a href="http://callbackUrl">http://callbackUrl</a></p>
*/
@NameInMap("CallbackUrl")
public String callbackUrl;
/**
* <strong>example:</strong>
* <p>token</p>
*/
@NameInMap("ClientToken")
public String clientToken;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p><a href="http://fileUrl">http://fileUrl</a></p>
*/
@NameInMap("FileUrl")
public java.io.InputStream fileUrlObject;
/**
* <strong>example:</strong>
* <p>general</p>
*/
@NameInMap("Scene")
public String scene;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>en</p>
*/
@NameInMap("SourceLanguage")
public String sourceLanguage;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>zh</p>
*/
@NameInMap("TargetLanguage")
public String targetLanguage;
public static CreateDocTranslateTaskAdvanceRequest build(java.util.Map<String, ?> map) throws Exception {
CreateDocTranslateTaskAdvanceRequest self = new CreateDocTranslateTaskAdvanceRequest();
return TeaModel.build(map, self);
}
public CreateDocTranslateTaskAdvanceRequest setCallbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
return this;
}
public String getCallbackUrl() {
return this.callbackUrl;
}
public CreateDocTranslateTaskAdvanceRequest setClientToken(String clientToken) {
this.clientToken = clientToken;
return this;
}
public String getClientToken() {
return this.clientToken;
}
public CreateDocTranslateTaskAdvanceRequest setFileUrlObject(java.io.InputStream fileUrlObject) {
this.fileUrlObject = fileUrlObject;
return this;
}
public java.io.InputStream getFileUrlObject() {
return this.fileUrlObject;
}
public CreateDocTranslateTaskAdvanceRequest setScene(String scene) {
this.scene = scene;
return this;
}
public String getScene() {
return this.scene;
}
public CreateDocTranslateTaskAdvanceRequest setSourceLanguage(String sourceLanguage) {
this.sourceLanguage = sourceLanguage;
return this;
}
public String getSourceLanguage() {
return this.sourceLanguage;
}
public CreateDocTranslateTaskAdvanceRequest setTargetLanguage(String targetLanguage) {
this.targetLanguage = targetLanguage;
return this;
}
public String getTargetLanguage() {
return this.targetLanguage;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/CreateDocTranslateTaskRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class CreateDocTranslateTaskRequest extends TeaModel {
/**
* <strong>example:</strong>
* <p><a href="http://callbackUrl">http://callbackUrl</a></p>
*/
@NameInMap("CallbackUrl")
public String callbackUrl;
/**
* <strong>example:</strong>
* <p>token</p>
*/
@NameInMap("ClientToken")
public String clientToken;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p><a href="http://fileUrl">http://fileUrl</a></p>
*/
@NameInMap("FileUrl")
public String fileUrl;
/**
* <strong>example:</strong>
* <p>general</p>
*/
@NameInMap("Scene")
public String scene;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>en</p>
*/
@NameInMap("SourceLanguage")
public String sourceLanguage;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>zh</p>
*/
@NameInMap("TargetLanguage")
public String targetLanguage;
public static CreateDocTranslateTaskRequest build(java.util.Map<String, ?> map) throws Exception {
CreateDocTranslateTaskRequest self = new CreateDocTranslateTaskRequest();
return TeaModel.build(map, self);
}
public CreateDocTranslateTaskRequest setCallbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
return this;
}
public String getCallbackUrl() {
return this.callbackUrl;
}
public CreateDocTranslateTaskRequest setClientToken(String clientToken) {
this.clientToken = clientToken;
return this;
}
public String getClientToken() {
return this.clientToken;
}
public CreateDocTranslateTaskRequest setFileUrl(String fileUrl) {
this.fileUrl = fileUrl;
return this;
}
public String getFileUrl() {
return this.fileUrl;
}
public CreateDocTranslateTaskRequest setScene(String scene) {
this.scene = scene;
return this;
}
public String getScene() {
return this.scene;
}
public CreateDocTranslateTaskRequest setSourceLanguage(String sourceLanguage) {
this.sourceLanguage = sourceLanguage;
return this;
}
public String getSourceLanguage() {
return this.sourceLanguage;
}
public CreateDocTranslateTaskRequest setTargetLanguage(String targetLanguage) {
this.targetLanguage = targetLanguage;
return this;
}
public String getTargetLanguage() {
return this.targetLanguage;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/CreateDocTranslateTaskResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class CreateDocTranslateTaskResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public CreateDocTranslateTaskResponseBody body;
public static CreateDocTranslateTaskResponse build(java.util.Map<String, ?> map) throws Exception {
CreateDocTranslateTaskResponse self = new CreateDocTranslateTaskResponse();
return TeaModel.build(map, self);
}
public CreateDocTranslateTaskResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public CreateDocTranslateTaskResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public CreateDocTranslateTaskResponse setBody(CreateDocTranslateTaskResponseBody body) {
this.body = body;
return this;
}
public CreateDocTranslateTaskResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/CreateDocTranslateTaskResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class CreateDocTranslateTaskResponseBody extends TeaModel {
/**
* <strong>example:</strong>
* <p>D3920BC3-A395-4CAD-9E84-7C39EB07507B</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <strong>example:</strong>
* <p>ready</p>
*/
@NameInMap("Status")
public String status;
/**
* <strong>example:</strong>
* <p>0586df512c8b4bb382d7d9a6a01b5854</p>
*/
@NameInMap("TaskId")
public String taskId;
public static CreateDocTranslateTaskResponseBody build(java.util.Map<String, ?> map) throws Exception {
CreateDocTranslateTaskResponseBody self = new CreateDocTranslateTaskResponseBody();
return TeaModel.build(map, self);
}
public CreateDocTranslateTaskResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public CreateDocTranslateTaskResponseBody setStatus(String status) {
this.status = status;
return this;
}
public String getStatus() {
return this.status;
}
public CreateDocTranslateTaskResponseBody setTaskId(String taskId) {
this.taskId = taskId;
return this;
}
public String getTaskId() {
return this.taskId;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/CreateImageTranslateTaskRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class CreateImageTranslateTaskRequest extends TeaModel {
/**
* <strong>example:</strong>
* <p>1</p>
*/
@NameInMap("ClientToken")
public String clientToken;
/**
* <strong>example:</strong>
* <p>{"have_ocr":"false","without_text":"false","have_psd":"true","ignore_entity":"false"}</p>
*/
@NameInMap("Extra")
public String extra;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>zh</p>
*/
@NameInMap("SourceLanguage")
public String sourceLanguage;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>en</p>
*/
@NameInMap("TargetLanguage")
public String targetLanguage;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p><a href="http://xxx,http://yyy">http://xxx,http://yyy</a></p>
*/
@NameInMap("UrlList")
public String urlList;
public static CreateImageTranslateTaskRequest build(java.util.Map<String, ?> map) throws Exception {
CreateImageTranslateTaskRequest self = new CreateImageTranslateTaskRequest();
return TeaModel.build(map, self);
}
public CreateImageTranslateTaskRequest setClientToken(String clientToken) {
this.clientToken = clientToken;
return this;
}
public String getClientToken() {
return this.clientToken;
}
public CreateImageTranslateTaskRequest setExtra(String extra) {
this.extra = extra;
return this;
}
public String getExtra() {
return this.extra;
}
public CreateImageTranslateTaskRequest setSourceLanguage(String sourceLanguage) {
this.sourceLanguage = sourceLanguage;
return this;
}
public String getSourceLanguage() {
return this.sourceLanguage;
}
public CreateImageTranslateTaskRequest setTargetLanguage(String targetLanguage) {
this.targetLanguage = targetLanguage;
return this;
}
public String getTargetLanguage() {
return this.targetLanguage;
}
public CreateImageTranslateTaskRequest setUrlList(String urlList) {
this.urlList = urlList;
return this;
}
public String getUrlList() {
return this.urlList;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/CreateImageTranslateTaskResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class CreateImageTranslateTaskResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public CreateImageTranslateTaskResponseBody body;
public static CreateImageTranslateTaskResponse build(java.util.Map<String, ?> map) throws Exception {
CreateImageTranslateTaskResponse self = new CreateImageTranslateTaskResponse();
return TeaModel.build(map, self);
}
public CreateImageTranslateTaskResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public CreateImageTranslateTaskResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public CreateImageTranslateTaskResponse setBody(CreateImageTranslateTaskResponseBody body) {
this.body = body;
return this;
}
public CreateImageTranslateTaskResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/CreateImageTranslateTaskResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class CreateImageTranslateTaskResponseBody extends TeaModel {
/**
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
@NameInMap("Data")
public CreateImageTranslateTaskResponseBodyData data;
/**
* <strong>example:</strong>
* <p>ok</p>
*/
@NameInMap("Message")
public String message;
/**
* <strong>example:</strong>
* <p>A41F6E25-8520-4AF0-90EF-AF7E32840108</p>
*/
@NameInMap("RequestId")
public String requestId;
public static CreateImageTranslateTaskResponseBody build(java.util.Map<String, ?> map) throws Exception {
CreateImageTranslateTaskResponseBody self = new CreateImageTranslateTaskResponseBody();
return TeaModel.build(map, self);
}
public CreateImageTranslateTaskResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public CreateImageTranslateTaskResponseBody setData(CreateImageTranslateTaskResponseBodyData data) {
this.data = data;
return this;
}
public CreateImageTranslateTaskResponseBodyData getData() {
return this.data;
}
public CreateImageTranslateTaskResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public CreateImageTranslateTaskResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public static class CreateImageTranslateTaskResponseBodyData extends TeaModel {
/**
* <strong>example:</strong>
* <p>A41F6E25-8520-4AF0-90EF-111111</p>
*/
@NameInMap("TaskId")
public String taskId;
public static CreateImageTranslateTaskResponseBodyData build(java.util.Map<String, ?> map) throws Exception {
CreateImageTranslateTaskResponseBodyData self = new CreateImageTranslateTaskResponseBodyData();
return TeaModel.build(map, self);
}
public CreateImageTranslateTaskResponseBodyData setTaskId(String taskId) {
this.taskId = taskId;
return this;
}
public String getTaskId() {
return this.taskId;
}
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetAsyncTranslateRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetAsyncTranslateRequest extends TeaModel {
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>77056ab7-7be1-4c2a-91a1-f20f63894048</p>
*/
@NameInMap("JobId")
public String jobId;
public static GetAsyncTranslateRequest build(java.util.Map<String, ?> map) throws Exception {
GetAsyncTranslateRequest self = new GetAsyncTranslateRequest();
return TeaModel.build(map, self);
}
public GetAsyncTranslateRequest setJobId(String jobId) {
this.jobId = jobId;
return this;
}
public String getJobId() {
return this.jobId;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetAsyncTranslateResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetAsyncTranslateResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public GetAsyncTranslateResponseBody body;
public static GetAsyncTranslateResponse build(java.util.Map<String, ?> map) throws Exception {
GetAsyncTranslateResponse self = new GetAsyncTranslateResponse();
return TeaModel.build(map, self);
}
public GetAsyncTranslateResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public GetAsyncTranslateResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public GetAsyncTranslateResponse setBody(GetAsyncTranslateResponseBody body) {
this.body = body;
return this;
}
public GetAsyncTranslateResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetAsyncTranslateResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetAsyncTranslateResponseBody extends TeaModel {
/**
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
@NameInMap("Data")
public GetAsyncTranslateResponseBodyData data;
/**
* <strong>example:</strong>
* <p>ok</p>
*/
@NameInMap("Message")
public String message;
/**
* <strong>example:</strong>
* <p>DC2DCCC9-C3DF-4F59-8D8E-78185729F16D</p>
*/
@NameInMap("RequestId")
public String requestId;
public static GetAsyncTranslateResponseBody build(java.util.Map<String, ?> map) throws Exception {
GetAsyncTranslateResponseBody self = new GetAsyncTranslateResponseBody();
return TeaModel.build(map, self);
}
public GetAsyncTranslateResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public GetAsyncTranslateResponseBody setData(GetAsyncTranslateResponseBodyData data) {
this.data = data;
return this;
}
public GetAsyncTranslateResponseBodyData getData() {
return this.data;
}
public GetAsyncTranslateResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public GetAsyncTranslateResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public static class GetAsyncTranslateResponseBodyData extends TeaModel {
/**
* <strong>example:</strong>
* <p>zh</p>
*/
@NameInMap("DetectedLanguage")
public String detectedLanguage;
/**
* <strong>example:</strong>
* <p>ready</p>
*/
@NameInMap("Status")
public String status;
/**
* <strong>example:</strong>
* <p>hello</p>
*/
@NameInMap("TranslatedText")
public String translatedText;
/**
* <strong>example:</strong>
* <p>2</p>
*/
@NameInMap("WordCount")
public String wordCount;
public static GetAsyncTranslateResponseBodyData build(java.util.Map<String, ?> map) throws Exception {
GetAsyncTranslateResponseBodyData self = new GetAsyncTranslateResponseBodyData();
return TeaModel.build(map, self);
}
public GetAsyncTranslateResponseBodyData setDetectedLanguage(String detectedLanguage) {
this.detectedLanguage = detectedLanguage;
return this;
}
public String getDetectedLanguage() {
return this.detectedLanguage;
}
public GetAsyncTranslateResponseBodyData setStatus(String status) {
this.status = status;
return this;
}
public String getStatus() {
return this.status;
}
public GetAsyncTranslateResponseBodyData setTranslatedText(String translatedText) {
this.translatedText = translatedText;
return this;
}
public String getTranslatedText() {
return this.translatedText;
}
public GetAsyncTranslateResponseBodyData setWordCount(String wordCount) {
this.wordCount = wordCount;
return this;
}
public String getWordCount() {
return this.wordCount;
}
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetBatchTranslateByVPCRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetBatchTranslateByVPCRequest extends TeaModel {
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>translate_standard</p>
*/
@NameInMap("ApiType")
public String apiType;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>text</p>
*/
@NameInMap("FormatType")
public String formatType;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>general</p>
*/
@NameInMap("Scene")
public String scene;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>zh</p>
*/
@NameInMap("SourceLanguage")
public String sourceLanguage;
/**
* <p>This parameter is required.</p>
*/
@NameInMap("SourceText")
public String sourceText;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>en</p>
*/
@NameInMap("TargetLanguage")
public String targetLanguage;
public static GetBatchTranslateByVPCRequest build(java.util.Map<String, ?> map) throws Exception {
GetBatchTranslateByVPCRequest self = new GetBatchTranslateByVPCRequest();
return TeaModel.build(map, self);
}
public GetBatchTranslateByVPCRequest setApiType(String apiType) {
this.apiType = apiType;
return this;
}
public String getApiType() {
return this.apiType;
}
public GetBatchTranslateByVPCRequest setFormatType(String formatType) {
this.formatType = formatType;
return this;
}
public String getFormatType() {
return this.formatType;
}
public GetBatchTranslateByVPCRequest setScene(String scene) {
this.scene = scene;
return this;
}
public String getScene() {
return this.scene;
}
public GetBatchTranslateByVPCRequest setSourceLanguage(String sourceLanguage) {
this.sourceLanguage = sourceLanguage;
return this;
}
public String getSourceLanguage() {
return this.sourceLanguage;
}
public GetBatchTranslateByVPCRequest setSourceText(String sourceText) {
this.sourceText = sourceText;
return this;
}
public String getSourceText() {
return this.sourceText;
}
public GetBatchTranslateByVPCRequest setTargetLanguage(String targetLanguage) {
this.targetLanguage = targetLanguage;
return this;
}
public String getTargetLanguage() {
return this.targetLanguage;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetBatchTranslateByVPCResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetBatchTranslateByVPCResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public GetBatchTranslateByVPCResponseBody body;
public static GetBatchTranslateByVPCResponse build(java.util.Map<String, ?> map) throws Exception {
GetBatchTranslateByVPCResponse self = new GetBatchTranslateByVPCResponse();
return TeaModel.build(map, self);
}
public GetBatchTranslateByVPCResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public GetBatchTranslateByVPCResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public GetBatchTranslateByVPCResponse setBody(GetBatchTranslateByVPCResponseBody body) {
this.body = body;
return this;
}
public GetBatchTranslateByVPCResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetBatchTranslateByVPCResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetBatchTranslateByVPCResponseBody extends TeaModel {
/**
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <strong>example:</strong>
* <p>Param checker failed! param:[sourceText]. reason: stringChecker not pass. Param length not less [0] and not greater[10000]</p>
*/
@NameInMap("Message")
public String message;
/**
* <p>Id of the request</p>
*
* <strong>example:</strong>
* <p>DC2DCCC9-C3DF-4F59-8D8E-78185729F16D</p>
*/
@NameInMap("RequestId")
public String requestId;
@NameInMap("TranslatedList")
public java.util.List<java.util.Map<String, ?>> translatedList;
public static GetBatchTranslateByVPCResponseBody build(java.util.Map<String, ?> map) throws Exception {
GetBatchTranslateByVPCResponseBody self = new GetBatchTranslateByVPCResponseBody();
return TeaModel.build(map, self);
}
public GetBatchTranslateByVPCResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public GetBatchTranslateByVPCResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public GetBatchTranslateByVPCResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public GetBatchTranslateByVPCResponseBody setTranslatedList(java.util.List<java.util.Map<String, ?>> translatedList) {
this.translatedList = translatedList;
return this;
}
public java.util.List<java.util.Map<String, ?>> getTranslatedList() {
return this.translatedList;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetBatchTranslateRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetBatchTranslateRequest extends TeaModel {
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>translate_standard</p>
*/
@NameInMap("ApiType")
public String apiType;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>text</p>
*/
@NameInMap("FormatType")
public String formatType;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>general</p>
*/
@NameInMap("Scene")
public String scene;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>en</p>
*/
@NameInMap("SourceLanguage")
public String sourceLanguage;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>{"11":"hello boy","12":"go home","13":"we can"}</p>
*/
@NameInMap("SourceText")
public String sourceText;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>zh</p>
*/
@NameInMap("TargetLanguage")
public String targetLanguage;
public static GetBatchTranslateRequest build(java.util.Map<String, ?> map) throws Exception {
GetBatchTranslateRequest self = new GetBatchTranslateRequest();
return TeaModel.build(map, self);
}
public GetBatchTranslateRequest setApiType(String apiType) {
this.apiType = apiType;
return this;
}
public String getApiType() {
return this.apiType;
}
public GetBatchTranslateRequest setFormatType(String formatType) {
this.formatType = formatType;
return this;
}
public String getFormatType() {
return this.formatType;
}
public GetBatchTranslateRequest setScene(String scene) {
this.scene = scene;
return this;
}
public String getScene() {
return this.scene;
}
public GetBatchTranslateRequest setSourceLanguage(String sourceLanguage) {
this.sourceLanguage = sourceLanguage;
return this;
}
public String getSourceLanguage() {
return this.sourceLanguage;
}
public GetBatchTranslateRequest setSourceText(String sourceText) {
this.sourceText = sourceText;
return this;
}
public String getSourceText() {
return this.sourceText;
}
public GetBatchTranslateRequest setTargetLanguage(String targetLanguage) {
this.targetLanguage = targetLanguage;
return this;
}
public String getTargetLanguage() {
return this.targetLanguage;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetBatchTranslateResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetBatchTranslateResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public GetBatchTranslateResponseBody body;
public static GetBatchTranslateResponse build(java.util.Map<String, ?> map) throws Exception {
GetBatchTranslateResponse self = new GetBatchTranslateResponse();
return TeaModel.build(map, self);
}
public GetBatchTranslateResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public GetBatchTranslateResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public GetBatchTranslateResponse setBody(GetBatchTranslateResponseBody body) {
this.body = body;
return this;
}
public GetBatchTranslateResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetBatchTranslateResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetBatchTranslateResponseBody extends TeaModel {
/**
* <strong>example:</strong>
* <p>200</p>
*/
@NameInMap("Code")
public Integer code;
/**
* <strong>example:</strong>
* <p>success</p>
*/
@NameInMap("Message")
public String message;
/**
* <strong>example:</strong>
* <p>86D18195-D89C-4C8C-9DC4-5FCE789CE6D5</p>
*/
@NameInMap("RequestId")
public String requestId;
@NameInMap("TranslatedList")
public java.util.List<java.util.Map<String, ?>> translatedList;
public static GetBatchTranslateResponseBody build(java.util.Map<String, ?> map) throws Exception {
GetBatchTranslateResponseBody self = new GetBatchTranslateResponseBody();
return TeaModel.build(map, self);
}
public GetBatchTranslateResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public GetBatchTranslateResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public GetBatchTranslateResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public GetBatchTranslateResponseBody setTranslatedList(java.util.List<java.util.Map<String, ?>> translatedList) {
this.translatedList = translatedList;
return this;
}
public java.util.List<java.util.Map<String, ?>> getTranslatedList() {
return this.translatedList;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetDetectLanguageRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetDetectLanguageRequest extends TeaModel {
/**
* <p>This parameter is required.</p>
*/
@NameInMap("SourceText")
public String sourceText;
public static GetDetectLanguageRequest build(java.util.Map<String, ?> map) throws Exception {
GetDetectLanguageRequest self = new GetDetectLanguageRequest();
return TeaModel.build(map, self);
}
public GetDetectLanguageRequest setSourceText(String sourceText) {
this.sourceText = sourceText;
return this;
}
public String getSourceText() {
return this.sourceText;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetDetectLanguageResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetDetectLanguageResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public GetDetectLanguageResponseBody body;
public static GetDetectLanguageResponse build(java.util.Map<String, ?> map) throws Exception {
GetDetectLanguageResponse self = new GetDetectLanguageResponse();
return TeaModel.build(map, self);
}
public GetDetectLanguageResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public GetDetectLanguageResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public GetDetectLanguageResponse setBody(GetDetectLanguageResponseBody body) {
this.body = body;
return this;
}
public GetDetectLanguageResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetDetectLanguageResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetDetectLanguageResponseBody extends TeaModel {
/**
* <strong>example:</strong>
* <p>zh</p>
*/
@NameInMap("DetectedLanguage")
public String detectedLanguage;
@NameInMap("LanguageProbabilities")
public String languageProbabilities;
/**
* <strong>example:</strong>
* <p>0C5EC1EC-1A06-4D60-97E6-4D41350945E4</p>
*/
@NameInMap("RequestId")
public String requestId;
public static GetDetectLanguageResponseBody build(java.util.Map<String, ?> map) throws Exception {
GetDetectLanguageResponseBody self = new GetDetectLanguageResponseBody();
return TeaModel.build(map, self);
}
public GetDetectLanguageResponseBody setDetectedLanguage(String detectedLanguage) {
this.detectedLanguage = detectedLanguage;
return this;
}
public String getDetectedLanguage() {
return this.detectedLanguage;
}
public GetDetectLanguageResponseBody setLanguageProbabilities(String languageProbabilities) {
this.languageProbabilities = languageProbabilities;
return this;
}
public String getLanguageProbabilities() {
return this.languageProbabilities;
}
public GetDetectLanguageResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetDetectLanguageVpcRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetDetectLanguageVpcRequest extends TeaModel {
@NameInMap("SourceText")
public String sourceText;
public static GetDetectLanguageVpcRequest build(java.util.Map<String, ?> map) throws Exception {
GetDetectLanguageVpcRequest self = new GetDetectLanguageVpcRequest();
return TeaModel.build(map, self);
}
public GetDetectLanguageVpcRequest setSourceText(String sourceText) {
this.sourceText = sourceText;
return this;
}
public String getSourceText() {
return this.sourceText;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetDetectLanguageVpcResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetDetectLanguageVpcResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public GetDetectLanguageVpcResponseBody body;
public static GetDetectLanguageVpcResponse build(java.util.Map<String, ?> map) throws Exception {
GetDetectLanguageVpcResponse self = new GetDetectLanguageVpcResponse();
return TeaModel.build(map, self);
}
public GetDetectLanguageVpcResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public GetDetectLanguageVpcResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public GetDetectLanguageVpcResponse setBody(GetDetectLanguageVpcResponseBody body) {
this.body = body;
return this;
}
public GetDetectLanguageVpcResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetDetectLanguageVpcResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetDetectLanguageVpcResponseBody extends TeaModel {
@NameInMap("DetectedLanguage")
public String detectedLanguage;
@NameInMap("LanguageProbabilities")
public String languageProbabilities;
@NameInMap("RequestId")
public String requestId;
public static GetDetectLanguageVpcResponseBody build(java.util.Map<String, ?> map) throws Exception {
GetDetectLanguageVpcResponseBody self = new GetDetectLanguageVpcResponseBody();
return TeaModel.build(map, self);
}
public GetDetectLanguageVpcResponseBody setDetectedLanguage(String detectedLanguage) {
this.detectedLanguage = detectedLanguage;
return this;
}
public String getDetectedLanguage() {
return this.detectedLanguage;
}
public GetDetectLanguageVpcResponseBody setLanguageProbabilities(String languageProbabilities) {
this.languageProbabilities = languageProbabilities;
return this;
}
public String getLanguageProbabilities() {
return this.languageProbabilities;
}
public GetDetectLanguageVpcResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetDocTranslateTaskRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetDocTranslateTaskRequest extends TeaModel {
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p>0586df512c8b4bb382d7d9a6a01b5854</p>
*/
@NameInMap("TaskId")
public String taskId;
public static GetDocTranslateTaskRequest build(java.util.Map<String, ?> map) throws Exception {
GetDocTranslateTaskRequest self = new GetDocTranslateTaskRequest();
return TeaModel.build(map, self);
}
public GetDocTranslateTaskRequest setTaskId(String taskId) {
this.taskId = taskId;
return this;
}
public String getTaskId() {
return this.taskId;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetDocTranslateTaskResponse.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetDocTranslateTaskResponse extends TeaModel {
@NameInMap("headers")
public java.util.Map<String, String> headers;
@NameInMap("statusCode")
public Integer statusCode;
@NameInMap("body")
public GetDocTranslateTaskResponseBody body;
public static GetDocTranslateTaskResponse build(java.util.Map<String, ?> map) throws Exception {
GetDocTranslateTaskResponse self = new GetDocTranslateTaskResponse();
return TeaModel.build(map, self);
}
public GetDocTranslateTaskResponse setHeaders(java.util.Map<String, String> headers) {
this.headers = headers;
return this;
}
public java.util.Map<String, String> getHeaders() {
return this.headers;
}
public GetDocTranslateTaskResponse setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
public Integer getStatusCode() {
return this.statusCode;
}
public GetDocTranslateTaskResponse setBody(GetDocTranslateTaskResponseBody body) {
this.body = body;
return this;
}
public GetDocTranslateTaskResponseBody getBody() {
return this.body;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetDocTranslateTaskResponseBody.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetDocTranslateTaskResponseBody extends TeaModel {
/**
* <strong>example:</strong>
* <p>20</p>
*/
@NameInMap("PageCount")
public Integer pageCount;
/**
* <strong>example:</strong>
* <p>12952E92-FDF3-4D3C-88E3-242D72BA7150</p>
*/
@NameInMap("RequestId")
public String requestId;
/**
* <strong>example:</strong>
* <p>translated</p>
*/
@NameInMap("Status")
public String status;
/**
* <strong>example:</strong>
* <p>0586df512c8b4bb382d7d9a6a01b5854</p>
*/
@NameInMap("TaskId")
public String taskId;
/**
* <strong>example:</strong>
* <p>Error</p>
*/
@NameInMap("TranslateErrorCode")
public String translateErrorCode;
/**
* <strong>example:</strong>
* <p>Fail to get the page number of document.</p>
*/
@NameInMap("TranslateErrorMessage")
public String translateErrorMessage;
/**
* <strong>example:</strong>
* <p><a href="http://translateFileUrl">http://translateFileUrl</a></p>
*/
@NameInMap("TranslateFileUrl")
public String translateFileUrl;
public static GetDocTranslateTaskResponseBody build(java.util.Map<String, ?> map) throws Exception {
GetDocTranslateTaskResponseBody self = new GetDocTranslateTaskResponseBody();
return TeaModel.build(map, self);
}
public GetDocTranslateTaskResponseBody setPageCount(Integer pageCount) {
this.pageCount = pageCount;
return this;
}
public Integer getPageCount() {
return this.pageCount;
}
public GetDocTranslateTaskResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public GetDocTranslateTaskResponseBody setStatus(String status) {
this.status = status;
return this;
}
public String getStatus() {
return this.status;
}
public GetDocTranslateTaskResponseBody setTaskId(String taskId) {
this.taskId = taskId;
return this;
}
public String getTaskId() {
return this.taskId;
}
public GetDocTranslateTaskResponseBody setTranslateErrorCode(String translateErrorCode) {
this.translateErrorCode = translateErrorCode;
return this;
}
public String getTranslateErrorCode() {
return this.translateErrorCode;
}
public GetDocTranslateTaskResponseBody setTranslateErrorMessage(String translateErrorMessage) {
this.translateErrorMessage = translateErrorMessage;
return this;
}
public String getTranslateErrorMessage() {
return this.translateErrorMessage;
}
public GetDocTranslateTaskResponseBody setTranslateFileUrl(String translateFileUrl) {
this.translateFileUrl = translateFileUrl;
return this;
}
public String getTranslateFileUrl() {
return this.translateFileUrl;
}
}
|
0
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012
|
java-sources/com/aliyun/alimt20181012/1.5.1/com/aliyun/alimt20181012/models/GetImageDiagnoseRequest.java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alimt20181012.models;
import com.aliyun.tea.*;
public class GetImageDiagnoseRequest extends TeaModel {
/**
* <strong>example:</strong>
* <p>{ "product_id": "1", "platform": "ae" }</p>
*/
@NameInMap("Extra")
public String extra;
/**
* <p>This parameter is required.</p>
*
* <strong>example:</strong>
* <p><a href="http://xxxxx.oss-cn-shenzhen.aliyuncs.com/jd/41209/xxxxx.jpg">http://xxxxx.oss-cn-shenzhen.aliyuncs.com/jd/41209/xxxxx.jpg</a></p>
*/
@NameInMap("Url")
public String url;
public static GetImageDiagnoseRequest build(java.util.Map<String, ?> map) throws Exception {
GetImageDiagnoseRequest self = new GetImageDiagnoseRequest();
return TeaModel.build(map, self);
}
public GetImageDiagnoseRequest setExtra(String extra) {
this.extra = extra;
return this;
}
public String getExtra() {
return this.extra;
}
public GetImageDiagnoseRequest setUrl(String url) {
this.url = url;
return this;
}
public String getUrl() {
return this.url;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.