Skip to content

Commit

Permalink
Generated 2020-06-06 for cams.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Apr 11, 2024
1 parent 2a27298 commit a9dd4e7
Show file tree
Hide file tree
Showing 68 changed files with 4,309 additions and 116 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-cams/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-04-11 Version: 1.0.11
- Generated 2020-06-06 for `cams`.

2023-10-19 Version: 1.0.10
- Coupon template
- Carousel template
Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-cams/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-cams</artifactId>
<packaging>jar</packaging>
<version>1.0.10</version>
<version>1.0.11</version>
<name>aliyun-java-sdk-cams</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,15 @@ public static class ButtonsItem {
@SerializedName("CouponCode")
private String couponCode;

@SerializedName("FlowId")
private String flowId;

@SerializedName("FlowAction")
private String flowAction;

@SerializedName("NavigateScreen")
private String navigateScreen;

public String getType() {
return this.type;
}
Expand Down Expand Up @@ -449,6 +458,30 @@ public String getCouponCode() {
public void setCouponCode(String couponCode) {
this.couponCode = couponCode;
}

public String getFlowId() {
return this.flowId;
}

public void setFlowId(String flowId) {
this.flowId = flowId;
}

public String getFlowAction() {
return this.flowAction;
}

public void setFlowAction(String flowAction) {
this.flowAction = flowAction;
}

public String getNavigateScreen() {
return this.navigateScreen;
}

public void setNavigateScreen(String navigateScreen) {
this.navigateScreen = navigateScreen;
}
}

public static class CardsItem {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.cams.model.v20200606;

import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.cams.Endpoint;

/**
* @author auto create
* @version
*/
public class CreateFlowRequest extends RpcAcsRequest<CreateFlowResponse> {


@SerializedName("categories")
private List<String> categories;

private String custSpaceId;

private String flowName;
public CreateFlowRequest() {
super("cams", "2020-06-06", "CreateFlow", "cams");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public List<String> getCategories() {
return this.categories;
}

public void setCategories(List<String> categories) {
this.categories = categories;
if (categories != null) {
putBodyParameter("Categories" , new Gson().toJson(categories));
}
}

public String getCustSpaceId() {
return this.custSpaceId;
}

public void setCustSpaceId(String custSpaceId) {
this.custSpaceId = custSpaceId;
if(custSpaceId != null){
putBodyParameter("CustSpaceId", custSpaceId);
}
}

public String getFlowName() {
return this.flowName;
}

public void setFlowName(String flowName) {
this.flowName = flowName;
if(flowName != null){
putBodyParameter("FlowName", flowName);
}
}

@Override
public Class<CreateFlowResponse> getResponseClass() {
return CreateFlowResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.cams.model.v20200606;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.cams.transform.v20200606.CreateFlowResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class CreateFlowResponse extends AcsResponse {

private String requestId;

private String code;

private String message;

private Data data;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getCode() {
return this.code;
}

public void setCode(String code) {
this.code = code;
}

public String getMessage() {
return this.message;
}

public void setMessage(String message) {
this.message = message;
}

public Data getData() {
return this.data;
}

public void setData(Data data) {
this.data = data;
}

public static class Data {

private String flowId;

private String flowName;

private List<String> categories;

public String getFlowId() {
return this.flowId;
}

public void setFlowId(String flowId) {
this.flowId = flowId;
}

public String getFlowName() {
return this.flowName;
}

public void setFlowName(String flowName) {
this.flowName = flowName;
}

public List<String> getCategories() {
return this.categories;
}

public void setCategories(List<String> categories) {
this.categories = categories;
}
}

@Override
public CreateFlowResponse getInstance(UnmarshallerContext context) {
return CreateFlowResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.cams.model.v20200606;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.cams.Endpoint;

/**
* @author auto create
* @version
*/
public class CreatePhoneMessageQrdlRequest extends RpcAcsRequest<CreatePhoneMessageQrdlResponse> {


private String phoneNumber;

private String prefilledMessage;

private String generateQrImage;

private String custSpaceId;
public CreatePhoneMessageQrdlRequest() {
super("cams", "2020-06-06", "CreatePhoneMessageQrdl", "cams");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public String getPhoneNumber() {
return this.phoneNumber;
}

public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
if(phoneNumber != null){
putBodyParameter("PhoneNumber", phoneNumber);
}
}

public String getPrefilledMessage() {
return this.prefilledMessage;
}

public void setPrefilledMessage(String prefilledMessage) {
this.prefilledMessage = prefilledMessage;
if(prefilledMessage != null){
putBodyParameter("PrefilledMessage", prefilledMessage);
}
}

public String getGenerateQrImage() {
return this.generateQrImage;
}

public void setGenerateQrImage(String generateQrImage) {
this.generateQrImage = generateQrImage;
if(generateQrImage != null){
putBodyParameter("GenerateQrImage", generateQrImage);
}
}

public String getCustSpaceId() {
return this.custSpaceId;
}

public void setCustSpaceId(String custSpaceId) {
this.custSpaceId = custSpaceId;
if(custSpaceId != null){
putBodyParameter("CustSpaceId", custSpaceId);
}
}

@Override
public Class<CreatePhoneMessageQrdlResponse> getResponseClass() {
return CreatePhoneMessageQrdlResponse.class;
}

}
Loading

0 comments on commit a9dd4e7

Please sign in to comment.