index
int64
repo_id
string
file_path
string
content
string
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWeChGeneralResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWeChGeneralResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static GetWeChGeneralResponseBody build(java.util.Map<String, ?> map) throws Exception { GetWeChGeneralResponseBody self = new GetWeChGeneralResponseBody(); return TeaModel.build(map, self); } public GetWeChGeneralResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public GetWeChGeneralResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWeChSearchRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWeChSearchRequest extends TeaModel { @NameInMap("Operation") public String operation; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceCode") public String serviceCode; @NameInMap("Size") public String size; /** * <p>This parameter is required.</p> */ @NameInMap("Text") public String text; /** * <p>This parameter is required.</p> */ @NameInMap("TokenizerId") public String tokenizerId; @NameInMap("Type") public String type; public static GetWeChSearchRequest build(java.util.Map<String, ?> map) throws Exception { GetWeChSearchRequest self = new GetWeChSearchRequest(); return TeaModel.build(map, self); } public GetWeChSearchRequest setOperation(String operation) { this.operation = operation; return this; } public String getOperation() { return this.operation; } public GetWeChSearchRequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } public GetWeChSearchRequest setSize(String size) { this.size = size; return this; } public String getSize() { return this.size; } public GetWeChSearchRequest setText(String text) { this.text = text; return this; } public String getText() { return this.text; } public GetWeChSearchRequest setTokenizerId(String tokenizerId) { this.tokenizerId = tokenizerId; return this; } public String getTokenizerId() { return this.tokenizerId; } public GetWeChSearchRequest setType(String type) { this.type = type; return this; } public String getType() { return this.type; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWeChSearchResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWeChSearchResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public GetWeChSearchResponseBody body; public static GetWeChSearchResponse build(java.util.Map<String, ?> map) throws Exception { GetWeChSearchResponse self = new GetWeChSearchResponse(); return TeaModel.build(map, self); } public GetWeChSearchResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public GetWeChSearchResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public GetWeChSearchResponse setBody(GetWeChSearchResponseBody body) { this.body = body; return this; } public GetWeChSearchResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWeChSearchResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWeChSearchResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static GetWeChSearchResponseBody build(java.util.Map<String, ?> map) throws Exception { GetWeChSearchResponseBody self = new GetWeChSearchResponseBody(); return TeaModel.build(map, self); } public GetWeChSearchResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public GetWeChSearchResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsChGeneralRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsChGeneralRequest extends TeaModel { @NameInMap("OutType") public String outType; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceCode") public String serviceCode; /** * <p>This parameter is required.</p> */ @NameInMap("Text") public String text; @NameInMap("TokenizerId") public String tokenizerId; public static GetWsChGeneralRequest build(java.util.Map<String, ?> map) throws Exception { GetWsChGeneralRequest self = new GetWsChGeneralRequest(); return TeaModel.build(map, self); } public GetWsChGeneralRequest setOutType(String outType) { this.outType = outType; return this; } public String getOutType() { return this.outType; } public GetWsChGeneralRequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } public GetWsChGeneralRequest setText(String text) { this.text = text; return this; } public String getText() { return this.text; } public GetWsChGeneralRequest setTokenizerId(String tokenizerId) { this.tokenizerId = tokenizerId; return this; } public String getTokenizerId() { return this.tokenizerId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsChGeneralResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsChGeneralResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public GetWsChGeneralResponseBody body; public static GetWsChGeneralResponse build(java.util.Map<String, ?> map) throws Exception { GetWsChGeneralResponse self = new GetWsChGeneralResponse(); return TeaModel.build(map, self); } public GetWsChGeneralResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public GetWsChGeneralResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public GetWsChGeneralResponse setBody(GetWsChGeneralResponseBody body) { this.body = body; return this; } public GetWsChGeneralResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsChGeneralResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsChGeneralResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static GetWsChGeneralResponseBody build(java.util.Map<String, ?> map) throws Exception { GetWsChGeneralResponseBody self = new GetWsChGeneralResponseBody(); return TeaModel.build(map, self); } public GetWsChGeneralResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public GetWsChGeneralResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChEcomCommentRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChEcomCommentRequest extends TeaModel { @NameInMap("OutType") public String outType; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceCode") public String serviceCode; /** * <p>This parameter is required.</p> */ @NameInMap("Text") public String text; @NameInMap("TokenizerId") public String tokenizerId; public static GetWsCustomizedChEcomCommentRequest build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChEcomCommentRequest self = new GetWsCustomizedChEcomCommentRequest(); return TeaModel.build(map, self); } public GetWsCustomizedChEcomCommentRequest setOutType(String outType) { this.outType = outType; return this; } public String getOutType() { return this.outType; } public GetWsCustomizedChEcomCommentRequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } public GetWsCustomizedChEcomCommentRequest setText(String text) { this.text = text; return this; } public String getText() { return this.text; } public GetWsCustomizedChEcomCommentRequest setTokenizerId(String tokenizerId) { this.tokenizerId = tokenizerId; return this; } public String getTokenizerId() { return this.tokenizerId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChEcomCommentResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChEcomCommentResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public GetWsCustomizedChEcomCommentResponseBody body; public static GetWsCustomizedChEcomCommentResponse build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChEcomCommentResponse self = new GetWsCustomizedChEcomCommentResponse(); return TeaModel.build(map, self); } public GetWsCustomizedChEcomCommentResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public GetWsCustomizedChEcomCommentResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public GetWsCustomizedChEcomCommentResponse setBody(GetWsCustomizedChEcomCommentResponseBody body) { this.body = body; return this; } public GetWsCustomizedChEcomCommentResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChEcomCommentResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChEcomCommentResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static GetWsCustomizedChEcomCommentResponseBody build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChEcomCommentResponseBody self = new GetWsCustomizedChEcomCommentResponseBody(); return TeaModel.build(map, self); } public GetWsCustomizedChEcomCommentResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public GetWsCustomizedChEcomCommentResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChEcomContentRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChEcomContentRequest extends TeaModel { @NameInMap("OutType") public String outType; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceCode") public String serviceCode; /** * <p>This parameter is required.</p> */ @NameInMap("Text") public String text; @NameInMap("TokenizerId") public String tokenizerId; public static GetWsCustomizedChEcomContentRequest build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChEcomContentRequest self = new GetWsCustomizedChEcomContentRequest(); return TeaModel.build(map, self); } public GetWsCustomizedChEcomContentRequest setOutType(String outType) { this.outType = outType; return this; } public String getOutType() { return this.outType; } public GetWsCustomizedChEcomContentRequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } public GetWsCustomizedChEcomContentRequest setText(String text) { this.text = text; return this; } public String getText() { return this.text; } public GetWsCustomizedChEcomContentRequest setTokenizerId(String tokenizerId) { this.tokenizerId = tokenizerId; return this; } public String getTokenizerId() { return this.tokenizerId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChEcomContentResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChEcomContentResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public GetWsCustomizedChEcomContentResponseBody body; public static GetWsCustomizedChEcomContentResponse build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChEcomContentResponse self = new GetWsCustomizedChEcomContentResponse(); return TeaModel.build(map, self); } public GetWsCustomizedChEcomContentResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public GetWsCustomizedChEcomContentResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public GetWsCustomizedChEcomContentResponse setBody(GetWsCustomizedChEcomContentResponseBody body) { this.body = body; return this; } public GetWsCustomizedChEcomContentResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChEcomContentResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChEcomContentResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static GetWsCustomizedChEcomContentResponseBody build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChEcomContentResponseBody self = new GetWsCustomizedChEcomContentResponseBody(); return TeaModel.build(map, self); } public GetWsCustomizedChEcomContentResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public GetWsCustomizedChEcomContentResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChEcomTitleRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChEcomTitleRequest extends TeaModel { @NameInMap("OutType") public String outType; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceCode") public String serviceCode; /** * <p>This parameter is required.</p> */ @NameInMap("Text") public String text; @NameInMap("TokenizerId") public String tokenizerId; public static GetWsCustomizedChEcomTitleRequest build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChEcomTitleRequest self = new GetWsCustomizedChEcomTitleRequest(); return TeaModel.build(map, self); } public GetWsCustomizedChEcomTitleRequest setOutType(String outType) { this.outType = outType; return this; } public String getOutType() { return this.outType; } public GetWsCustomizedChEcomTitleRequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } public GetWsCustomizedChEcomTitleRequest setText(String text) { this.text = text; return this; } public String getText() { return this.text; } public GetWsCustomizedChEcomTitleRequest setTokenizerId(String tokenizerId) { this.tokenizerId = tokenizerId; return this; } public String getTokenizerId() { return this.tokenizerId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChEcomTitleResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChEcomTitleResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public GetWsCustomizedChEcomTitleResponseBody body; public static GetWsCustomizedChEcomTitleResponse build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChEcomTitleResponse self = new GetWsCustomizedChEcomTitleResponse(); return TeaModel.build(map, self); } public GetWsCustomizedChEcomTitleResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public GetWsCustomizedChEcomTitleResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public GetWsCustomizedChEcomTitleResponse setBody(GetWsCustomizedChEcomTitleResponseBody body) { this.body = body; return this; } public GetWsCustomizedChEcomTitleResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChEcomTitleResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChEcomTitleResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static GetWsCustomizedChEcomTitleResponseBody build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChEcomTitleResponseBody self = new GetWsCustomizedChEcomTitleResponseBody(); return TeaModel.build(map, self); } public GetWsCustomizedChEcomTitleResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public GetWsCustomizedChEcomTitleResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChEntertainmentRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChEntertainmentRequest extends TeaModel { @NameInMap("OutType") public String outType; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceCode") public String serviceCode; /** * <p>This parameter is required.</p> */ @NameInMap("Text") public String text; @NameInMap("TokenizerId") public String tokenizerId; public static GetWsCustomizedChEntertainmentRequest build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChEntertainmentRequest self = new GetWsCustomizedChEntertainmentRequest(); return TeaModel.build(map, self); } public GetWsCustomizedChEntertainmentRequest setOutType(String outType) { this.outType = outType; return this; } public String getOutType() { return this.outType; } public GetWsCustomizedChEntertainmentRequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } public GetWsCustomizedChEntertainmentRequest setText(String text) { this.text = text; return this; } public String getText() { return this.text; } public GetWsCustomizedChEntertainmentRequest setTokenizerId(String tokenizerId) { this.tokenizerId = tokenizerId; return this; } public String getTokenizerId() { return this.tokenizerId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChEntertainmentResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChEntertainmentResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public GetWsCustomizedChEntertainmentResponseBody body; public static GetWsCustomizedChEntertainmentResponse build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChEntertainmentResponse self = new GetWsCustomizedChEntertainmentResponse(); return TeaModel.build(map, self); } public GetWsCustomizedChEntertainmentResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public GetWsCustomizedChEntertainmentResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public GetWsCustomizedChEntertainmentResponse setBody(GetWsCustomizedChEntertainmentResponseBody body) { this.body = body; return this; } public GetWsCustomizedChEntertainmentResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChEntertainmentResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChEntertainmentResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static GetWsCustomizedChEntertainmentResponseBody build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChEntertainmentResponseBody self = new GetWsCustomizedChEntertainmentResponseBody(); return TeaModel.build(map, self); } public GetWsCustomizedChEntertainmentResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public GetWsCustomizedChEntertainmentResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChGeneralRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChGeneralRequest extends TeaModel { @NameInMap("OutType") public String outType; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceCode") public String serviceCode; /** * <p>This parameter is required.</p> */ @NameInMap("Text") public String text; @NameInMap("TokenizerId") public String tokenizerId; public static GetWsCustomizedChGeneralRequest build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChGeneralRequest self = new GetWsCustomizedChGeneralRequest(); return TeaModel.build(map, self); } public GetWsCustomizedChGeneralRequest setOutType(String outType) { this.outType = outType; return this; } public String getOutType() { return this.outType; } public GetWsCustomizedChGeneralRequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } public GetWsCustomizedChGeneralRequest setText(String text) { this.text = text; return this; } public String getText() { return this.text; } public GetWsCustomizedChGeneralRequest setTokenizerId(String tokenizerId) { this.tokenizerId = tokenizerId; return this; } public String getTokenizerId() { return this.tokenizerId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChGeneralResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChGeneralResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public GetWsCustomizedChGeneralResponseBody body; public static GetWsCustomizedChGeneralResponse build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChGeneralResponse self = new GetWsCustomizedChGeneralResponse(); return TeaModel.build(map, self); } public GetWsCustomizedChGeneralResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public GetWsCustomizedChGeneralResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public GetWsCustomizedChGeneralResponse setBody(GetWsCustomizedChGeneralResponseBody body) { this.body = body; return this; } public GetWsCustomizedChGeneralResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChGeneralResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChGeneralResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static GetWsCustomizedChGeneralResponseBody build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChGeneralResponseBody self = new GetWsCustomizedChGeneralResponseBody(); return TeaModel.build(map, self); } public GetWsCustomizedChGeneralResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public GetWsCustomizedChGeneralResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChO2ORequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChO2ORequest extends TeaModel { @NameInMap("OutType") public String outType; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceCode") public String serviceCode; /** * <p>This parameter is required.</p> */ @NameInMap("Text") public String text; @NameInMap("TokenizerId") public String tokenizerId; public static GetWsCustomizedChO2ORequest build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChO2ORequest self = new GetWsCustomizedChO2ORequest(); return TeaModel.build(map, self); } public GetWsCustomizedChO2ORequest setOutType(String outType) { this.outType = outType; return this; } public String getOutType() { return this.outType; } public GetWsCustomizedChO2ORequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } public GetWsCustomizedChO2ORequest setText(String text) { this.text = text; return this; } public String getText() { return this.text; } public GetWsCustomizedChO2ORequest setTokenizerId(String tokenizerId) { this.tokenizerId = tokenizerId; return this; } public String getTokenizerId() { return this.tokenizerId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChO2OResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChO2OResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public GetWsCustomizedChO2OResponseBody body; public static GetWsCustomizedChO2OResponse build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChO2OResponse self = new GetWsCustomizedChO2OResponse(); return TeaModel.build(map, self); } public GetWsCustomizedChO2OResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public GetWsCustomizedChO2OResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public GetWsCustomizedChO2OResponse setBody(GetWsCustomizedChO2OResponseBody body) { this.body = body; return this; } public GetWsCustomizedChO2OResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedChO2OResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedChO2OResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static GetWsCustomizedChO2OResponseBody build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedChO2OResponseBody self = new GetWsCustomizedChO2OResponseBody(); return TeaModel.build(map, self); } public GetWsCustomizedChO2OResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public GetWsCustomizedChO2OResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedSeaEcomRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedSeaEcomRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Language") public String language; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceCode") public String serviceCode; /** * <p>This parameter is required.</p> */ @NameInMap("Text") public String text; public static GetWsCustomizedSeaEcomRequest build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedSeaEcomRequest self = new GetWsCustomizedSeaEcomRequest(); return TeaModel.build(map, self); } public GetWsCustomizedSeaEcomRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return this.language; } public GetWsCustomizedSeaEcomRequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } public GetWsCustomizedSeaEcomRequest setText(String text) { this.text = text; return this; } public String getText() { return this.text; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedSeaEcomResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedSeaEcomResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public GetWsCustomizedSeaEcomResponseBody body; public static GetWsCustomizedSeaEcomResponse build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedSeaEcomResponse self = new GetWsCustomizedSeaEcomResponse(); return TeaModel.build(map, self); } public GetWsCustomizedSeaEcomResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public GetWsCustomizedSeaEcomResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public GetWsCustomizedSeaEcomResponse setBody(GetWsCustomizedSeaEcomResponseBody body) { this.body = body; return this; } public GetWsCustomizedSeaEcomResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedSeaEcomResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedSeaEcomResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static GetWsCustomizedSeaEcomResponseBody build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedSeaEcomResponseBody self = new GetWsCustomizedSeaEcomResponseBody(); return TeaModel.build(map, self); } public GetWsCustomizedSeaEcomResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public GetWsCustomizedSeaEcomResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedSeaGeneralRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedSeaGeneralRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Language") public String language; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceCode") public String serviceCode; /** * <p>This parameter is required.</p> */ @NameInMap("Text") public String text; public static GetWsCustomizedSeaGeneralRequest build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedSeaGeneralRequest self = new GetWsCustomizedSeaGeneralRequest(); return TeaModel.build(map, self); } public GetWsCustomizedSeaGeneralRequest setLanguage(String language) { this.language = language; return this; } public String getLanguage() { return this.language; } public GetWsCustomizedSeaGeneralRequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } public GetWsCustomizedSeaGeneralRequest setText(String text) { this.text = text; return this; } public String getText() { return this.text; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedSeaGeneralResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedSeaGeneralResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public GetWsCustomizedSeaGeneralResponseBody body; public static GetWsCustomizedSeaGeneralResponse build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedSeaGeneralResponse self = new GetWsCustomizedSeaGeneralResponse(); return TeaModel.build(map, self); } public GetWsCustomizedSeaGeneralResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public GetWsCustomizedSeaGeneralResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public GetWsCustomizedSeaGeneralResponse setBody(GetWsCustomizedSeaGeneralResponseBody body) { this.body = body; return this; } public GetWsCustomizedSeaGeneralResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/GetWsCustomizedSeaGeneralResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class GetWsCustomizedSeaGeneralResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static GetWsCustomizedSeaGeneralResponseBody build(java.util.Map<String, ?> map) throws Exception { GetWsCustomizedSeaGeneralResponseBody self = new GetWsCustomizedSeaGeneralResponseBody(); return TeaModel.build(map, self); } public GetWsCustomizedSeaGeneralResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public GetWsCustomizedSeaGeneralResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/ImportServiceDataRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class ImportServiceDataRequest extends TeaModel { @NameInMap("Partition") public java.util.List<java.util.Map<String, String>> partition; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceId") public Long serviceId; @NameInMap("SubPath") public String subPath; @NameInMap("Url") public String url; public static ImportServiceDataRequest build(java.util.Map<String, ?> map) throws Exception { ImportServiceDataRequest self = new ImportServiceDataRequest(); return TeaModel.build(map, self); } public ImportServiceDataRequest setPartition(java.util.List<java.util.Map<String, String>> partition) { this.partition = partition; return this; } public java.util.List<java.util.Map<String, String>> getPartition() { return this.partition; } public ImportServiceDataRequest setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } public ImportServiceDataRequest setSubPath(String subPath) { this.subPath = subPath; return this; } public String getSubPath() { return this.subPath; } public ImportServiceDataRequest setUrl(String url) { this.url = url; return this; } public String getUrl() { return this.url; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/ImportServiceDataResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class ImportServiceDataResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public ImportServiceDataResponseBody body; public static ImportServiceDataResponse build(java.util.Map<String, ?> map) throws Exception { ImportServiceDataResponse self = new ImportServiceDataResponse(); return TeaModel.build(map, self); } public ImportServiceDataResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public ImportServiceDataResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public ImportServiceDataResponse setBody(ImportServiceDataResponseBody body) { this.body = body; return this; } public ImportServiceDataResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/ImportServiceDataResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class ImportServiceDataResponseBody extends TeaModel { @NameInMap("Code") public Integer code; @NameInMap("Data") public Long data; @NameInMap("Msg") public String msg; @NameInMap("RequestId") public String requestId; @NameInMap("Success") public Boolean success; public static ImportServiceDataResponseBody build(java.util.Map<String, ?> map) throws Exception { ImportServiceDataResponseBody self = new ImportServiceDataResponseBody(); return TeaModel.build(map, self); } public ImportServiceDataResponseBody setCode(Integer code) { this.code = code; return this; } public Integer getCode() { return this.code; } public ImportServiceDataResponseBody setData(Long data) { this.data = data; return this; } public Long getData() { return this.data; } public ImportServiceDataResponseBody setMsg(String msg) { this.msg = msg; return this; } public String getMsg() { return this.msg; } public ImportServiceDataResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public ImportServiceDataResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/ImportServiceDataShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class ImportServiceDataShrinkRequest extends TeaModel { @NameInMap("Partition") public String partitionShrink; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceId") public Long serviceId; @NameInMap("SubPath") public String subPath; @NameInMap("Url") public String url; public static ImportServiceDataShrinkRequest build(java.util.Map<String, ?> map) throws Exception { ImportServiceDataShrinkRequest self = new ImportServiceDataShrinkRequest(); return TeaModel.build(map, self); } public ImportServiceDataShrinkRequest setPartitionShrink(String partitionShrink) { this.partitionShrink = partitionShrink; return this; } public String getPartitionShrink() { return this.partitionShrink; } public ImportServiceDataShrinkRequest setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } public ImportServiceDataShrinkRequest setSubPath(String subPath) { this.subPath = subPath; return this; } public String getSubPath() { return this.subPath; } public ImportServiceDataShrinkRequest setUrl(String url) { this.url = url; return this; } public String getUrl() { return this.url; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/ImportServiceDataV2Request.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class ImportServiceDataV2Request extends TeaModel { @NameInMap("DataType") public String dataType; @NameInMap("Documents") public java.util.List<ImportServiceDataV2RequestDocuments> documents; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceId") public Long serviceId; public static ImportServiceDataV2Request build(java.util.Map<String, ?> map) throws Exception { ImportServiceDataV2Request self = new ImportServiceDataV2Request(); return TeaModel.build(map, self); } public ImportServiceDataV2Request setDataType(String dataType) { this.dataType = dataType; return this; } public String getDataType() { return this.dataType; } public ImportServiceDataV2Request setDocuments(java.util.List<ImportServiceDataV2RequestDocuments> documents) { this.documents = documents; return this; } public java.util.List<ImportServiceDataV2RequestDocuments> getDocuments() { return this.documents; } public ImportServiceDataV2Request setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } public static class ImportServiceDataV2RequestDocuments extends TeaModel { @NameInMap("BizParams") public java.util.Map<String, String> bizParams; @NameInMap("DocId") public String docId; @NameInMap("FileExtension") public String fileExtension; @NameInMap("FileName") public String fileName; @NameInMap("FilePath") public String filePath; @NameInMap("Version") public String version; public static ImportServiceDataV2RequestDocuments build(java.util.Map<String, ?> map) throws Exception { ImportServiceDataV2RequestDocuments self = new ImportServiceDataV2RequestDocuments(); return TeaModel.build(map, self); } public ImportServiceDataV2RequestDocuments setBizParams(java.util.Map<String, String> bizParams) { this.bizParams = bizParams; return this; } public java.util.Map<String, String> getBizParams() { return this.bizParams; } public ImportServiceDataV2RequestDocuments setDocId(String docId) { this.docId = docId; return this; } public String getDocId() { return this.docId; } public ImportServiceDataV2RequestDocuments setFileExtension(String fileExtension) { this.fileExtension = fileExtension; return this; } public String getFileExtension() { return this.fileExtension; } public ImportServiceDataV2RequestDocuments setFileName(String fileName) { this.fileName = fileName; return this; } public String getFileName() { return this.fileName; } public ImportServiceDataV2RequestDocuments setFilePath(String filePath) { this.filePath = filePath; return this; } public String getFilePath() { return this.filePath; } public ImportServiceDataV2RequestDocuments setVersion(String version) { this.version = version; return this; } public String getVersion() { return this.version; } } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/ImportServiceDataV2Response.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class ImportServiceDataV2Response extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public ImportServiceDataV2ResponseBody body; public static ImportServiceDataV2Response build(java.util.Map<String, ?> map) throws Exception { ImportServiceDataV2Response self = new ImportServiceDataV2Response(); return TeaModel.build(map, self); } public ImportServiceDataV2Response setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public ImportServiceDataV2Response setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public ImportServiceDataV2Response setBody(ImportServiceDataV2ResponseBody body) { this.body = body; return this; } public ImportServiceDataV2ResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/ImportServiceDataV2ResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class ImportServiceDataV2ResponseBody extends TeaModel { @NameInMap("Code") public Integer code; @NameInMap("Data") public Long data; @NameInMap("Msg") public String msg; @NameInMap("RequestId") public String requestId; @NameInMap("Success") public Boolean success; public static ImportServiceDataV2ResponseBody build(java.util.Map<String, ?> map) throws Exception { ImportServiceDataV2ResponseBody self = new ImportServiceDataV2ResponseBody(); return TeaModel.build(map, self); } public ImportServiceDataV2ResponseBody setCode(Integer code) { this.code = code; return this; } public Integer getCode() { return this.code; } public ImportServiceDataV2ResponseBody setData(Long data) { this.data = data; return this; } public Long getData() { return this.data; } public ImportServiceDataV2ResponseBody setMsg(String msg) { this.msg = msg; return this; } public String getMsg() { return this.msg; } public ImportServiceDataV2ResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public ImportServiceDataV2ResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/ImportServiceDataV2ShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class ImportServiceDataV2ShrinkRequest extends TeaModel { @NameInMap("DataType") public String dataType; @NameInMap("Documents") public String documentsShrink; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceId") public Long serviceId; public static ImportServiceDataV2ShrinkRequest build(java.util.Map<String, ?> map) throws Exception { ImportServiceDataV2ShrinkRequest self = new ImportServiceDataV2ShrinkRequest(); return TeaModel.build(map, self); } public ImportServiceDataV2ShrinkRequest setDataType(String dataType) { this.dataType = dataType; return this; } public String getDataType() { return this.dataType; } public ImportServiceDataV2ShrinkRequest setDocumentsShrink(String documentsShrink) { this.documentsShrink = documentsShrink; return this; } public String getDocumentsShrink() { return this.documentsShrink; } public ImportServiceDataV2ShrinkRequest setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/InsertCustomRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class InsertCustomRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("ApiId") public Integer apiId; @NameInMap("CustomFileName") public String customFileName; @NameInMap("CustomUrl") public String customUrl; @NameInMap("RegFileName") public String regFileName; @NameInMap("RegUrl") public String regUrl; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceCode") public String serviceCode; public static InsertCustomRequest build(java.util.Map<String, ?> map) throws Exception { InsertCustomRequest self = new InsertCustomRequest(); return TeaModel.build(map, self); } public InsertCustomRequest setApiId(Integer apiId) { this.apiId = apiId; return this; } public Integer getApiId() { return this.apiId; } public InsertCustomRequest setCustomFileName(String customFileName) { this.customFileName = customFileName; return this; } public String getCustomFileName() { return this.customFileName; } public InsertCustomRequest setCustomUrl(String customUrl) { this.customUrl = customUrl; return this; } public String getCustomUrl() { return this.customUrl; } public InsertCustomRequest setRegFileName(String regFileName) { this.regFileName = regFileName; return this; } public String getRegFileName() { return this.regFileName; } public InsertCustomRequest setRegUrl(String regUrl) { this.regUrl = regUrl; return this; } public String getRegUrl() { return this.regUrl; } public InsertCustomRequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/InsertCustomResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class InsertCustomResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public InsertCustomResponseBody body; public static InsertCustomResponse build(java.util.Map<String, ?> map) throws Exception { InsertCustomResponse self = new InsertCustomResponse(); return TeaModel.build(map, self); } public InsertCustomResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public InsertCustomResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public InsertCustomResponse setBody(InsertCustomResponseBody body) { this.body = body; return this; } public InsertCustomResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/InsertCustomResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class InsertCustomResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static InsertCustomResponseBody build(java.util.Map<String, ?> map) throws Exception { InsertCustomResponseBody self = new InsertCustomResponseBody(); return TeaModel.build(map, self); } public InsertCustomResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public InsertCustomResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/OpenAlinlpServiceResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class OpenAlinlpServiceResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public OpenAlinlpServiceResponseBody body; public static OpenAlinlpServiceResponse build(java.util.Map<String, ?> map) throws Exception { OpenAlinlpServiceResponse self = new OpenAlinlpServiceResponse(); return TeaModel.build(map, self); } public OpenAlinlpServiceResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public OpenAlinlpServiceResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public OpenAlinlpServiceResponse setBody(OpenAlinlpServiceResponseBody body) { this.body = body; return this; } public OpenAlinlpServiceResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/OpenAlinlpServiceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class OpenAlinlpServiceResponseBody extends TeaModel { @NameInMap("OrderId") public String orderId; @NameInMap("RequestId") public String requestId; public static OpenAlinlpServiceResponseBody build(java.util.Map<String, ?> map) throws Exception { OpenAlinlpServiceResponseBody self = new OpenAlinlpServiceResponseBody(); return TeaModel.build(map, self); } public OpenAlinlpServiceResponseBody setOrderId(String orderId) { this.orderId = orderId; return this; } public String getOrderId() { return this.orderId; } public OpenAlinlpServiceResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostISConvRewriterRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostISConvRewriterRequest extends TeaModel { @NameInMap("Algorithm") public String algorithm; @NameInMap("Debug") public Boolean debug; @NameInMap("Input") public java.util.Map<String, ?> input; @NameInMap("Model") public String model; @NameInMap("Parameters") public java.util.Map<String, ?> parameters; public static PostISConvRewriterRequest build(java.util.Map<String, ?> map) throws Exception { PostISConvRewriterRequest self = new PostISConvRewriterRequest(); return TeaModel.build(map, self); } public PostISConvRewriterRequest setAlgorithm(String algorithm) { this.algorithm = algorithm; return this; } public String getAlgorithm() { return this.algorithm; } public PostISConvRewriterRequest setDebug(Boolean debug) { this.debug = debug; return this; } public Boolean getDebug() { return this.debug; } public PostISConvRewriterRequest setInput(java.util.Map<String, ?> input) { this.input = input; return this; } public java.util.Map<String, ?> getInput() { return this.input; } public PostISConvRewriterRequest setModel(String model) { this.model = model; return this; } public String getModel() { return this.model; } public PostISConvRewriterRequest setParameters(java.util.Map<String, ?> parameters) { this.parameters = parameters; return this; } public java.util.Map<String, ?> getParameters() { return this.parameters; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostISConvRewriterResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostISConvRewriterResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public PostISConvRewriterResponseBody body; public static PostISConvRewriterResponse build(java.util.Map<String, ?> map) throws Exception { PostISConvRewriterResponse self = new PostISConvRewriterResponse(); return TeaModel.build(map, self); } public PostISConvRewriterResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public PostISConvRewriterResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public PostISConvRewriterResponse setBody(PostISConvRewriterResponseBody body) { this.body = body; return this; } public PostISConvRewriterResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostISConvRewriterResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostISConvRewriterResponseBody extends TeaModel { @NameInMap("Data") public java.util.Map<String, ?> data; @NameInMap("DebugInfo") public java.util.Map<String, ?> debugInfo; @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; @NameInMap("Status") public Integer status; public static PostISConvRewriterResponseBody build(java.util.Map<String, ?> map) throws Exception { PostISConvRewriterResponseBody self = new PostISConvRewriterResponseBody(); return TeaModel.build(map, self); } public PostISConvRewriterResponseBody setData(java.util.Map<String, ?> data) { this.data = data; return this; } public java.util.Map<String, ?> getData() { return this.data; } public PostISConvRewriterResponseBody setDebugInfo(java.util.Map<String, ?> debugInfo) { this.debugInfo = debugInfo; return this; } public java.util.Map<String, ?> getDebugInfo() { return this.debugInfo; } public PostISConvRewriterResponseBody setMessage(String message) { this.message = message; return this; } public String getMessage() { return this.message; } public PostISConvRewriterResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public PostISConvRewriterResponseBody setStatus(Integer status) { this.status = status; return this; } public Integer getStatus() { return this.status; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostISConvRewriterShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostISConvRewriterShrinkRequest extends TeaModel { @NameInMap("Algorithm") public String algorithm; @NameInMap("Debug") public Boolean debug; @NameInMap("Input") public String inputShrink; @NameInMap("Model") public String model; @NameInMap("Parameters") public String parametersShrink; public static PostISConvRewriterShrinkRequest build(java.util.Map<String, ?> map) throws Exception { PostISConvRewriterShrinkRequest self = new PostISConvRewriterShrinkRequest(); return TeaModel.build(map, self); } public PostISConvRewriterShrinkRequest setAlgorithm(String algorithm) { this.algorithm = algorithm; return this; } public String getAlgorithm() { return this.algorithm; } public PostISConvRewriterShrinkRequest setDebug(Boolean debug) { this.debug = debug; return this; } public Boolean getDebug() { return this.debug; } public PostISConvRewriterShrinkRequest setInputShrink(String inputShrink) { this.inputShrink = inputShrink; return this; } public String getInputShrink() { return this.inputShrink; } public PostISConvRewriterShrinkRequest setModel(String model) { this.model = model; return this; } public String getModel() { return this.model; } public PostISConvRewriterShrinkRequest setParametersShrink(String parametersShrink) { this.parametersShrink = parametersShrink; return this; } public String getParametersShrink() { return this.parametersShrink; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostISRerankRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostISRerankRequest extends TeaModel { @NameInMap("Algorithm") public String algorithm; @NameInMap("Debug") public Boolean debug; @NameInMap("Input") public java.util.Map<String, ?> input; @NameInMap("Model") public String model; @NameInMap("Parameters") public java.util.Map<String, ?> parameters; public static PostISRerankRequest build(java.util.Map<String, ?> map) throws Exception { PostISRerankRequest self = new PostISRerankRequest(); return TeaModel.build(map, self); } public PostISRerankRequest setAlgorithm(String algorithm) { this.algorithm = algorithm; return this; } public String getAlgorithm() { return this.algorithm; } public PostISRerankRequest setDebug(Boolean debug) { this.debug = debug; return this; } public Boolean getDebug() { return this.debug; } public PostISRerankRequest setInput(java.util.Map<String, ?> input) { this.input = input; return this; } public java.util.Map<String, ?> getInput() { return this.input; } public PostISRerankRequest setModel(String model) { this.model = model; return this; } public String getModel() { return this.model; } public PostISRerankRequest setParameters(java.util.Map<String, ?> parameters) { this.parameters = parameters; return this; } public java.util.Map<String, ?> getParameters() { return this.parameters; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostISRerankResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostISRerankResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public PostISRerankResponseBody body; public static PostISRerankResponse build(java.util.Map<String, ?> map) throws Exception { PostISRerankResponse self = new PostISRerankResponse(); return TeaModel.build(map, self); } public PostISRerankResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public PostISRerankResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public PostISRerankResponse setBody(PostISRerankResponseBody body) { this.body = body; return this; } public PostISRerankResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostISRerankResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostISRerankResponseBody extends TeaModel { @NameInMap("Data") public java.util.Map<String, ?> data; @NameInMap("DebugInfo") public java.util.Map<String, ?> debugInfo; @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; @NameInMap("Status") public Integer status; public static PostISRerankResponseBody build(java.util.Map<String, ?> map) throws Exception { PostISRerankResponseBody self = new PostISRerankResponseBody(); return TeaModel.build(map, self); } public PostISRerankResponseBody setData(java.util.Map<String, ?> data) { this.data = data; return this; } public java.util.Map<String, ?> getData() { return this.data; } public PostISRerankResponseBody setDebugInfo(java.util.Map<String, ?> debugInfo) { this.debugInfo = debugInfo; return this; } public java.util.Map<String, ?> getDebugInfo() { return this.debugInfo; } public PostISRerankResponseBody setMessage(String message) { this.message = message; return this; } public String getMessage() { return this.message; } public PostISRerankResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public PostISRerankResponseBody setStatus(Integer status) { this.status = status; return this; } public Integer getStatus() { return this.status; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostISRerankShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostISRerankShrinkRequest extends TeaModel { @NameInMap("Algorithm") public String algorithm; @NameInMap("Debug") public Boolean debug; @NameInMap("Input") public String inputShrink; @NameInMap("Model") public String model; @NameInMap("Parameters") public String parametersShrink; public static PostISRerankShrinkRequest build(java.util.Map<String, ?> map) throws Exception { PostISRerankShrinkRequest self = new PostISRerankShrinkRequest(); return TeaModel.build(map, self); } public PostISRerankShrinkRequest setAlgorithm(String algorithm) { this.algorithm = algorithm; return this; } public String getAlgorithm() { return this.algorithm; } public PostISRerankShrinkRequest setDebug(Boolean debug) { this.debug = debug; return this; } public Boolean getDebug() { return this.debug; } public PostISRerankShrinkRequest setInputShrink(String inputShrink) { this.inputShrink = inputShrink; return this; } public String getInputShrink() { return this.inputShrink; } public PostISRerankShrinkRequest setModel(String model) { this.model = model; return this; } public String getModel() { return this.model; } public PostISRerankShrinkRequest setParametersShrink(String parametersShrink) { this.parametersShrink = parametersShrink; return this; } public String getParametersShrink() { return this.parametersShrink; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostISRetrieveRouterRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostISRetrieveRouterRequest extends TeaModel { @NameInMap("Algorithm") public String algorithm; @NameInMap("Debug") public Boolean debug; @NameInMap("Input") public java.util.Map<String, ?> input; @NameInMap("Model") public String model; @NameInMap("Parameters") public java.util.Map<String, ?> parameters; public static PostISRetrieveRouterRequest build(java.util.Map<String, ?> map) throws Exception { PostISRetrieveRouterRequest self = new PostISRetrieveRouterRequest(); return TeaModel.build(map, self); } public PostISRetrieveRouterRequest setAlgorithm(String algorithm) { this.algorithm = algorithm; return this; } public String getAlgorithm() { return this.algorithm; } public PostISRetrieveRouterRequest setDebug(Boolean debug) { this.debug = debug; return this; } public Boolean getDebug() { return this.debug; } public PostISRetrieveRouterRequest setInput(java.util.Map<String, ?> input) { this.input = input; return this; } public java.util.Map<String, ?> getInput() { return this.input; } public PostISRetrieveRouterRequest setModel(String model) { this.model = model; return this; } public String getModel() { return this.model; } public PostISRetrieveRouterRequest setParameters(java.util.Map<String, ?> parameters) { this.parameters = parameters; return this; } public java.util.Map<String, ?> getParameters() { return this.parameters; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostISRetrieveRouterResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostISRetrieveRouterResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public PostISRetrieveRouterResponseBody body; public static PostISRetrieveRouterResponse build(java.util.Map<String, ?> map) throws Exception { PostISRetrieveRouterResponse self = new PostISRetrieveRouterResponse(); return TeaModel.build(map, self); } public PostISRetrieveRouterResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public PostISRetrieveRouterResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public PostISRetrieveRouterResponse setBody(PostISRetrieveRouterResponseBody body) { this.body = body; return this; } public PostISRetrieveRouterResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostISRetrieveRouterResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostISRetrieveRouterResponseBody extends TeaModel { @NameInMap("Data") public java.util.Map<String, ?> data; @NameInMap("DebugInfo") public java.util.Map<String, ?> debugInfo; @NameInMap("Message") public String message; @NameInMap("RequestId") public String requestId; @NameInMap("Status") public Integer status; public static PostISRetrieveRouterResponseBody build(java.util.Map<String, ?> map) throws Exception { PostISRetrieveRouterResponseBody self = new PostISRetrieveRouterResponseBody(); return TeaModel.build(map, self); } public PostISRetrieveRouterResponseBody setData(java.util.Map<String, ?> data) { this.data = data; return this; } public java.util.Map<String, ?> getData() { return this.data; } public PostISRetrieveRouterResponseBody setDebugInfo(java.util.Map<String, ?> debugInfo) { this.debugInfo = debugInfo; return this; } public java.util.Map<String, ?> getDebugInfo() { return this.debugInfo; } public PostISRetrieveRouterResponseBody setMessage(String message) { this.message = message; return this; } public String getMessage() { return this.message; } public PostISRetrieveRouterResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public PostISRetrieveRouterResponseBody setStatus(Integer status) { this.status = status; return this; } public Integer getStatus() { return this.status; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostISRetrieveRouterShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostISRetrieveRouterShrinkRequest extends TeaModel { @NameInMap("Algorithm") public String algorithm; @NameInMap("Debug") public Boolean debug; @NameInMap("Input") public String inputShrink; @NameInMap("Model") public String model; @NameInMap("Parameters") public String parametersShrink; public static PostISRetrieveRouterShrinkRequest build(java.util.Map<String, ?> map) throws Exception { PostISRetrieveRouterShrinkRequest self = new PostISRetrieveRouterShrinkRequest(); return TeaModel.build(map, self); } public PostISRetrieveRouterShrinkRequest setAlgorithm(String algorithm) { this.algorithm = algorithm; return this; } public String getAlgorithm() { return this.algorithm; } public PostISRetrieveRouterShrinkRequest setDebug(Boolean debug) { this.debug = debug; return this; } public Boolean getDebug() { return this.debug; } public PostISRetrieveRouterShrinkRequest setInputShrink(String inputShrink) { this.inputShrink = inputShrink; return this; } public String getInputShrink() { return this.inputShrink; } public PostISRetrieveRouterShrinkRequest setModel(String model) { this.model = model; return this; } public String getModel() { return this.model; } public PostISRetrieveRouterShrinkRequest setParametersShrink(String parametersShrink) { this.parametersShrink = parametersShrink; return this; } public String getParametersShrink() { return this.parametersShrink; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSConvSearchTokenGeneratedResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSConvSearchTokenGeneratedResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public PostMSConvSearchTokenGeneratedResponseBody body; public static PostMSConvSearchTokenGeneratedResponse build(java.util.Map<String, ?> map) throws Exception { PostMSConvSearchTokenGeneratedResponse self = new PostMSConvSearchTokenGeneratedResponse(); return TeaModel.build(map, self); } public PostMSConvSearchTokenGeneratedResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public PostMSConvSearchTokenGeneratedResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public PostMSConvSearchTokenGeneratedResponse setBody(PostMSConvSearchTokenGeneratedResponseBody body) { this.body = body; return this; } public PostMSConvSearchTokenGeneratedResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSConvSearchTokenGeneratedResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSConvSearchTokenGeneratedResponseBody extends TeaModel { @NameInMap("Code") public Integer code; @NameInMap("Data") public String data; @NameInMap("HttpStatusCode") public Integer httpStatusCode; @NameInMap("Msg") public String msg; @NameInMap("RequestId") public String requestId; @NameInMap("Success") public Boolean success; public static PostMSConvSearchTokenGeneratedResponseBody build(java.util.Map<String, ?> map) throws Exception { PostMSConvSearchTokenGeneratedResponseBody self = new PostMSConvSearchTokenGeneratedResponseBody(); return TeaModel.build(map, self); } public PostMSConvSearchTokenGeneratedResponseBody setCode(Integer code) { this.code = code; return this; } public Integer getCode() { return this.code; } public PostMSConvSearchTokenGeneratedResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public PostMSConvSearchTokenGeneratedResponseBody setHttpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } public Integer getHttpStatusCode() { return this.httpStatusCode; } public PostMSConvSearchTokenGeneratedResponseBody setMsg(String msg) { this.msg = msg; return this; } public String getMsg() { return this.msg; } public PostMSConvSearchTokenGeneratedResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public PostMSConvSearchTokenGeneratedResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSDataProcessingCountRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSDataProcessingCountRequest extends TeaModel { @NameInMap("DataIds") public java.util.List<String> dataIds; @NameInMap("DataImportId") public Long dataImportId; @NameInMap("ServiceId") public Long serviceId; @NameInMap("X-DashScope-OpenAPISource") public String xDashScopeOpenAPISource; public static PostMSDataProcessingCountRequest build(java.util.Map<String, ?> map) throws Exception { PostMSDataProcessingCountRequest self = new PostMSDataProcessingCountRequest(); return TeaModel.build(map, self); } public PostMSDataProcessingCountRequest setDataIds(java.util.List<String> dataIds) { this.dataIds = dataIds; return this; } public java.util.List<String> getDataIds() { return this.dataIds; } public PostMSDataProcessingCountRequest setDataImportId(Long dataImportId) { this.dataImportId = dataImportId; return this; } public Long getDataImportId() { return this.dataImportId; } public PostMSDataProcessingCountRequest setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } public PostMSDataProcessingCountRequest setXDashScopeOpenAPISource(String xDashScopeOpenAPISource) { this.xDashScopeOpenAPISource = xDashScopeOpenAPISource; return this; } public String getXDashScopeOpenAPISource() { return this.xDashScopeOpenAPISource; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSDataProcessingCountResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSDataProcessingCountResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public PostMSDataProcessingCountResponseBody body; public static PostMSDataProcessingCountResponse build(java.util.Map<String, ?> map) throws Exception { PostMSDataProcessingCountResponse self = new PostMSDataProcessingCountResponse(); return TeaModel.build(map, self); } public PostMSDataProcessingCountResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public PostMSDataProcessingCountResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public PostMSDataProcessingCountResponse setBody(PostMSDataProcessingCountResponseBody body) { this.body = body; return this; } public PostMSDataProcessingCountResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSDataProcessingCountResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSDataProcessingCountResponseBody extends TeaModel { @NameInMap("Code") public Integer code; @NameInMap("Data") public PostMSDataProcessingCountResponseBodyData data; @NameInMap("HttpStatusCode") public Integer httpStatusCode; @NameInMap("Msg") public String msg; @NameInMap("RequestId") public String requestId; @NameInMap("Success") public Boolean success; public static PostMSDataProcessingCountResponseBody build(java.util.Map<String, ?> map) throws Exception { PostMSDataProcessingCountResponseBody self = new PostMSDataProcessingCountResponseBody(); return TeaModel.build(map, self); } public PostMSDataProcessingCountResponseBody setCode(Integer code) { this.code = code; return this; } public Integer getCode() { return this.code; } public PostMSDataProcessingCountResponseBody setData(PostMSDataProcessingCountResponseBodyData data) { this.data = data; return this; } public PostMSDataProcessingCountResponseBodyData getData() { return this.data; } public PostMSDataProcessingCountResponseBody setHttpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } public Integer getHttpStatusCode() { return this.httpStatusCode; } public PostMSDataProcessingCountResponseBody setMsg(String msg) { this.msg = msg; return this; } public String getMsg() { return this.msg; } public PostMSDataProcessingCountResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public PostMSDataProcessingCountResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } public static class PostMSDataProcessingCountResponseBodyDataDataProcessedStatusesErrorDataList extends TeaModel { @NameInMap("Count") public Integer count; @NameInMap("ErrorCode") public String errorCode; @NameInMap("OpType") public String opType; public static PostMSDataProcessingCountResponseBodyDataDataProcessedStatusesErrorDataList build(java.util.Map<String, ?> map) throws Exception { PostMSDataProcessingCountResponseBodyDataDataProcessedStatusesErrorDataList self = new PostMSDataProcessingCountResponseBodyDataDataProcessedStatusesErrorDataList(); return TeaModel.build(map, self); } public PostMSDataProcessingCountResponseBodyDataDataProcessedStatusesErrorDataList setCount(Integer count) { this.count = count; return this; } public Integer getCount() { return this.count; } public PostMSDataProcessingCountResponseBodyDataDataProcessedStatusesErrorDataList setErrorCode(String errorCode) { this.errorCode = errorCode; return this; } public String getErrorCode() { return this.errorCode; } public PostMSDataProcessingCountResponseBodyDataDataProcessedStatusesErrorDataList setOpType(String opType) { this.opType = opType; return this; } public String getOpType() { return this.opType; } } public static class PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses extends TeaModel { @NameInMap("ChunkNum") public String chunkNum; @NameInMap("DataId") public String dataId; @NameInMap("ErrorDataList") public java.util.List<PostMSDataProcessingCountResponseBodyDataDataProcessedStatusesErrorDataList> errorDataList; @NameInMap("OpStatus") public java.util.Map<String, Integer> opStatus; @NameInMap("Status") public String status; @NameInMap("VersionValue") public String versionValue; public static PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses build(java.util.Map<String, ?> map) throws Exception { PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses self = new PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses(); return TeaModel.build(map, self); } public PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses setChunkNum(String chunkNum) { this.chunkNum = chunkNum; return this; } public String getChunkNum() { return this.chunkNum; } public PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses setDataId(String dataId) { this.dataId = dataId; return this; } public String getDataId() { return this.dataId; } public PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses setErrorDataList(java.util.List<PostMSDataProcessingCountResponseBodyDataDataProcessedStatusesErrorDataList> errorDataList) { this.errorDataList = errorDataList; return this; } public java.util.List<PostMSDataProcessingCountResponseBodyDataDataProcessedStatusesErrorDataList> getErrorDataList() { return this.errorDataList; } public PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses setOpStatus(java.util.Map<String, Integer> opStatus) { this.opStatus = opStatus; return this; } public java.util.Map<String, Integer> getOpStatus() { return this.opStatus; } public PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses setStatus(String status) { this.status = status; return this; } public String getStatus() { return this.status; } public PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses setVersionValue(String versionValue) { this.versionValue = versionValue; return this; } public String getVersionValue() { return this.versionValue; } } public static class PostMSDataProcessingCountResponseBodyData extends TeaModel { @NameInMap("DataProcessedStatuses") public java.util.List<PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses> dataProcessedStatuses; @NameInMap("Status") public String status; public static PostMSDataProcessingCountResponseBodyData build(java.util.Map<String, ?> map) throws Exception { PostMSDataProcessingCountResponseBodyData self = new PostMSDataProcessingCountResponseBodyData(); return TeaModel.build(map, self); } public PostMSDataProcessingCountResponseBodyData setDataProcessedStatuses(java.util.List<PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses> dataProcessedStatuses) { this.dataProcessedStatuses = dataProcessedStatuses; return this; } public java.util.List<PostMSDataProcessingCountResponseBodyDataDataProcessedStatuses> getDataProcessedStatuses() { return this.dataProcessedStatuses; } public PostMSDataProcessingCountResponseBodyData setStatus(String status) { this.status = status; return this; } public String getStatus() { return this.status; } } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSDataProcessingCountShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSDataProcessingCountShrinkRequest extends TeaModel { @NameInMap("DataIds") public String dataIdsShrink; @NameInMap("DataImportId") public Long dataImportId; @NameInMap("ServiceId") public Long serviceId; @NameInMap("X-DashScope-OpenAPISource") public String xDashScopeOpenAPISource; public static PostMSDataProcessingCountShrinkRequest build(java.util.Map<String, ?> map) throws Exception { PostMSDataProcessingCountShrinkRequest self = new PostMSDataProcessingCountShrinkRequest(); return TeaModel.build(map, self); } public PostMSDataProcessingCountShrinkRequest setDataIdsShrink(String dataIdsShrink) { this.dataIdsShrink = dataIdsShrink; return this; } public String getDataIdsShrink() { return this.dataIdsShrink; } public PostMSDataProcessingCountShrinkRequest setDataImportId(Long dataImportId) { this.dataImportId = dataImportId; return this; } public Long getDataImportId() { return this.dataImportId; } public PostMSDataProcessingCountShrinkRequest setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } public PostMSDataProcessingCountShrinkRequest setXDashScopeOpenAPISource(String xDashScopeOpenAPISource) { this.xDashScopeOpenAPISource = xDashScopeOpenAPISource; return this; } public String getXDashScopeOpenAPISource() { return this.xDashScopeOpenAPISource; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSSearchEnhanceRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSSearchEnhanceRequest extends TeaModel { @NameInMap("Body") public String body; @NameInMap("CustomConfigInfo") public java.util.Map<String, ?> customConfigInfo; @NameInMap("Debug") public Boolean debug; @NameInMap("Fields") public java.util.List<String> fields; @NameInMap("Filters") public String filters; @NameInMap("MinScore") public Double minScore; @NameInMap("Page") public Integer page; @NameInMap("Queries") public String queries; @NameInMap("RankModelInfo") public java.util.Map<String, ?> rankModelInfo; @NameInMap("Rows") public Integer rows; @NameInMap("ServiceId") public Long serviceId; @NameInMap("Sort") public java.util.List<String> sort; @NameInMap("Type") public String type; @NameInMap("Uq") public String uq; @NameInMap("X-DashScope-OpenAPISource") public String xDashScopeOpenAPISource; public static PostMSSearchEnhanceRequest build(java.util.Map<String, ?> map) throws Exception { PostMSSearchEnhanceRequest self = new PostMSSearchEnhanceRequest(); return TeaModel.build(map, self); } public PostMSSearchEnhanceRequest setBody(String body) { this.body = body; return this; } public String getBody() { return this.body; } public PostMSSearchEnhanceRequest setCustomConfigInfo(java.util.Map<String, ?> customConfigInfo) { this.customConfigInfo = customConfigInfo; return this; } public java.util.Map<String, ?> getCustomConfigInfo() { return this.customConfigInfo; } public PostMSSearchEnhanceRequest setDebug(Boolean debug) { this.debug = debug; return this; } public Boolean getDebug() { return this.debug; } public PostMSSearchEnhanceRequest setFields(java.util.List<String> fields) { this.fields = fields; return this; } public java.util.List<String> getFields() { return this.fields; } public PostMSSearchEnhanceRequest setFilters(String filters) { this.filters = filters; return this; } public String getFilters() { return this.filters; } public PostMSSearchEnhanceRequest setMinScore(Double minScore) { this.minScore = minScore; return this; } public Double getMinScore() { return this.minScore; } public PostMSSearchEnhanceRequest setPage(Integer page) { this.page = page; return this; } public Integer getPage() { return this.page; } public PostMSSearchEnhanceRequest setQueries(String queries) { this.queries = queries; return this; } public String getQueries() { return this.queries; } public PostMSSearchEnhanceRequest setRankModelInfo(java.util.Map<String, ?> rankModelInfo) { this.rankModelInfo = rankModelInfo; return this; } public java.util.Map<String, ?> getRankModelInfo() { return this.rankModelInfo; } public PostMSSearchEnhanceRequest setRows(Integer rows) { this.rows = rows; return this; } public Integer getRows() { return this.rows; } public PostMSSearchEnhanceRequest setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } public PostMSSearchEnhanceRequest setSort(java.util.List<String> sort) { this.sort = sort; return this; } public java.util.List<String> getSort() { return this.sort; } public PostMSSearchEnhanceRequest setType(String type) { this.type = type; return this; } public String getType() { return this.type; } public PostMSSearchEnhanceRequest setUq(String uq) { this.uq = uq; return this; } public String getUq() { return this.uq; } public PostMSSearchEnhanceRequest setXDashScopeOpenAPISource(String xDashScopeOpenAPISource) { this.xDashScopeOpenAPISource = xDashScopeOpenAPISource; return this; } public String getXDashScopeOpenAPISource() { return this.xDashScopeOpenAPISource; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSSearchEnhanceResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSSearchEnhanceResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public PostMSSearchEnhanceResponseBody body; public static PostMSSearchEnhanceResponse build(java.util.Map<String, ?> map) throws Exception { PostMSSearchEnhanceResponse self = new PostMSSearchEnhanceResponse(); return TeaModel.build(map, self); } public PostMSSearchEnhanceResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public PostMSSearchEnhanceResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public PostMSSearchEnhanceResponse setBody(PostMSSearchEnhanceResponseBody body) { this.body = body; return this; } public PostMSSearchEnhanceResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSSearchEnhanceResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSSearchEnhanceResponseBody extends TeaModel { @NameInMap("Code") public Integer code; @NameInMap("Data") public Object data; @NameInMap("HttpStatusCode") public Integer httpStatusCode; @NameInMap("Msg") public String msg; /** * <p>Id of the request</p> */ @NameInMap("RequestId") public String requestId; @NameInMap("Success") public Boolean success; public static PostMSSearchEnhanceResponseBody build(java.util.Map<String, ?> map) throws Exception { PostMSSearchEnhanceResponseBody self = new PostMSSearchEnhanceResponseBody(); return TeaModel.build(map, self); } public PostMSSearchEnhanceResponseBody setCode(Integer code) { this.code = code; return this; } public Integer getCode() { return this.code; } public PostMSSearchEnhanceResponseBody setData(Object data) { this.data = data; return this; } public Object getData() { return this.data; } public PostMSSearchEnhanceResponseBody setHttpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } public Integer getHttpStatusCode() { return this.httpStatusCode; } public PostMSSearchEnhanceResponseBody setMsg(String msg) { this.msg = msg; return this; } public String getMsg() { return this.msg; } public PostMSSearchEnhanceResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public PostMSSearchEnhanceResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSSearchEnhanceShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSSearchEnhanceShrinkRequest extends TeaModel { @NameInMap("Body") public String body; @NameInMap("CustomConfigInfo") public String customConfigInfoShrink; @NameInMap("Debug") public Boolean debug; @NameInMap("Fields") public String fieldsShrink; @NameInMap("Filters") public String filters; @NameInMap("MinScore") public Double minScore; @NameInMap("Page") public Integer page; @NameInMap("Queries") public String queries; @NameInMap("RankModelInfo") public String rankModelInfoShrink; @NameInMap("Rows") public Integer rows; @NameInMap("ServiceId") public Long serviceId; @NameInMap("Sort") public String sortShrink; @NameInMap("Type") public String type; @NameInMap("Uq") public String uq; @NameInMap("X-DashScope-OpenAPISource") public String xDashScopeOpenAPISource; public static PostMSSearchEnhanceShrinkRequest build(java.util.Map<String, ?> map) throws Exception { PostMSSearchEnhanceShrinkRequest self = new PostMSSearchEnhanceShrinkRequest(); return TeaModel.build(map, self); } public PostMSSearchEnhanceShrinkRequest setBody(String body) { this.body = body; return this; } public String getBody() { return this.body; } public PostMSSearchEnhanceShrinkRequest setCustomConfigInfoShrink(String customConfigInfoShrink) { this.customConfigInfoShrink = customConfigInfoShrink; return this; } public String getCustomConfigInfoShrink() { return this.customConfigInfoShrink; } public PostMSSearchEnhanceShrinkRequest setDebug(Boolean debug) { this.debug = debug; return this; } public Boolean getDebug() { return this.debug; } public PostMSSearchEnhanceShrinkRequest setFieldsShrink(String fieldsShrink) { this.fieldsShrink = fieldsShrink; return this; } public String getFieldsShrink() { return this.fieldsShrink; } public PostMSSearchEnhanceShrinkRequest setFilters(String filters) { this.filters = filters; return this; } public String getFilters() { return this.filters; } public PostMSSearchEnhanceShrinkRequest setMinScore(Double minScore) { this.minScore = minScore; return this; } public Double getMinScore() { return this.minScore; } public PostMSSearchEnhanceShrinkRequest setPage(Integer page) { this.page = page; return this; } public Integer getPage() { return this.page; } public PostMSSearchEnhanceShrinkRequest setQueries(String queries) { this.queries = queries; return this; } public String getQueries() { return this.queries; } public PostMSSearchEnhanceShrinkRequest setRankModelInfoShrink(String rankModelInfoShrink) { this.rankModelInfoShrink = rankModelInfoShrink; return this; } public String getRankModelInfoShrink() { return this.rankModelInfoShrink; } public PostMSSearchEnhanceShrinkRequest setRows(Integer rows) { this.rows = rows; return this; } public Integer getRows() { return this.rows; } public PostMSSearchEnhanceShrinkRequest setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } public PostMSSearchEnhanceShrinkRequest setSortShrink(String sortShrink) { this.sortShrink = sortShrink; return this; } public String getSortShrink() { return this.sortShrink; } public PostMSSearchEnhanceShrinkRequest setType(String type) { this.type = type; return this; } public String getType() { return this.type; } public PostMSSearchEnhanceShrinkRequest setUq(String uq) { this.uq = uq; return this; } public String getUq() { return this.uq; } public PostMSSearchEnhanceShrinkRequest setXDashScopeOpenAPISource(String xDashScopeOpenAPISource) { this.xDashScopeOpenAPISource = xDashScopeOpenAPISource; return this; } public String getXDashScopeOpenAPISource() { return this.xDashScopeOpenAPISource; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSServiceDataImportRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSServiceDataImportRequest extends TeaModel { @NameInMap("DataType") public String dataType; @NameInMap("Documents") public java.util.List<PostMSServiceDataImportRequestDocuments> documents; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceId") public Long serviceId; public static PostMSServiceDataImportRequest build(java.util.Map<String, ?> map) throws Exception { PostMSServiceDataImportRequest self = new PostMSServiceDataImportRequest(); return TeaModel.build(map, self); } public PostMSServiceDataImportRequest setDataType(String dataType) { this.dataType = dataType; return this; } public String getDataType() { return this.dataType; } public PostMSServiceDataImportRequest setDocuments(java.util.List<PostMSServiceDataImportRequestDocuments> documents) { this.documents = documents; return this; } public java.util.List<PostMSServiceDataImportRequestDocuments> getDocuments() { return this.documents; } public PostMSServiceDataImportRequest setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } public static class PostMSServiceDataImportRequestDocuments extends TeaModel { @NameInMap("BizParams") public java.util.Map<String, ?> bizParams; @NameInMap("DocId") public String docId; @NameInMap("FileExtension") public String fileExtension; @NameInMap("FileName") public String fileName; @NameInMap("FilePath") public String filePath; @NameInMap("Version") public String version; public static PostMSServiceDataImportRequestDocuments build(java.util.Map<String, ?> map) throws Exception { PostMSServiceDataImportRequestDocuments self = new PostMSServiceDataImportRequestDocuments(); return TeaModel.build(map, self); } public PostMSServiceDataImportRequestDocuments setBizParams(java.util.Map<String, ?> bizParams) { this.bizParams = bizParams; return this; } public java.util.Map<String, ?> getBizParams() { return this.bizParams; } public PostMSServiceDataImportRequestDocuments setDocId(String docId) { this.docId = docId; return this; } public String getDocId() { return this.docId; } public PostMSServiceDataImportRequestDocuments setFileExtension(String fileExtension) { this.fileExtension = fileExtension; return this; } public String getFileExtension() { return this.fileExtension; } public PostMSServiceDataImportRequestDocuments setFileName(String fileName) { this.fileName = fileName; return this; } public String getFileName() { return this.fileName; } public PostMSServiceDataImportRequestDocuments setFilePath(String filePath) { this.filePath = filePath; return this; } public String getFilePath() { return this.filePath; } public PostMSServiceDataImportRequestDocuments setVersion(String version) { this.version = version; return this; } public String getVersion() { return this.version; } } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSServiceDataImportResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSServiceDataImportResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public PostMSServiceDataImportResponseBody body; public static PostMSServiceDataImportResponse build(java.util.Map<String, ?> map) throws Exception { PostMSServiceDataImportResponse self = new PostMSServiceDataImportResponse(); return TeaModel.build(map, self); } public PostMSServiceDataImportResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public PostMSServiceDataImportResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public PostMSServiceDataImportResponse setBody(PostMSServiceDataImportResponseBody body) { this.body = body; return this; } public PostMSServiceDataImportResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSServiceDataImportResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSServiceDataImportResponseBody extends TeaModel { @NameInMap("Code") public Integer code; @NameInMap("Data") public Long data; @NameInMap("Msg") public String msg; @NameInMap("RequestId") public String requestId; @NameInMap("Success") public Boolean success; public static PostMSServiceDataImportResponseBody build(java.util.Map<String, ?> map) throws Exception { PostMSServiceDataImportResponseBody self = new PostMSServiceDataImportResponseBody(); return TeaModel.build(map, self); } public PostMSServiceDataImportResponseBody setCode(Integer code) { this.code = code; return this; } public Integer getCode() { return this.code; } public PostMSServiceDataImportResponseBody setData(Long data) { this.data = data; return this; } public Long getData() { return this.data; } public PostMSServiceDataImportResponseBody setMsg(String msg) { this.msg = msg; return this; } public String getMsg() { return this.msg; } public PostMSServiceDataImportResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public PostMSServiceDataImportResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/PostMSServiceDataImportShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class PostMSServiceDataImportShrinkRequest extends TeaModel { @NameInMap("DataType") public String dataType; @NameInMap("Documents") public String documentsShrink; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceId") public Long serviceId; public static PostMSServiceDataImportShrinkRequest build(java.util.Map<String, ?> map) throws Exception { PostMSServiceDataImportShrinkRequest self = new PostMSServiceDataImportShrinkRequest(); return TeaModel.build(map, self); } public PostMSServiceDataImportShrinkRequest setDataType(String dataType) { this.dataType = dataType; return this; } public String getDataType() { return this.dataType; } public PostMSServiceDataImportShrinkRequest setDocumentsShrink(String documentsShrink) { this.documentsShrink = documentsShrink; return this; } public String getDocumentsShrink() { return this.documentsShrink; } public PostMSServiceDataImportShrinkRequest setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/RequestTableQAOnlineRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class RequestTableQAOnlineRequest extends TeaModel { @NameInMap("BotId") public String botId; @NameInMap("Params") public String params; @NameInMap("Question") public String question; @NameInMap("ServiceCode") public String serviceCode; public static RequestTableQAOnlineRequest build(java.util.Map<String, ?> map) throws Exception { RequestTableQAOnlineRequest self = new RequestTableQAOnlineRequest(); return TeaModel.build(map, self); } public RequestTableQAOnlineRequest setBotId(String botId) { this.botId = botId; return this; } public String getBotId() { return this.botId; } public RequestTableQAOnlineRequest setParams(String params) { this.params = params; return this; } public String getParams() { return this.params; } public RequestTableQAOnlineRequest setQuestion(String question) { this.question = question; return this; } public String getQuestion() { return this.question; } public RequestTableQAOnlineRequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/RequestTableQAOnlineResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class RequestTableQAOnlineResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public RequestTableQAOnlineResponseBody body; public static RequestTableQAOnlineResponse build(java.util.Map<String, ?> map) throws Exception { RequestTableQAOnlineResponse self = new RequestTableQAOnlineResponse(); return TeaModel.build(map, self); } public RequestTableQAOnlineResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public RequestTableQAOnlineResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public RequestTableQAOnlineResponse setBody(RequestTableQAOnlineResponseBody body) { this.body = body; return this; } public RequestTableQAOnlineResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/RequestTableQAOnlineResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class RequestTableQAOnlineResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static RequestTableQAOnlineResponseBody build(java.util.Map<String, ?> map) throws Exception { RequestTableQAOnlineResponseBody self = new RequestTableQAOnlineResponseBody(); return TeaModel.build(map, self); } public RequestTableQAOnlineResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public RequestTableQAOnlineResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/RequestTableQARequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class RequestTableQARequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Params") public String params; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceCode") public String serviceCode; public static RequestTableQARequest build(java.util.Map<String, ?> map) throws Exception { RequestTableQARequest self = new RequestTableQARequest(); return TeaModel.build(map, self); } public RequestTableQARequest setParams(String params) { this.params = params; return this; } public String getParams() { return this.params; } public RequestTableQARequest setServiceCode(String serviceCode) { this.serviceCode = serviceCode; return this; } public String getServiceCode() { return this.serviceCode; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/RequestTableQAResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class RequestTableQAResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public RequestTableQAResponseBody body; public static RequestTableQAResponse build(java.util.Map<String, ?> map) throws Exception { RequestTableQAResponse self = new RequestTableQAResponse(); return TeaModel.build(map, self); } public RequestTableQAResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public RequestTableQAResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public RequestTableQAResponse setBody(RequestTableQAResponseBody body) { this.body = body; return this; } public RequestTableQAResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/RequestTableQAResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class RequestTableQAResponseBody extends TeaModel { @NameInMap("Data") public String data; @NameInMap("RequestId") public String requestId; public static RequestTableQAResponseBody build(java.util.Map<String, ?> map) throws Exception { RequestTableQAResponseBody self = new RequestTableQAResponseBody(); return TeaModel.build(map, self); } public RequestTableQAResponseBody setData(String data) { this.data = data; return this; } public String getData() { return this.data; } public RequestTableQAResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/UpdateServiceDataRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class UpdateServiceDataRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Conditions") public java.util.Map<String, ?> conditions; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceId") public Long serviceId; public static UpdateServiceDataRequest build(java.util.Map<String, ?> map) throws Exception { UpdateServiceDataRequest self = new UpdateServiceDataRequest(); return TeaModel.build(map, self); } public UpdateServiceDataRequest setConditions(java.util.Map<String, ?> conditions) { this.conditions = conditions; return this; } public java.util.Map<String, ?> getConditions() { return this.conditions; } public UpdateServiceDataRequest setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/UpdateServiceDataResponse.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class UpdateServiceDataResponse extends TeaModel { @NameInMap("headers") public java.util.Map<String, String> headers; @NameInMap("statusCode") public Integer statusCode; @NameInMap("body") public UpdateServiceDataResponseBody body; public static UpdateServiceDataResponse build(java.util.Map<String, ?> map) throws Exception { UpdateServiceDataResponse self = new UpdateServiceDataResponse(); return TeaModel.build(map, self); } public UpdateServiceDataResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public UpdateServiceDataResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } public UpdateServiceDataResponse setBody(UpdateServiceDataResponseBody body) { this.body = body; return this; } public UpdateServiceDataResponseBody getBody() { return this.body; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/UpdateServiceDataResponseBody.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class UpdateServiceDataResponseBody extends TeaModel { @NameInMap("Code") public Integer code; @NameInMap("Data") public Object data; @NameInMap("Msg") public String msg; @NameInMap("RequestId") public String requestId; @NameInMap("Success") public Boolean success; public static UpdateServiceDataResponseBody build(java.util.Map<String, ?> map) throws Exception { UpdateServiceDataResponseBody self = new UpdateServiceDataResponseBody(); return TeaModel.build(map, self); } public UpdateServiceDataResponseBody setCode(Integer code) { this.code = code; return this; } public Integer getCode() { return this.code; } public UpdateServiceDataResponseBody setData(Object data) { this.data = data; return this; } public Object getData() { return this.data; } public UpdateServiceDataResponseBody setMsg(String msg) { this.msg = msg; return this; } public String getMsg() { return this.msg; } public UpdateServiceDataResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public UpdateServiceDataResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } }
0
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629
java-sources/com/aliyun/alinlp20200629/3.1.0/com/aliyun/alinlp20200629/models/UpdateServiceDataShrinkRequest.java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.alinlp20200629.models; import com.aliyun.tea.*; public class UpdateServiceDataShrinkRequest extends TeaModel { /** * <p>This parameter is required.</p> */ @NameInMap("Conditions") public String conditionsShrink; /** * <p>This parameter is required.</p> */ @NameInMap("ServiceId") public Long serviceId; public static UpdateServiceDataShrinkRequest build(java.util.Map<String, ?> map) throws Exception { UpdateServiceDataShrinkRequest self = new UpdateServiceDataShrinkRequest(); return TeaModel.build(map, self); } public UpdateServiceDataShrinkRequest setConditionsShrink(String conditionsShrink) { this.conditionsShrink = conditionsShrink; return this; } public String getConditionsShrink() { return this.conditionsShrink; } public UpdateServiceDataShrinkRequest setServiceId(Long serviceId) { this.serviceId = serviceId; return this; } public Long getServiceId() { return this.serviceId; } }
0
java-sources/com/aliyun/aliyun-cls-jdbc
java-sources/com/aliyun/aliyun-cls-jdbc/1.0.10-2/Sample.java
import java.sql.*; /** * Sample code for EncDB MySQL JDBC driver. Refer to * https://help.aliyun.com/zh/rds/apsaradb-rds-for-mysql/feature-overview for * more detailed info. */ public class Sample { public static void main(String[] args) throws Exception { // prepare connection information String hostname = "<your hostname>"; String port = "<your port>"; String dbname = "<your dbname>"; String username = "<your username>"; String password = "<your password>"; // Additional 3 steps you need to do. // Step 0. prepare MEK and ENC_ALGO String mek = "<your MEK, with >"; // 只是示例,建议用更复杂的密钥 String encAlgo = "<encryption algorithm, e.g., SM4_128_CBC>"; // Step 1. prepare connection URL, with MEK and ENC_ALGO String dbUrl = String.format("jdbc:mysql:encdb://%s:%s/%s?MEK=%s&ENC_ALGO=%s", hostname, port, dbname, mek, encAlgo); // Step 2. adopt EncJDBC driver class Class.forName("com.aliyun.encdb.mysql.jdbc.EncDriver"); // do whatever just like using a conventional JDBC driver Connection connection = DriverManager.getConnection(dbUrl, username, password); int[] intData = { 1, 2, 3, 4, 5, 6 }; String[] strData = { "abc", "bcd", "1", "def", "efg", "fgi" }; // create table connection.createStatement().executeUpdate("drop table if exists test"); connection.createStatement().executeUpdate("create table test (a int, b text)"); // insert data for (int i = 0; i < 6; i++) { PreparedStatement pstmt = connection.prepareStatement("insert into test values (?,?)"); pstmt.setInt(1, intData[i]); pstmt.setString(2, strData[i]); pstmt.executeUpdate(); } // check plaintext data ResultSet rs = connection.createStatement().executeQuery("select * from test"); while (rs.next()) { for (int i = 0; i < rs.getMetaData().getColumnCount(); i++) { System.out.print(rs.getString(i + 1)); System.out.print("\t"); } System.out.print("\n"); } } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/BaseClientBuilder.java
package com.aliyun.sdk.gateway.eiam.dev; import com.aliyun.auth.signature.Signer; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureVersion; import com.aliyun.sdk.gateway.eiam.dev.auth.signer.PopV1Signer; import com.aliyun.sdk.gateway.eiam.dev.auth.signer.PopV3Signer; import com.aliyun.sdk.gateway.eiam.dev.interceptor.configuration.EndpointInterceptor; import com.aliyun.sdk.gateway.eiam.dev.interceptor.httpRequest.RoaHttpReqInterceptor; import com.aliyun.sdk.gateway.eiam.dev.interceptor.httpRequest.RpcHttpReqInterceptor; import com.aliyun.sdk.gateway.eiam.dev.interceptor.httpRequest.V3HttpReqInterceptor; import com.aliyun.sdk.gateway.eiam.dev.interceptor.output.FinalizedOutputInterceptor; import com.aliyun.sdk.gateway.eiam.dev.interceptor.request.RoaReqInterceptor; import com.aliyun.sdk.gateway.eiam.dev.interceptor.request.RpcReqInterceptor; import com.aliyun.sdk.gateway.eiam.dev.interceptor.request.V3ReqInterceptor; import com.aliyun.sdk.gateway.eiam.dev.interceptor.response.PopResInterceptor; import com.aliyun.sdk.gateway.eiam.dev.interceptor.response.TeaResponseInterceptor; import com.aliyun.sdk.gateway.eiam.dev.policy.POPUserAgentPolicy; import darabonba.core.TeaClientBuilder; import darabonba.core.client.ClientConfiguration; import darabonba.core.client.ClientOption; import darabonba.core.client.IClientBuilder; import darabonba.core.interceptor.InterceptorChain; import darabonba.core.utils.CommonUtil; public abstract class BaseClientBuilder<BuilderT extends IClientBuilder<BuilderT, ClientT>, ClientT> extends TeaClientBuilder<BuilderT, ClientT> { @Override protected String serviceName() { return "POP"; } public BuilderT serviceConfiguration(Configuration serviceConfiguration) { clientConfiguration.setOption(ClientOption.SERVICE_CONFIGURATION, serviceConfiguration); return (BuilderT) this; } @Override protected ClientConfiguration mergeServiceDefaults(ClientConfiguration configuration) { return configuration.merge(ClientConfiguration.create() .setOption(ClientOption.SERVICE_CONFIGURATION, Configuration.create()) .setOption(ClientOption.USER_AGENT_SERVICE_SUFFIX, POPUserAgentPolicy.getDefaultUserAgentSuffix())); } @Override protected ClientConfiguration finalizeServiceConfiguration(ClientConfiguration configuration) { InterceptorChain chain = InterceptorChain.create(); chain.addConfigurationInterceptor(new EndpointInterceptor()); chain.addRequestInterceptor(new RpcReqInterceptor()); chain.addRequestInterceptor(new RoaReqInterceptor()); chain.addRequestInterceptor(new V3ReqInterceptor()); chain.addHttpRequestInterceptor(new RpcHttpReqInterceptor()); chain.addHttpRequestInterceptor(new RoaHttpReqInterceptor()); chain.addHttpRequestInterceptor(new V3HttpReqInterceptor()); chain.addResponseInterceptor(new TeaResponseInterceptor()); chain.addResponseInterceptor(new PopResInterceptor()); chain.addOutputInterceptor(new FinalizedOutputInterceptor()); configuration.setOption(ClientOption.INTERCEPTOR_CHAIN, chain); Configuration config = (Configuration) configuration.option(ClientOption.SERVICE_CONFIGURATION); Signer signer; if (CommonUtil.isUnset(config)) { signer = new PopV1Signer(Configuration.DEFAULT_SIGNATURE_ALGORRITHM_V1); config = Configuration.create(); configuration.setOption(ClientOption.SERVICE_CONFIGURATION, config); } else if (config.signatureVersion() == SignatureVersion.V3) { signer = new PopV3Signer(config.signatureAlgorithmV3()); } else { signer = new PopV1Signer(config.signatureAlgorithmV1()); } configuration.setOption(ClientOption.SIGNER, signer); return configuration; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/Configuration.java
package com.aliyun.sdk.gateway.eiam.dev; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureAlgorithm; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureVersion; import darabonba.core.ServiceConfiguration; public final class Configuration implements ServiceConfiguration { public static final SignatureVersion DEFAULT_SIGNATURE_VERSION = SignatureVersion.V1; public static final SignatureAlgorithm DEFAULT_SIGNATURE_ALGORRITHM_V1 = SignatureAlgorithm.HMAC_SHA1; public static final SignatureAlgorithm DEFAULT_SIGNATURE_ALGORRITHM_V3 = SignatureAlgorithm.ACS3_HMAC_SHA256; private SignatureVersion signatureVersion = DEFAULT_SIGNATURE_VERSION; private SignatureAlgorithm signatureAlgorithmV1 = DEFAULT_SIGNATURE_ALGORRITHM_V1; private SignatureAlgorithm signatureAlgorithmV3 = DEFAULT_SIGNATURE_ALGORRITHM_V3; private Configuration() { } public static Configuration create() { return new Configuration(); } public SignatureVersion signatureVersion() { return signatureVersion; } public Configuration setSignatureVersion(SignatureVersion signatureVersion) { this.signatureVersion = signatureVersion; return this; } public SignatureAlgorithm signatureAlgorithmV1() { return signatureAlgorithmV1; } public Configuration setSignatureAlgorithmV1(SignatureAlgorithm signatureAlgorithmV1) { this.signatureAlgorithmV1 = signatureAlgorithmV1; return this; } public SignatureAlgorithm signatureAlgorithmV3() { return signatureAlgorithmV3; } public Configuration setSignatureAlgorithmV3(SignatureAlgorithm signatureAlgorithmV3) { this.signatureAlgorithmV3 = signatureAlgorithmV3; return this; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/auth/RoaSignatureComposer.java
package com.aliyun.sdk.gateway.eiam.dev.auth; import com.aliyun.core.http.HttpMethod; import com.aliyun.core.utils.StringUtils; import java.util.*; public class RoaSignatureComposer { private final static String SEPARATOR = "&"; private final static String ACCEPT = "accept"; private final static String CONTENT_MD5 = "content-md5"; private final static String CONTENT_TYPE = "content-type"; private final static String DATE = "date"; private final static String prefix = "x-acs-"; public static String composeStringToSign(HttpMethod method, Map<String, String> params, Map<String, String> headers, String pathname) { String accept = headers.get(ACCEPT) == null ? StringUtils.EMPTY : headers.get(ACCEPT); String contentMD5 = headers.get(CONTENT_MD5) == null ? StringUtils.EMPTY : headers.get(CONTENT_MD5); String contentType = headers.get(CONTENT_TYPE) == null ? StringUtils.EMPTY : headers.get(CONTENT_TYPE); String date = headers.get(DATE) == null ? StringUtils.EMPTY : headers.get(DATE); String header = method + "\n" + accept + "\n" + contentMD5 + "\n" + contentType + "\n" + date + "\n"; String canonicalizedHeaders = buildCanonicalizedHeaders(headers); String canonicalizedResource = buildCanonicalizedResource(pathname, params); return header + canonicalizedHeaders + canonicalizedResource; } private static String buildCanonicalizedHeaders(Map<String, String> headers) { Set<String> keys = headers.keySet(); List<String> canonicalizedKeys = new ArrayList<>(); for (String key : keys) { if (key.startsWith(prefix)) { canonicalizedKeys.add(key); } } Collections.sort(canonicalizedKeys); StringBuilder canonicalizedHeaders = new StringBuilder(); for (String key : canonicalizedKeys) { canonicalizedHeaders.append(key); canonicalizedHeaders.append(":"); canonicalizedHeaders.append(headers.get(key).trim()); canonicalizedHeaders.append("\n"); } return canonicalizedHeaders.toString(); } private static String buildCanonicalizedResource(String pathname, Map<String, String> params) { if (params.size() <= 0) { return pathname; } String[] keys = params.keySet().toArray(new String[params.size()]); StringBuilder queryString = new StringBuilder(pathname); queryString.append("?"); Arrays.sort(keys); for (int i = 0; i < keys.length; i++) { queryString.append(keys[i]); if (!StringUtils.isEmpty(params.get(keys[i]))) { queryString.append("="); queryString.append(params.get(keys[i])); } queryString.append(SEPARATOR); } return queryString.length() > 0 ? queryString.deleteCharAt(queryString.length() - 1).toString() : StringUtils.EMPTY; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/auth/RpcSignatureComposer.java
package com.aliyun.sdk.gateway.eiam.dev.auth; import com.aliyun.auth.signature.exception.SignatureException; import com.aliyun.core.http.HttpMethod; import com.aliyun.core.utils.StringUtils; import java.io.UnsupportedEncodingException; import java.util.Arrays; import java.util.Map; import static com.aliyun.core.utils.EncodeUtil.percentEncode; public class RpcSignatureComposer { private final static String SEPARATOR = "&"; public static String composeStringToSign(HttpMethod method, Map<String, String> params, Map<String, String> headers, String pathname) { StringBuilder stringToSign = new StringBuilder(); try { stringToSign.append(method); stringToSign.append(SEPARATOR); stringToSign.append(percentEncode(pathname)); stringToSign.append(SEPARATOR); stringToSign.append(percentEncode( buildCanonicalizedResource(params))); } catch (UnsupportedEncodingException e) { throw new SignatureException(e.toString()); } return stringToSign.toString(); } private static String buildCanonicalizedResource(Map<String, String> params) { String[] sortedKeys = params.keySet().toArray(new String[]{}); Arrays.sort(sortedKeys); StringBuilder queryString = new StringBuilder(); try { for (String key : sortedKeys) { if (!StringUtils.isEmpty(params.get(key))) { queryString.append(SEPARATOR) .append(percentEncode(key)).append("=") .append(percentEncode(params.get(key))); } } } catch (UnsupportedEncodingException e) { throw new SignatureException(e.toString()); } return queryString.length() > 0 ? queryString.substring(1) : StringUtils.EMPTY; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/auth/SignatureAlgorithm.java
package com.aliyun.sdk.gateway.eiam.dev.auth; public enum SignatureAlgorithm { HMAC_SHA1("HMAC-SHA1"), ACS3_HMAC_SHA256("ACS3-HMAC-SHA256"), ACS3_HMAC_SM3("ACS3-HMAC-SM3"), ACS3_RSA_SHA256("ACS3-RSA-SHA256"); private final String algorithmName; SignatureAlgorithm(String algorithmName) { this.algorithmName = algorithmName; } public String algorithmName() { return algorithmName; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/auth/SignatureVersion.java
package com.aliyun.sdk.gateway.eiam.dev.auth; public enum SignatureVersion { V1, V3 }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/auth/V3SignatureComposer.java
package com.aliyun.sdk.gateway.eiam.dev.auth; import com.aliyun.auth.signature.exception.SignatureException; import com.aliyun.core.http.HttpMethod; import com.aliyun.core.utils.EncodeUtil; import com.aliyun.core.utils.StringUtils; import java.io.UnsupportedEncodingException; import java.util.*; public class V3SignatureComposer { private final static String UTF8 = "UTF-8"; private final static String SEPARATOR = "&"; private final static String DELIMITER = ";"; private final static String prefix = "x-acs-"; private final static String CONTENT_TYPE = "content-type"; private final static String HOST = "host"; public static String composeStringToSign(HttpMethod method, Map<String, String> params, Map<String, String> headers, String pathname, String payload) { String canonicalURI = pathname; if (StringUtils.isBlank(canonicalURI)) { canonicalURI = "/"; } String queryString = getCanonicalizedResource(params); StringBuilder sb = new StringBuilder(method.toString()); sb.append("\n").append(canonicalURI) .append("\n").append(queryString) .append("\n").append(buildCanonicalizedHeaders(headers)) .append("\n").append(buildSignedHeaders(headers)) .append("\n").append(payload); return sb.toString(); } private static String buildCanonicalizedHeaders(Map<String, String> headers) { Set<String> keys = headers.keySet(); List<String> canonicalizedKeys = new ArrayList<>(); Map<String, String> valueMap = new HashMap<>(); for (String key : keys) { String lowerKey = key.toLowerCase(); if (lowerKey.startsWith(prefix) || lowerKey.equals(HOST) || lowerKey.equals(CONTENT_TYPE)) { if (!canonicalizedKeys.contains(lowerKey)) { canonicalizedKeys.add(lowerKey); } valueMap.put(lowerKey, headers.get(key).trim()); } } String[] canonicalizedKeysArray = canonicalizedKeys.toArray(new String[canonicalizedKeys.size()]); Arrays.sort(canonicalizedKeysArray); StringBuilder sb = new StringBuilder(); for (int i = 0; i < canonicalizedKeysArray.length; i++) { String key = canonicalizedKeysArray[i]; sb.append(key); sb.append(":"); sb.append(valueMap.get(key)); sb.append("\n"); } return sb.toString(); } public static String buildSignedHeaders(Map<String, String> headers) { String[] keys = headers.keySet().toArray(new String[headers.size()]); Arrays.sort(keys); List<String> canonicalizedKeys = new ArrayList<String>(); for (String key : keys) { String lowerKey = key.toLowerCase(); if (lowerKey.startsWith(prefix) || lowerKey.equals(HOST) || lowerKey.equals(CONTENT_TYPE)) { if (!canonicalizedKeys.contains(lowerKey)) { canonicalizedKeys.add(lowerKey); } } } String[] canonicalizedKeysArray = canonicalizedKeys.toArray(new String[canonicalizedKeys.size()]); return StringUtils.join(DELIMITER, Arrays.asList(canonicalizedKeysArray)); } private static String getCanonicalizedResource(Map<String, String> query) { if (query == null || query.size() == 0) { return StringUtils.EMPTY; } String[] keys = query.keySet().toArray(new String[query.size()]); Arrays.sort(keys); StringBuilder queryString = new StringBuilder(); try { for (int i = 0; i < keys.length; i++) { queryString.append(EncodeUtil.percentEncode(keys[i])); queryString.append("="); if (!StringUtils.isEmpty(query.get(keys[i]))) { queryString.append(EncodeUtil.percentEncode(query.get(keys[i]))); } queryString.append(SEPARATOR); } } catch (UnsupportedEncodingException e) { throw new SignatureException(e.toString()); } return queryString.length() > 0 ? queryString.deleteCharAt(queryString.length() - 1).toString() : StringUtils.EMPTY; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/auth
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/auth/signer/PopSigner.java
package com.aliyun.sdk.gateway.eiam.dev.auth.signer; import com.aliyun.auth.signature.Signer; import com.aliyun.auth.signature.SignerParams; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureAlgorithm; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureVersion; public interface PopSigner extends Signer { String signString(String stringToSign, SignerParams params); byte[] hash(byte[] raw); String getContent(); SignatureAlgorithm getSignerName(); SignatureVersion getSignerVersion(); }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/auth
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/auth/signer/PopV1Signer.java
package com.aliyun.sdk.gateway.eiam.dev.auth.signer; import com.aliyun.auth.signature.SignerParams; import com.aliyun.auth.signature.exception.SignatureException; import com.aliyun.auth.signature.signer.SignAlgorithmHmacSHA1; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureAlgorithm; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureVersion; import com.aliyun.auth.credentials.ICredential; import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; import java.io.UnsupportedEncodingException; import java.security.InvalidKeyException; import java.util.Base64; public class PopV1Signer implements PopSigner { private final String ENCODING = "UTF-8"; private final SignatureAlgorithm DEFAULT_ALGORITHM = SignatureAlgorithm.HMAC_SHA1; private final SignatureAlgorithm algorithm; public PopV1Signer() { this.algorithm = DEFAULT_ALGORITHM; } public PopV1Signer(SignatureAlgorithm algorithm) { if (algorithm != null) { this.algorithm = algorithm; } else { this.algorithm = DEFAULT_ALGORITHM; } } @Override public String signString(String stringToSign, SignerParams params) { switch (algorithm) { case HMAC_SHA1: default: try { Mac mac = SignAlgorithmHmacSHA1.HmacSHA1.getMac(); ICredential credential = params.credentials(); mac.init(new SecretKeySpec(credential.accessKeySecret().getBytes(ENCODING), SignAlgorithmHmacSHA1.HmacSHA1.toString())); return Base64.getEncoder().encodeToString(mac.doFinal(stringToSign.getBytes(ENCODING))); } catch (UnsupportedEncodingException | InvalidKeyException e) { throw new SignatureException(e.toString()); } } } @Override public byte[] hash(byte[] raw) { return null; } @Override public String getContent() { return null; } @Override public SignatureAlgorithm getSignerName() { return algorithm; } @Override public SignatureVersion getSignerVersion() { return SignatureVersion.V1; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/auth
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/auth/signer/PopV3Signer.java
package com.aliyun.sdk.gateway.eiam.dev.auth.signer; import com.aliyun.auth.signature.SignerParams; import com.aliyun.auth.signature.signer.SignAlgorithmHmacSHA256; import com.aliyun.auth.signature.signer.SignAlgorithmHmacSM3; import com.aliyun.auth.signature.signer.SignAlgorithmSHA256withRSA; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureAlgorithm; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureVersion; import com.aliyun.auth.credentials.ICredential; import org.bouncycastle.crypto.macs.HMac; import org.bouncycastle.crypto.params.KeyParameter; import org.bouncycastle.jce.provider.BouncyCastleProvider; import javax.crypto.Mac; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; import java.io.UnsupportedEncodingException; import java.security.*; import java.security.spec.InvalidKeySpecException; import java.security.spec.PKCS8EncodedKeySpec; import java.util.Base64; import static com.aliyun.core.utils.EncodeUtil.hexEncode; public class PopV3Signer implements PopSigner { private final String ENCODING = "UTF-8"; private final String HASH_SHA256 = "SHA-256"; private final String HASH_SM3 = "SM3"; private final String PEM_BEGIN = "-----BEGIN RSA PRIVATE KEY-----\n"; private final String PEM_END = "\n-----END RSA PRIVATE KEY-----"; private final SignatureAlgorithm DEFAULT_ALGORITHM = SignatureAlgorithm.ACS3_HMAC_SHA256; private final SignatureAlgorithm algorithm; public PopV3Signer() { this.algorithm = DEFAULT_ALGORITHM; } public PopV3Signer(SignatureAlgorithm algorithm) { if (algorithm != null) { this.algorithm = algorithm; } else { this.algorithm = DEFAULT_ALGORITHM; } } @Override public String signString(String stringToSign, SignerParams params) { ICredential credential = params.credentials(); String accessKeySecret = credential.accessKeySecret(); try { switch (algorithm) { case ACS3_HMAC_SM3: HMac sm3HMAC = SignAlgorithmHmacSM3.HMAC_SM3.getMac(); SecretKey key = new SecretKeySpec(accessKeySecret.getBytes(ENCODING), SignAlgorithmHmacSM3.HMAC_SM3.toString()); byte[] sm3Sign = new byte[sm3HMAC.getMacSize()]; byte[] inputBytes = stringToSign.getBytes(ENCODING); sm3HMAC.init(new KeyParameter(key.getEncoded())); sm3HMAC.update(inputBytes, 0, inputBytes.length); sm3HMAC.doFinal(sm3Sign, 0); return hexEncode(sm3Sign); case ACS3_RSA_SHA256: Signature rsaSign = SignAlgorithmSHA256withRSA.SHA256withRSA.getSignature(); KeyFactory kf = KeyFactory.getInstance(SignAlgorithmSHA256withRSA.SHA256withRSA.toString()); byte[] keySpec = Base64.getDecoder().decode(checkRSASecret(accessKeySecret)); PrivateKey privateKey = kf.generatePrivate(new PKCS8EncodedKeySpec(keySpec)); rsaSign.initSign(privateKey); rsaSign.update(stringToSign.getBytes(ENCODING)); byte[] sign = rsaSign.sign(); return hexEncode(sign); case ACS3_HMAC_SHA256: default: Mac sha256HMAC = SignAlgorithmHmacSHA256.HmacSHA256.getMac(); sha256HMAC.init(new SecretKeySpec(accessKeySecret.getBytes(ENCODING), SignAlgorithmHmacSHA256.HmacSHA256.toString())); return hexEncode(sha256HMAC.doFinal(stringToSign.getBytes(ENCODING))); } } catch (UnsupportedEncodingException | NoSuchAlgorithmException | InvalidKeySpecException | InvalidKeyException | SignatureException e) { throw new com.aliyun.auth.signature.exception.SignatureException(e.toString()); } } private String checkRSASecret(String accessKeySecret) { if (accessKeySecret != null) { if (accessKeySecret.startsWith(PEM_BEGIN)) { accessKeySecret = accessKeySecret.replace(PEM_BEGIN, ""); } while (accessKeySecret.endsWith("\n") || accessKeySecret.endsWith("\r")) { accessKeySecret = accessKeySecret.substring(0, accessKeySecret.length() - 1); } if (accessKeySecret.endsWith(PEM_END)) { accessKeySecret = accessKeySecret.replace(PEM_END, ""); } } return accessKeySecret; } @Override public byte[] hash(byte[] raw) { if (null == raw) { return null; } try { MessageDigest digest; switch (algorithm) { case ACS3_HMAC_SM3: BouncyCastleProvider provider = new BouncyCastleProvider(); digest = MessageDigest.getInstance(HASH_SM3, provider); break; case ACS3_HMAC_SHA256: case ACS3_RSA_SHA256: default: digest = MessageDigest.getInstance(HASH_SHA256); } return digest.digest(raw); } catch (NoSuchAlgorithmException e) { throw new com.aliyun.auth.signature.exception.SignatureException(e.toString()); } } @Override public String getContent() { switch (algorithm) { case ACS3_HMAC_SM3: return "x-acs-content-sm3"; case ACS3_HMAC_SHA256: case ACS3_RSA_SHA256: default: return "x-acs-content-sha256"; } } @Override public SignatureAlgorithm getSignerName() { return algorithm; } @Override public SignatureVersion getSignerVersion() { return SignatureVersion.V3; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/exception/PopClientException.java
package com.aliyun.sdk.gateway.eiam.dev.exception; import com.aliyun.core.utils.StringUtils; import darabonba.core.exception.ClientException; import darabonba.core.utils.CommonUtil; import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map; public class PopClientException extends ClientException { private String code; private String message; private String requestId; private Map<String, Object> data; public PopClientException() { super(); } public PopClientException(final String message) { super(message); } public PopClientException(final Throwable cause) { super(cause); } public PopClientException(final String message, final Throwable cause) { super(message, cause); } public PopClientException(final String message, final Throwable cause, final boolean enableSuppression, final boolean writableStackTrace) { super(message, cause, enableSuppression, writableStackTrace); } public PopClientException(Map<String, Object> map) { setData(map); } public PopClientException(Map<String, Object> map, String message, Throwable cause) { super(message, cause); setData(map); } @Override public String getMessage() { if (!StringUtils.isEmpty(message)) { return "\n(Code: " + getErrCode() + "\nMessage: " + getErrMessage() + "\nRequest ID: " + getRequestId() + ")"; } return super.getMessage(); } public String getErrMessage() { return message; } public void setErrMessage(String message) { this.message = message; } public String getErrCode() { return code; } public void setErrCode(String code) { this.code = code; } public String getRequestId() { return requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public void setData(Map<String, Object> map) { this.setErrCode(String.valueOf(map.get("code"))); this.setErrMessage(String.valueOf(map.get("message"))); Object obj = map.get("data"); if (obj == null) { return; } if (obj instanceof Map) { data = (Map<String, Object>) obj; if (!CommonUtil.isUnset(data.get("RequestId"))) { this.setRequestId(data.get("RequestId").toString()); } else if (!CommonUtil.isUnset(data.get("requestId"))) { this.setRequestId(data.get("requestId").toString()); } return; } Map<String, Object> hashMap = new HashMap<String, Object>(); Field[] declaredFields = obj.getClass().getDeclaredFields(); for (Field field : declaredFields) { field.setAccessible(true); try { hashMap.put(field.getName(), field.get(obj)); } catch (Exception e) { continue; } } this.data = hashMap; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/exception/PopServerException.java
package com.aliyun.sdk.gateway.eiam.dev.exception; import com.aliyun.core.utils.StringUtils; import darabonba.core.exception.ServerException; import darabonba.core.utils.CommonUtil; import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map; public class PopServerException extends ServerException { private String code; private String message; private String requestId; private Map<String, Object> data; public PopServerException() { super(); } public PopServerException(final String message) { super(message); } public PopServerException(final Throwable cause) { super(cause); } public PopServerException(final String message, final Throwable cause) { super(message, cause); } public PopServerException(final String message, final Throwable cause, final boolean enableSuppression, final boolean writableStackTrace) { super(message, cause, enableSuppression, writableStackTrace); } public PopServerException(Map<String, Object> map) { setData(map); } public PopServerException(Map<String, Object> map, String message, Throwable cause) { super(message, cause); setData(map); } @Override public String getMessage() { if (!StringUtils.isEmpty(message)) { return "\n(Code: " + getErrCode() + "\nMessage: " + getErrMessage() + "\nRequest ID: " + getRequestId() + ")"; } return super.getMessage(); } public String getErrMessage() { return message; } public void setErrMessage(String message) { this.message = message; } public String getErrCode() { return code; } public void setErrCode(String code) { this.code = code; } public String getRequestId() { return requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public void setData(Map<String, Object> map) { this.setErrCode(String.valueOf(map.get("code"))); this.setErrMessage(String.valueOf(map.get("message"))); Object obj = map.get("data"); if (obj == null) { return; } if (obj instanceof Map) { data = (Map<String, Object>) obj; if (!CommonUtil.isUnset(data.get("RequestId"))) { this.setRequestId(data.get("RequestId").toString()); } else if (!CommonUtil.isUnset(data.get("requestId"))) { this.setRequestId(data.get("requestId").toString()); } return; } Map<String, Object> hashMap = new HashMap<String, Object>(); Field[] declaredFields = obj.getClass().getDeclaredFields(); for (Field field : declaredFields) { field.setAccessible(true); try { hashMap.put(field.getName(), field.get(obj)); } catch (Exception e) { continue; } } this.data = hashMap; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor/configuration/EndpointInterceptor.java
package com.aliyun.sdk.gateway.eiam.dev.interceptor.configuration; import com.aliyun.core.logging.ClientLogger; import com.aliyun.core.utils.AttributeMap; import com.aliyun.core.utils.StringUtils; import com.aliyun.sdk.gateway.eiam.dev.exception.PopClientException; import darabonba.core.EndpointType; import darabonba.core.TeaConfiguration; import darabonba.core.TeaRequest; import darabonba.core.exception.TeaException; import darabonba.core.interceptor.ConfigurationInterceptor; import darabonba.core.interceptor.InterceptorContext; public class EndpointInterceptor implements ConfigurationInterceptor { private final ClientLogger logger = new ClientLogger(EndpointInterceptor.class); protected final static class EndpointRule { public final static String Regional = "regional"; public final static String SEPARATOR = "-"; } @Override public TeaConfiguration modifyConfiguration(InterceptorContext context, AttributeMap attributes) { logger.verbose("Endpoint pre-process begin."); TeaRequest request = context.teaRequest(); TeaConfiguration configuration = context.configuration(); if (!StringUtils.isEmpty(configuration.endpoint())) { return configuration; } if (!StringUtils.isEmpty(configuration.region()) && !request.endpointMap().isEmpty() && request.endpointMap().containsKey(configuration.region())) { configuration.setEndpoint(request.endpointMap().get(configuration.region())); return configuration; } String endpointType = StringUtils.EMPTY; if (!StringUtils.isEmpty(configuration.endpointType()) && !configuration.endpointType().equals(EndpointType.PUBLIC)) { endpointType = EndpointRule.SEPARATOR + configuration.endpointType(); } if (request.endpointRule().equals(EndpointRule.Regional)) { if (StringUtils.isEmpty(configuration.region())) { throw new PopClientException("RegionId is empty, please set a valid RegionId", new RuntimeException("RegionId is empty, please set a valid RegionId")); } configuration.setEndpoint(String.format("%s%s.%s.aliyuncs.com", request.product(), endpointType, configuration.region())); } else { configuration.setEndpoint(String.format("%s%s.aliyuncs.com", request.product(), endpointType)); } return configuration; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor/httpRequest/RoaHttpReqInterceptor.java
package com.aliyun.sdk.gateway.eiam.dev.interceptor.httpRequest; import com.aliyun.core.http.*; import com.aliyun.sdk.gateway.eiam.dev.auth.RoaSignatureComposer; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureVersion; import com.aliyun.auth.credentials.ICredential; import com.aliyun.auth.signature.SignerParams; import com.aliyun.auth.credentials.provider.AnonymousCredentialProvider; import com.aliyun.sdk.gateway.eiam.dev.auth.signer.PopSigner; import com.aliyun.core.logging.ClientLogger; import com.aliyun.core.utils.AttributeMap; import com.aliyun.core.utils.ParseUtil; import com.aliyun.core.utils.StringUtils; import darabonba.core.RequestStyle; import darabonba.core.TeaConfiguration; import darabonba.core.TeaPair; import darabonba.core.TeaRequest; import darabonba.core.client.ClientConfiguration; import darabonba.core.client.ClientOption; import darabonba.core.interceptor.HttpRequestInterceptor; import darabonba.core.interceptor.InterceptorContext; import darabonba.core.utils.CommonUtil; import darabonba.core.utils.ModelUtil; import java.util.Map; import java.util.Optional; public class RoaHttpReqInterceptor implements HttpRequestInterceptor { private final ClientLogger logger = new ClientLogger(RoaHttpReqInterceptor.class); @Override public HttpRequest modifyHttpRequest(InterceptorContext context, AttributeMap attributes) { TeaRequest request = context.teaRequest(); HttpRequest httpRequest = context.httpRequest(); if (!request.style().equals(RequestStyle.ROA) && !request.style().equals(RequestStyle.RESTFUL)) { return httpRequest; } TeaConfiguration configuration = context.configuration(); ClientConfiguration clientConfiguration = configuration.clientConfiguration(); PopSigner signer = (PopSigner) clientConfiguration.option(ClientOption.SIGNER); if (signer.getSignerVersion() != SignatureVersion.V1) { return httpRequest; } HttpMethod method = Optional.ofNullable(configuration.method()).orElseGet(request::method); Map<String, String> headers = CommonUtil.merge(String.class, CommonUtil.buildMap( new TeaPair("date", CommonUtil.getDateUTCString()), new TeaPair("x-acs-signature-nonce", CommonUtil.getNonce()) ), request.headers().toMap() ); String body = null; if (!CommonUtil.isUnset(request.body())) { if (request.reqBodyType().equals(BodyType.JSON)) { body = ParseUtil.toJSONString(request.body()); headers.put("content-type", FormatType.JSON); } else { body = ModelUtil.toFormString(ModelUtil.query(CommonUtil.assertAsMap(request.body()))); headers.put("content-type", FormatType.FORM); } } Map<String, String> query = request.query(); if (!(configuration.credentialProvider() instanceof AnonymousCredentialProvider)) { ICredential credential = configuration.credentialProvider().getCredentials(); String accessKeyId = credential.accessKeyId(); String securityToken = credential.securityToken(); if (!StringUtils.isEmpty(securityToken)) { headers.put("x-acs-accesskey-id", accessKeyId); headers.put("x-acs-security-token", securityToken); } headers.putAll(CommonUtil.buildMap( new TeaPair("x-acs-signature-method", signer.getSignerName().algorithmName()), new TeaPair("x-acs-signature-version", "1.0"))); String strToSign = RoaSignatureComposer.composeStringToSign(method, query, headers, request.pathname()); SignerParams params = SignerParams.create(); params.setCredentials(credential); headers.put("authorization", "acs " + accessKeyId + ":" + signer.signString(strToSign, params)); } HttpHeaders httpHeaders = new HttpHeaders(headers); httpRequest = new HttpRequest(method, ModelUtil.composeUrl(configuration.endpoint(), query, configuration.protocol(), request.pathname())); httpRequest.setHeaders(httpHeaders); if (!CommonUtil.isUnset(request.body())) { httpRequest.setBody(body); } return httpRequest; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor/httpRequest/RpcHttpReqInterceptor.java
package com.aliyun.sdk.gateway.eiam.dev.interceptor.httpRequest; import com.aliyun.auth.credentials.Credential; import com.aliyun.auth.signature.SignerParams; import com.aliyun.sdk.gateway.eiam.dev.auth.RpcSignatureComposer; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureVersion; import com.aliyun.auth.credentials.ICredential; import com.aliyun.auth.credentials.provider.AnonymousCredentialProvider; import com.aliyun.sdk.gateway.eiam.dev.auth.signer.PopSigner; import com.aliyun.core.http.FormatType; import com.aliyun.core.http.HttpHeaders; import com.aliyun.core.http.HttpMethod; import com.aliyun.core.http.HttpRequest; import com.aliyun.core.logging.ClientLogger; import com.aliyun.core.utils.AttributeMap; import com.aliyun.core.utils.MapUtils; import com.aliyun.core.utils.StringUtils; import darabonba.core.RequestStyle; import darabonba.core.TeaConfiguration; import darabonba.core.TeaPair; import darabonba.core.TeaRequest; import darabonba.core.client.ClientConfiguration; import darabonba.core.client.ClientOption; import darabonba.core.interceptor.HttpRequestInterceptor; import darabonba.core.interceptor.InterceptorContext; import darabonba.core.utils.CommonUtil; import darabonba.core.utils.ModelUtil; import java.util.HashMap; import java.util.Map; import java.util.Objects; import java.util.Optional; public class RpcHttpReqInterceptor implements HttpRequestInterceptor { private final ClientLogger logger = new ClientLogger(RpcHttpReqInterceptor.class); @Override public HttpRequest modifyHttpRequest(InterceptorContext context, AttributeMap attributes) { TeaRequest request = context.teaRequest(); HttpRequest httpRequest = context.httpRequest(); if (!request.style().equals(RequestStyle.RPC)) { return httpRequest; } TeaConfiguration configuration = context.configuration(); ClientConfiguration clientConfiguration = configuration.clientConfiguration(); PopSigner signer = (PopSigner) clientConfiguration.option(ClientOption.SIGNER); if (signer.getSignerVersion() != SignatureVersion.V1) { return httpRequest; } HttpMethod method = Optional.ofNullable(configuration.method()).orElseGet(request::method); Map<String, String> query = CommonUtil.merge(String.class, CommonUtil.buildMap( new TeaPair("Timestamp", CommonUtil.getTimestamp()), new TeaPair("SignatureNonce", CommonUtil.getNonce()) ), request.query() ); Map<String, String> headers = new HashMap<>(request.headers().toMap()); Map<String, String> body = new HashMap<>(); if (!CommonUtil.isUnset(request.body())) { body = ModelUtil.query(CommonUtil.assertAsMap(request.body())); headers.put("content-type", FormatType.FORM); } Map<String, String> paramsToSign = MapUtils.concat(query, body); if (!(configuration.credentialProvider() instanceof AnonymousCredentialProvider)) { ICredential credential = configuration.credentialProvider().getCredentials(); String securityToken = credential.securityToken(); if (!StringUtils.isEmpty(securityToken)) { query.put("SecurityToken", securityToken); } query.putAll(CommonUtil.buildMap( new TeaPair("SignatureMethod", signer.getSignerName().algorithmName()), new TeaPair("SignatureVersion", "1.0"), new TeaPair("AccessKeyId", credential.accessKeyId()) )); paramsToSign.putAll(query); String strToSign = RpcSignatureComposer.composeStringToSign(method, paramsToSign, headers, request.pathname()); SignerParams params = SignerParams.create(); Credential newCredential = Credential.builder() .accessKeyId(credential.accessKeyId()) .securityToken(securityToken) .accessKeySecret(credential.accessKeySecret() + "&") .build(); params.setCredentials(newCredential); query.put("Signature", signer.signString(strToSign, params)); } HttpHeaders httpHeaders = new HttpHeaders(headers); httpRequest = new HttpRequest(method, ModelUtil.composeUrl(configuration.endpoint(), query, configuration.protocol(), request.pathname())); httpRequest.setHeaders(httpHeaders); if (!body.isEmpty()) { httpRequest.setBody(StringUtils.toBytes(Objects.requireNonNull(ModelUtil.toFormString(body)))); } return httpRequest; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor/httpRequest/V3HttpReqInterceptor.java
package com.aliyun.sdk.gateway.eiam.dev.interceptor.httpRequest; import com.aliyun.auth.signature.SignerParams; import com.aliyun.core.http.*; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureVersion; import com.aliyun.sdk.gateway.eiam.dev.auth.V3SignatureComposer; import com.aliyun.auth.credentials.ICredential; import com.aliyun.auth.credentials.provider.AnonymousCredentialProvider; import com.aliyun.sdk.gateway.eiam.dev.auth.signer.PopSigner; import com.aliyun.core.logging.ClientLogger; import com.aliyun.core.utils.AttributeMap; import com.aliyun.core.utils.ParseUtil; import com.aliyun.core.utils.StringUtils; import darabonba.core.TeaConfiguration; import darabonba.core.TeaPair; import darabonba.core.TeaRequest; import darabonba.core.client.ClientConfiguration; import darabonba.core.client.ClientOption; import darabonba.core.interceptor.HttpRequestInterceptor; import darabonba.core.interceptor.InterceptorContext; import darabonba.core.utils.CommonUtil; import darabonba.core.utils.ModelUtil; import java.util.Map; import java.util.Objects; import java.util.Optional; import static com.aliyun.core.utils.EncodeUtil.hexEncode; public class V3HttpReqInterceptor implements HttpRequestInterceptor { private final ClientLogger logger = new ClientLogger(V3HttpReqInterceptor.class); @Override public HttpRequest modifyHttpRequest(InterceptorContext context, AttributeMap attributes) { logger.verbose("Request pre-process begin."); TeaRequest request = context.teaRequest(); HttpRequest httpRequest = context.httpRequest(); TeaConfiguration configuration = context.configuration(); ClientConfiguration clientConfiguration = configuration.clientConfiguration(); PopSigner signer = (PopSigner) clientConfiguration.option(ClientOption.SIGNER); if (signer.getSignerVersion() != SignatureVersion.V3) { return httpRequest; } HttpMethod method = Optional.ofNullable(configuration.method()).orElseGet(request::method); Map<String, String> headers = CommonUtil.merge(String.class, CommonUtil.buildMap( new TeaPair("x-acs-signature-nonce", CommonUtil.getNonce()), new TeaPair("x-acs-date", CommonUtil.getTimestamp()) ), request.headers().toMap() ); Map<String, String> query = request.query(); byte[] body = null; String hashedRequestPayload = hexEncode(signer.hash(StringUtils.toBytes(""))); if (!CommonUtil.isUnset(request.stream())) { body = ParseUtil.readAsBytes(request.stream()); hashedRequestPayload = hexEncode(signer.hash(body)); headers.put("content-type", FormatType.RAW); } else if (!CommonUtil.isUnset(request.body())) { if (request.reqBodyType().equals(BodyType.JSON)) { body = StringUtils.toBytes(ParseUtil.toJSONString(request.body())); hashedRequestPayload = hexEncode(signer.hash(body)); headers.put("content-type", FormatType.JSON); } else { body = StringUtils.toBytes(Objects.requireNonNull(ModelUtil.toFormString(ModelUtil.query(CommonUtil.assertAsMap(request.body()))))); hashedRequestPayload = hexEncode(signer.hash(body)); headers.put("content-type", FormatType.FORM); } } headers.put(signer.getContent(), hashedRequestPayload); if (!(configuration.credentialProvider() instanceof AnonymousCredentialProvider)) { ICredential credential = configuration.credentialProvider().getCredentials(); String accessKeyId = credential.accessKeyId(); String securityToken = credential.securityToken(); if (!StringUtils.isEmpty(securityToken)) { headers.put("x-acs-accesskey-id", accessKeyId); headers.put("x-acs-security-token", securityToken); } String strToSign = V3SignatureComposer.composeStringToSign(method, query, headers, request.pathname(), hashedRequestPayload); strToSign = signer.getSignerName().algorithmName() + "\n" + hexEncode(signer.hash(StringUtils.toBytes(strToSign))); SignerParams params = SignerParams.create(); params.setCredentials(credential); headers.put("Authorization", signer.getSignerName().algorithmName() + " Credential=" + accessKeyId + ",Signature=" + signer.signString(strToSign, params) + ",SignedHeaders=" + V3SignatureComposer.buildSignedHeaders(headers)); } HttpHeaders httpHeaders = new HttpHeaders(headers); httpRequest = new HttpRequest(method, ModelUtil.composeUrl(configuration.endpoint(), query, configuration.protocol(), request.pathname())); httpRequest.setHeaders(httpHeaders); if (!CommonUtil.isUnset(body)) { httpRequest.setBody(body); } return httpRequest; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor/output/FinalizedOutputInterceptor.java
package com.aliyun.sdk.gateway.eiam.dev.interceptor.output; import com.aliyun.core.logging.ClientLogger; import com.aliyun.core.utils.AttributeMap; import darabonba.core.TeaModel; import darabonba.core.TeaPair; import darabonba.core.TeaResponse; import darabonba.core.exception.TeaException; import darabonba.core.interceptor.InterceptorContext; import darabonba.core.interceptor.OutputInterceptor; import darabonba.core.utils.CommonUtil; import java.util.Map; public class FinalizedOutputInterceptor implements OutputInterceptor { private final ClientLogger logger = new ClientLogger(FinalizedOutputInterceptor.class); @Override public TeaModel modifyOutput(InterceptorContext context, AttributeMap attributes) { logger.verbose("OutputModel process begin."); TeaResponse response = context.teaResponse(); try { //response = CommonUtil.buildMap( // new TeaPair("body", httpResponse.getBodyAsString()), // new TeaPair("headers", headers) //); Map<String, ?> headers = response.httpResponse().getHeaders().toMap(); Map<String, Object> model = CommonUtil.buildMap( new TeaPair("body", response.deserializedBody()), new TeaPair("headers", headers)); TeaModel.toModel(model, context.output()); } catch (Exception e) { throw new TeaException(e); } return context.output(); } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor/request/RoaReqInterceptor.java
package com.aliyun.sdk.gateway.eiam.dev.interceptor.request; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureVersion; import com.aliyun.sdk.gateway.eiam.dev.auth.signer.PopSigner; import com.aliyun.core.http.FormatType; import com.aliyun.core.http.HttpHeaders; import com.aliyun.core.logging.ClientLogger; import com.aliyun.core.utils.AttributeMap; import darabonba.core.RequestStyle; import darabonba.core.TeaConfiguration; import darabonba.core.TeaPair; import darabonba.core.TeaRequest; import darabonba.core.client.ClientConfiguration; import darabonba.core.client.ClientOption; import darabonba.core.interceptor.InterceptorContext; import darabonba.core.interceptor.RequestInterceptor; import darabonba.core.policy.UserAgentPolicy; import darabonba.core.utils.CommonUtil; import java.util.Map; public class RoaReqInterceptor implements RequestInterceptor { private final ClientLogger logger = new ClientLogger(RoaReqInterceptor.class); @Override public TeaRequest modifyRequest(InterceptorContext context, AttributeMap attributes) { logger.verbose("Restful request pre-process begin."); TeaRequest request = context.teaRequest(); if (!request.style().equals(RequestStyle.ROA) && !request.style().equals(RequestStyle.RESTFUL)) { return request; } TeaConfiguration configuration = context.configuration(); ClientConfiguration clientConfiguration = configuration.clientConfiguration(); PopSigner signer = (PopSigner) clientConfiguration.option(ClientOption.SIGNER); if (signer.getSignerVersion() != SignatureVersion.V1) { return request; } Map<String, String> headers = CommonUtil.merge(String.class, CommonUtil.buildMap( new TeaPair("host", configuration.endpoint()), new TeaPair("accept", FormatType.JSON), new TeaPair("x-acs-version", request.version()), new TeaPair("x-acs-action", request.action()), new TeaPair("user-agent", clientConfiguration.option(ClientOption.USER_AGENT)) ), request.headers().toMap() ); request.setHeaders(new HttpHeaders(headers)); return request; } }
0
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor
java-sources/com/aliyun/aliyun-gateway-eiam-dev/0.3.2-beta/com/aliyun/sdk/gateway/eiam/dev/interceptor/request/RpcReqInterceptor.java
package com.aliyun.sdk.gateway.eiam.dev.interceptor.request; import com.aliyun.sdk.gateway.eiam.dev.auth.SignatureVersion; import com.aliyun.sdk.gateway.eiam.dev.auth.signer.PopSigner; import com.aliyun.core.http.HttpHeaders; import com.aliyun.core.logging.ClientLogger; import com.aliyun.core.utils.AttributeMap; import darabonba.core.RequestStyle; import darabonba.core.TeaConfiguration; import darabonba.core.TeaPair; import darabonba.core.TeaRequest; import darabonba.core.client.ClientConfiguration; import darabonba.core.client.ClientOption; import darabonba.core.interceptor.InterceptorContext; import darabonba.core.interceptor.RequestInterceptor; import darabonba.core.policy.UserAgentPolicy; import darabonba.core.utils.CommonUtil; import java.util.Map; public class RpcReqInterceptor implements RequestInterceptor { private final ClientLogger logger = new ClientLogger(RpcReqInterceptor.class); @Override public TeaRequest modifyRequest(InterceptorContext context, AttributeMap attributes) { logger.verbose("RPC request pre-process begin."); TeaRequest request = context.teaRequest(); if (!request.style().equals(RequestStyle.RPC)) { return request; } TeaConfiguration configuration = context.configuration(); ClientConfiguration clientConfiguration = configuration.clientConfiguration(); PopSigner signer = (PopSigner) clientConfiguration.option(ClientOption.SIGNER); if (signer.getSignerVersion() != SignatureVersion.V1) { return request; } Map<String, String> query = CommonUtil.merge(String.class, CommonUtil.buildMap( new TeaPair("Action", request.action()), new TeaPair("Format", "JSON"), new TeaPair("Version", request.version()) ), request.query() ); Map<String, String> headers = CommonUtil.merge(String.class, CommonUtil.buildMap( new TeaPair("host", configuration.endpoint()), new TeaPair("x-acs-version", request.version()), new TeaPair("x-acs-action", request.action()), new TeaPair("user-agent", clientConfiguration.option(ClientOption.USER_AGENT)) ), request.headers().toMap() ); request.setQuery(query).setHeaders(new HttpHeaders(headers)); return request; } }