|
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + * or more contributor license agreements. See the NOTICE file |
| 4 | + * distributed with this work for additional information |
| 5 | + * regarding copyright ownership. The ASF licenses this file |
| 6 | + * to you under the Apache License, Version 2.0 (the |
| 7 | + * "License"); you may not use this file except in compliance |
| 8 | + * with the License. You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, |
| 13 | + * software distributed under the License is distributed on an |
| 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + * KIND, either express or implied. See the License for the |
| 16 | + * specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + */ |
| 19 | +package com.aliyuncs.green.model.v20160616; |
| 20 | + |
| 21 | +import com.aliyuncs.RpcAcsRequest; |
| 22 | +import java.util.List; |
| 23 | +import com.aliyuncs.http.MethodType; |
| 24 | + |
| 25 | +/** |
| 26 | + * @author auto create |
| 27 | + * @version |
| 28 | + */ |
| 29 | +public class AntispamDetectionRequest extends RpcAcsRequest<AntispamDetectionResponse> { |
| 30 | + |
| 31 | + public AntispamDetectionRequest() { |
| 32 | + super("Green", "2016-06-16", "AntispamDetection"); |
| 33 | + setMethod(MethodType.POST); |
| 34 | + } |
| 35 | + |
| 36 | + private String dataId; |
| 37 | + |
| 38 | + private String postId; |
| 39 | + |
| 40 | + private String sceneId; |
| 41 | + |
| 42 | + private String postNick; |
| 43 | + |
| 44 | + private String postIp; |
| 45 | + |
| 46 | + private String postMac; |
| 47 | + |
| 48 | + private Long postTime; |
| 49 | + |
| 50 | + private String machineCode; |
| 51 | + |
| 52 | + private String parentDataId; |
| 53 | + |
| 54 | + private String title; |
| 55 | + |
| 56 | + private String postContent; |
| 57 | + |
| 58 | + private List<String> imageUrls; |
| 59 | + |
| 60 | + public String getDataId() { |
| 61 | + return this.dataId; |
| 62 | + } |
| 63 | + |
| 64 | + public void setDataId(String dataId) { |
| 65 | + this.dataId = dataId; |
| 66 | + putQueryParameter("DataId", dataId); |
| 67 | + } |
| 68 | + |
| 69 | + public String getPostId() { |
| 70 | + return this.postId; |
| 71 | + } |
| 72 | + |
| 73 | + public void setPostId(String postId) { |
| 74 | + this.postId = postId; |
| 75 | + putQueryParameter("PostId", postId); |
| 76 | + } |
| 77 | + |
| 78 | + public String getSceneId() { |
| 79 | + return this.sceneId; |
| 80 | + } |
| 81 | + |
| 82 | + public void setSceneId(String sceneId) { |
| 83 | + this.sceneId = sceneId; |
| 84 | + putQueryParameter("SceneId", sceneId); |
| 85 | + } |
| 86 | + |
| 87 | + public String getPostNick() { |
| 88 | + return this.postNick; |
| 89 | + } |
| 90 | + |
| 91 | + public void setPostNick(String postNick) { |
| 92 | + this.postNick = postNick; |
| 93 | + putQueryParameter("PostNick", postNick); |
| 94 | + } |
| 95 | + |
| 96 | + public String getPostIp() { |
| 97 | + return this.postIp; |
| 98 | + } |
| 99 | + |
| 100 | + public void setPostIp(String postIp) { |
| 101 | + this.postIp = postIp; |
| 102 | + putQueryParameter("PostIp", postIp); |
| 103 | + } |
| 104 | + |
| 105 | + public String getPostMac() { |
| 106 | + return this.postMac; |
| 107 | + } |
| 108 | + |
| 109 | + public void setPostMac(String postMac) { |
| 110 | + this.postMac = postMac; |
| 111 | + putQueryParameter("PostMac", postMac); |
| 112 | + } |
| 113 | + |
| 114 | + public Long getPostTime() { |
| 115 | + return this.postTime; |
| 116 | + } |
| 117 | + |
| 118 | + public void setPostTime(Long postTime) { |
| 119 | + this.postTime = postTime; |
| 120 | + putQueryParameter("PostTime", postTime); |
| 121 | + } |
| 122 | + |
| 123 | + public String getMachineCode() { |
| 124 | + return this.machineCode; |
| 125 | + } |
| 126 | + |
| 127 | + public void setMachineCode(String machineCode) { |
| 128 | + this.machineCode = machineCode; |
| 129 | + putQueryParameter("MachineCode", machineCode); |
| 130 | + } |
| 131 | + |
| 132 | + public String getParentDataId() { |
| 133 | + return this.parentDataId; |
| 134 | + } |
| 135 | + |
| 136 | + public void setParentDataId(String parentDataId) { |
| 137 | + this.parentDataId = parentDataId; |
| 138 | + putQueryParameter("ParentDataId", parentDataId); |
| 139 | + } |
| 140 | + |
| 141 | + public String getTitle() { |
| 142 | + return this.title; |
| 143 | + } |
| 144 | + |
| 145 | + public void setTitle(String title) { |
| 146 | + this.title = title; |
| 147 | + putQueryParameter("Title", title); |
| 148 | + } |
| 149 | + |
| 150 | + public String getPostContent() { |
| 151 | + return this.postContent; |
| 152 | + } |
| 153 | + |
| 154 | + public void setPostContent(String postContent) { |
| 155 | + this.postContent = postContent; |
| 156 | + putQueryParameter("PostContent", postContent); |
| 157 | + } |
| 158 | + |
| 159 | + public List<String> getImageUrls() { |
| 160 | + return this.imageUrls; |
| 161 | + } |
| 162 | + |
| 163 | + public void setImageUrls(List<String> imageUrls) { |
| 164 | + this.imageUrls = imageUrls; |
| 165 | + for (int i = 0; i < imageUrls.size(); i++) { |
| 166 | + putQueryParameter("ImageUrl." + (i + 1) , imageUrls.get(i)); |
| 167 | + } |
| 168 | + } |
| 169 | + |
| 170 | + @Override |
| 171 | + public Class<AntispamDetectionResponse> getResponseClass() { |
| 172 | + return AntispamDetectionResponse.class; |
| 173 | + } |
| 174 | + |
| 175 | +} |
0 commit comments