|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | + * you may not use this file except in compliance with the License. |
| 4 | + * You may obtain a copy of the License at |
| 5 | + * |
| 6 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | + * |
| 8 | + * Unless required by applicable law or agreed to in writing, software |
| 9 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | + * See the License for the specific language governing permissions and |
| 12 | + * limitations under the License. |
| 13 | + */ |
| 14 | + |
| 15 | +package com.aliyuncs.mpaas.model.v20201028; |
| 16 | + |
| 17 | +import com.aliyuncs.RpcAcsRequest; |
| 18 | +import com.aliyuncs.http.ProtocolType; |
| 19 | +import com.aliyuncs.http.MethodType; |
| 20 | +import com.aliyuncs.mpaas.Endpoint; |
| 21 | + |
| 22 | +/** |
| 23 | + * @author auto create |
| 24 | + * @version |
| 25 | + */ |
| 26 | +public class CreateTemplateRequest extends RpcAcsRequest<CreateTemplateResponse> { |
| 27 | + |
| 28 | + |
| 29 | + private String imageUrls; |
| 30 | + |
| 31 | + private String title; |
| 32 | + |
| 33 | + private String content; |
| 34 | + |
| 35 | + private String iconUrls; |
| 36 | + |
| 37 | + private String descInfo; |
| 38 | + |
| 39 | + private String tenantId; |
| 40 | + |
| 41 | + private String templateName; |
| 42 | + |
| 43 | + private Integer jumpAction; |
| 44 | + |
| 45 | + private Integer pushStyle; |
| 46 | + |
| 47 | + private String variables; |
| 48 | + |
| 49 | + private String uri; |
| 50 | + |
| 51 | + private Long showStyle; |
| 52 | + |
| 53 | + private String appId; |
| 54 | + |
| 55 | + private String workspaceId; |
| 56 | + public CreateTemplateRequest() { |
| 57 | + super("mPaaS", "2020-10-28", "CreateTemplate", "mpaas"); |
| 58 | + setProtocol(ProtocolType.HTTPS); |
| 59 | + setMethod(MethodType.POST); |
| 60 | + try { |
| 61 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); |
| 62 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); |
| 63 | + } catch (Exception e) {} |
| 64 | + } |
| 65 | + |
| 66 | + public String getImageUrls() { |
| 67 | + return this.imageUrls; |
| 68 | + } |
| 69 | + |
| 70 | + public void setImageUrls(String imageUrls) { |
| 71 | + this.imageUrls = imageUrls; |
| 72 | + if(imageUrls != null){ |
| 73 | + putBodyParameter("ImageUrls", imageUrls); |
| 74 | + } |
| 75 | + } |
| 76 | + |
| 77 | + public String getTitle() { |
| 78 | + return this.title; |
| 79 | + } |
| 80 | + |
| 81 | + public void setTitle(String title) { |
| 82 | + this.title = title; |
| 83 | + if(title != null){ |
| 84 | + putBodyParameter("Title", title); |
| 85 | + } |
| 86 | + } |
| 87 | + |
| 88 | + public String getContent() { |
| 89 | + return this.content; |
| 90 | + } |
| 91 | + |
| 92 | + public void setContent(String content) { |
| 93 | + this.content = content; |
| 94 | + if(content != null){ |
| 95 | + putBodyParameter("Content", content); |
| 96 | + } |
| 97 | + } |
| 98 | + |
| 99 | + public String getIconUrls() { |
| 100 | + return this.iconUrls; |
| 101 | + } |
| 102 | + |
| 103 | + public void setIconUrls(String iconUrls) { |
| 104 | + this.iconUrls = iconUrls; |
| 105 | + if(iconUrls != null){ |
| 106 | + putBodyParameter("IconUrls", iconUrls); |
| 107 | + } |
| 108 | + } |
| 109 | + |
| 110 | + public String getDescInfo() { |
| 111 | + return this.descInfo; |
| 112 | + } |
| 113 | + |
| 114 | + public void setDescInfo(String descInfo) { |
| 115 | + this.descInfo = descInfo; |
| 116 | + if(descInfo != null){ |
| 117 | + putBodyParameter("DescInfo", descInfo); |
| 118 | + } |
| 119 | + } |
| 120 | + |
| 121 | + public String getTenantId() { |
| 122 | + return this.tenantId; |
| 123 | + } |
| 124 | + |
| 125 | + public void setTenantId(String tenantId) { |
| 126 | + this.tenantId = tenantId; |
| 127 | + if(tenantId != null){ |
| 128 | + putBodyParameter("TenantId", tenantId); |
| 129 | + } |
| 130 | + } |
| 131 | + |
| 132 | + public String getTemplateName() { |
| 133 | + return this.templateName; |
| 134 | + } |
| 135 | + |
| 136 | + public void setTemplateName(String templateName) { |
| 137 | + this.templateName = templateName; |
| 138 | + if(templateName != null){ |
| 139 | + putBodyParameter("TemplateName", templateName); |
| 140 | + } |
| 141 | + } |
| 142 | + |
| 143 | + public Integer getJumpAction() { |
| 144 | + return this.jumpAction; |
| 145 | + } |
| 146 | + |
| 147 | + public void setJumpAction(Integer jumpAction) { |
| 148 | + this.jumpAction = jumpAction; |
| 149 | + if(jumpAction != null){ |
| 150 | + putBodyParameter("JumpAction", jumpAction.toString()); |
| 151 | + } |
| 152 | + } |
| 153 | + |
| 154 | + public Integer getPushStyle() { |
| 155 | + return this.pushStyle; |
| 156 | + } |
| 157 | + |
| 158 | + public void setPushStyle(Integer pushStyle) { |
| 159 | + this.pushStyle = pushStyle; |
| 160 | + if(pushStyle != null){ |
| 161 | + putBodyParameter("PushStyle", pushStyle.toString()); |
| 162 | + } |
| 163 | + } |
| 164 | + |
| 165 | + public String getVariables() { |
| 166 | + return this.variables; |
| 167 | + } |
| 168 | + |
| 169 | + public void setVariables(String variables) { |
| 170 | + this.variables = variables; |
| 171 | + if(variables != null){ |
| 172 | + putBodyParameter("Variables", variables); |
| 173 | + } |
| 174 | + } |
| 175 | + |
| 176 | + public String getUri() { |
| 177 | + return this.uri; |
| 178 | + } |
| 179 | + |
| 180 | + public void setUri(String uri) { |
| 181 | + this.uri = uri; |
| 182 | + if(uri != null){ |
| 183 | + putBodyParameter("Uri", uri); |
| 184 | + } |
| 185 | + } |
| 186 | + |
| 187 | + public Long getShowStyle() { |
| 188 | + return this.showStyle; |
| 189 | + } |
| 190 | + |
| 191 | + public void setShowStyle(Long showStyle) { |
| 192 | + this.showStyle = showStyle; |
| 193 | + if(showStyle != null){ |
| 194 | + putBodyParameter("ShowStyle", showStyle.toString()); |
| 195 | + } |
| 196 | + } |
| 197 | + |
| 198 | + public String getAppId() { |
| 199 | + return this.appId; |
| 200 | + } |
| 201 | + |
| 202 | + public void setAppId(String appId) { |
| 203 | + this.appId = appId; |
| 204 | + if(appId != null){ |
| 205 | + putBodyParameter("AppId", appId); |
| 206 | + } |
| 207 | + } |
| 208 | + |
| 209 | + public String getWorkspaceId() { |
| 210 | + return this.workspaceId; |
| 211 | + } |
| 212 | + |
| 213 | + public void setWorkspaceId(String workspaceId) { |
| 214 | + this.workspaceId = workspaceId; |
| 215 | + if(workspaceId != null){ |
| 216 | + putBodyParameter("WorkspaceId", workspaceId); |
| 217 | + } |
| 218 | + } |
| 219 | + |
| 220 | + @Override |
| 221 | + public Class<CreateTemplateResponse> getResponseClass() { |
| 222 | + return CreateTemplateResponse.class; |
| 223 | + } |
| 224 | + |
| 225 | +} |
0 commit comments