Skip to content

Commit 74e3ba8

Browse files
committed
DocumentInit.
1 parent daf576f commit 74e3ba8

File tree

6 files changed

+96
-5
lines changed

6 files changed

+96
-5
lines changed

documentautoml-20221229/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-03-31 Version: 1.0.5
2+
- DocumentInit.
3+
14
2023-03-30 Version: 1.0.4
25
- DocumentInit.
36

documentautoml-20221229/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0modelVersion>
44
<groupId>com.aliyungroupId>
55
<artifactId>alibabacloud-documentautoml20221229artifactId>
6-
<version>1.0.4version>
6+
<version>1.0.5version>
77
<packaging>jarpackaging>
88
<name>alibabacloud-documentautoml20221229name>
99
<description>Alibaba Cloud documentAutoml (20221229) Async SDK for Java

documentautoml-20221229/src/main/java/com/aliyun/sdk/service/documentautoml20221229/models/CreateModelAsyncPredictRequest.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class CreateModelAsyncPredictRequest extends Request {
1818

1919
@Query
2020
@NameInMap("Content")
21-
@Validation(required = true)
2221
private String content;
2322

2423
@Query
@@ -38,6 +37,10 @@ public class CreateModelAsyncPredictRequest extends Request {
3837
@NameInMap("ServiceVersion")
3938
private String serviceVersion;
4039

40+
@Body
41+
@NameInMap("body")
42+
private String body;
43+
4144
private CreateModelAsyncPredictRequest(Builder builder) {
4245
super(builder);
4346
this.binaryToText = builder.binaryToText;
@@ -46,6 +49,7 @@ private CreateModelAsyncPredictRequest(Builder builder) {
4649
this.modelVersion = builder.modelVersion;
4750
this.serviceName = builder.serviceName;
4851
this.serviceVersion = builder.serviceVersion;
52+
this.body = builder.body;
4953
}
5054

5155
public static Builder builder() {
@@ -103,13 +107,21 @@ public String getServiceVersion() {
103107
return this.serviceVersion;
104108
}
105109

110+
/**
111+
* @return body
112+
*/
113+
public String getBody() {
114+
return this.body;
115+
}
116+
106117
public static final class Builder extends Request.Builder<CreateModelAsyncPredictRequest, Builder> {
107118
private Boolean binaryToText;
108119
private String content;
109120
private Long modelId;
110121
private String modelVersion;
111122
private String serviceName;
112123
private String serviceVersion;
124+
private String body;
113125

114126
private Builder() {
115127
super();
@@ -123,6 +135,7 @@ private Builder(CreateModelAsyncPredictRequest request) {
123135
this.modelVersion = request.modelVersion;
124136
this.serviceName = request.serviceName;
125137
this.serviceVersion = request.serviceVersion;
138+
this.body = request.body;
126139
}
127140

128141
/**
@@ -179,6 +192,15 @@ public Builder serviceVersion(String serviceVersion) {
179192
return this;
180193
}
181194

195+
/**
196+
* body.
197+
*/
198+
public Builder body(String body) {
199+
this.putBodyParameter("body", body);
200+
this.body = body;
201+
return this;
202+
}
203+
182204
@Override
183205
public CreateModelAsyncPredictRequest build() {
184206
return new CreateModelAsyncPredictRequest(this);

documentautoml-20221229/src/main/java/com/aliyun/sdk/service/documentautoml20221229/models/PredictClassifierModelRequest.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@ public class PredictClassifierModelRequest extends Request {
2323

2424
@Query
2525
@NameInMap("Content")
26-
@Validation(required = true)
2726
private String content;
2827

28+
@Body
29+
@NameInMap("body")
30+
private String body;
31+
2932
private PredictClassifierModelRequest(Builder builder) {
3033
super(builder);
3134
this.autoPrediction = builder.autoPrediction;
3235
this.classifierId = builder.classifierId;
3336
this.content = builder.content;
37+
this.body = builder.body;
3438
}
3539

3640
public static Builder builder() {
@@ -67,10 +71,18 @@ public String getContent() {
6771
return this.content;
6872
}
6973

74+
/**
75+
* @return body
76+
*/
77+
public String getBody() {
78+
return this.body;
79+
}
80+
7081
public static final class Builder extends Request.Builder<PredictClassifierModelRequest, Builder> {
7182
private Boolean autoPrediction;
7283
private Long classifierId;
7384
private String content;
85+
private String body;
7486

7587
private Builder() {
7688
super();
@@ -81,6 +93,7 @@ private Builder(PredictClassifierModelRequest request) {
8193
this.autoPrediction = request.autoPrediction;
8294
this.classifierId = request.classifierId;
8395
this.content = request.content;
96+
this.body = request.body;
8497
}
8598

8699
/**
@@ -110,6 +123,15 @@ public Builder content(String content) {
110123
return this;
111124
}
112125

126+
/**
127+
* body.
128+
*/
129+
public Builder body(String body) {
130+
this.putBodyParameter("body", body);
131+
this.body = body;
132+
return this;
133+
}
134+
113135
@Override
114136
public PredictClassifierModelRequest build() {
115137
return new PredictClassifierModelRequest(this);

documentautoml-20221229/src/main/java/com/aliyun/sdk/service/documentautoml20221229/models/PredictModelRequest.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class PredictModelRequest extends Request {
1818

1919
@Query
2020
@NameInMap("Content")
21-
@Validation(required = true)
2221
private String content;
2322

2423
@Query
@@ -30,12 +29,17 @@ public class PredictModelRequest extends Request {
3029
@NameInMap("ModelVersion")
3130
private String modelVersion;
3231

32+
@Body
33+
@NameInMap("body")
34+
private String body;
35+
3336
private PredictModelRequest(Builder builder) {
3437
super(builder);
3538
this.binaryToText = builder.binaryToText;
3639
this.content = builder.content;
3740
this.modelId = builder.modelId;
3841
this.modelVersion = builder.modelVersion;
42+
this.body = builder.body;
3943
}
4044

4145
public static Builder builder() {
@@ -79,11 +83,19 @@ public String getModelVersion() {
7983
return this.modelVersion;
8084
}
8185

86+
/**
87+
* @return body
88+
*/
89+
public String getBody() {
90+
return this.body;
91+
}
92+
8293
public static final class Builder extends Request.Builder<PredictModelRequest, Builder> {
8394
private Boolean binaryToText;
8495
private String content;
8596
private Long modelId;
8697
private String modelVersion;
98+
private String body;
8799

88100
private Builder() {
89101
super();
@@ -95,6 +107,7 @@ private Builder(PredictModelRequest request) {
95107
this.content = request.content;
96108
this.modelId = request.modelId;
97109
this.modelVersion = request.modelVersion;
110+
this.body = request.body;
98111
}
99112

100113
/**
@@ -133,6 +146,15 @@ public Builder modelVersion(String modelVersion) {
133146
return this;
134147
}
135148

149+
/**
150+
* body.
151+
*/
152+
public Builder body(String body) {
153+
this.putBodyParameter("body", body);
154+
this.body = body;
155+
return this;
156+
}
157+
136158
@Override
137159
public PredictModelRequest build() {
138160
return new PredictModelRequest(this);

documentautoml-20221229/src/main/java/com/aliyun/sdk/service/documentautoml20221229/models/PredictTemplateModelRequest.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,23 @@ public class PredictTemplateModelRequest extends Request {
1818

1919
@Query
2020
@NameInMap("Content")
21-
@Validation(required = true)
2221
private String content;
2322

2423
@Query
2524
@NameInMap("TaskId")
2625
@Validation(required = true)
2726
private Long taskId;
2827

28+
@Body
29+
@NameInMap("body")
30+
private String body;
31+
2932
private PredictTemplateModelRequest(Builder builder) {
3033
super(builder);
3134
this.binaryToText = builder.binaryToText;
3235
this.content = builder.content;
3336
this.taskId = builder.taskId;
37+
this.body = builder.body;
3438
}
3539

3640
public static Builder builder() {
@@ -67,10 +71,18 @@ public Long getTaskId() {
6771
return this.taskId;
6872
}
6973

74+
/**
75+
* @return body
76+
*/
77+
public String getBody() {
78+
return this.body;
79+
}
80+
7081
public static final class Builder extends Request.Builder<PredictTemplateModelRequest, Builder> {
7182
private Boolean binaryToText;
7283
private String content;
7384
private Long taskId;
85+
private String body;
7486

7587
private Builder() {
7688
super();
@@ -81,6 +93,7 @@ private Builder(PredictTemplateModelRequest request) {
8193
this.binaryToText = request.binaryToText;
8294
this.content = request.content;
8395
this.taskId = request.taskId;
96+
this.body = request.body;
8497
}
8598

8699
/**
@@ -110,6 +123,15 @@ public Builder taskId(Long taskId) {
110123
return this;
111124
}
112125

126+
/**
127+
* body.
128+
*/
129+
public Builder body(String body) {
130+
this.putBodyParameter("body", body);
131+
this.body = body;
132+
return this;
133+
}
134+
113135
@Override
114136
public PredictTemplateModelRequest build() {
115137
return new PredictTemplateModelRequest(this);

0 commit comments

Comments
 (0)