|
| 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.eiam.model.v20211201; |
| 16 | + |
| 17 | +import com.aliyuncs.RpcAcsRequest; |
| 18 | +import java.util.List; |
| 19 | +import com.aliyuncs.http.ProtocolType; |
| 20 | +import com.aliyuncs.http.MethodType; |
| 21 | + |
| 22 | +/** |
| 23 | + * @author auto create |
| 24 | + * @version |
| 25 | + */ |
| 26 | +public class CreateCustomPrivacyPolicyRequest extends RpcAcsRequest<CreateCustomPrivacyPolicyResponse> { |
| 27 | + |
| 28 | + |
| 29 | + private String clientToken; |
| 30 | + |
| 31 | + private String defaultLanguageCode; |
| 32 | + |
| 33 | + private String userConsentType; |
| 34 | + |
| 35 | + private List<CustomPrivacyPolicyContents> customPrivacyPolicyContents; |
| 36 | + |
| 37 | + private String instanceId; |
| 38 | + |
| 39 | + private String customPrivacyPolicyName; |
| 40 | + |
| 41 | + private String status; |
| 42 | + public CreateCustomPrivacyPolicyRequest() { |
| 43 | + super("Eiam", "2021-12-01", "CreateCustomPrivacyPolicy", "eiam"); |
| 44 | + setProtocol(ProtocolType.HTTPS); |
| 45 | + setMethod(MethodType.POST); |
| 46 | + } |
| 47 | + |
| 48 | + public String getClientToken() { |
| 49 | + return this.clientToken; |
| 50 | + } |
| 51 | + |
| 52 | + public void setClientToken(String clientToken) { |
| 53 | + this.clientToken = clientToken; |
| 54 | + if(clientToken != null){ |
| 55 | + putQueryParameter("ClientToken", clientToken); |
| 56 | + } |
| 57 | + } |
| 58 | + |
| 59 | + public String getDefaultLanguageCode() { |
| 60 | + return this.defaultLanguageCode; |
| 61 | + } |
| 62 | + |
| 63 | + public void setDefaultLanguageCode(String defaultLanguageCode) { |
| 64 | + this.defaultLanguageCode = defaultLanguageCode; |
| 65 | + if(defaultLanguageCode != null){ |
| 66 | + putQueryParameter("DefaultLanguageCode", defaultLanguageCode); |
| 67 | + } |
| 68 | + } |
| 69 | + |
| 70 | + public String getUserConsentType() { |
| 71 | + return this.userConsentType; |
| 72 | + } |
| 73 | + |
| 74 | + public void setUserConsentType(String userConsentType) { |
| 75 | + this.userConsentType = userConsentType; |
| 76 | + if(userConsentType != null){ |
| 77 | + putQueryParameter("UserConsentType", userConsentType); |
| 78 | + } |
| 79 | + } |
| 80 | + |
| 81 | + public List<CustomPrivacyPolicyContents> getCustomPrivacyPolicyContents() { |
| 82 | + return this.customPrivacyPolicyContents; |
| 83 | + } |
| 84 | + |
| 85 | + public void setCustomPrivacyPolicyContents(List<CustomPrivacyPolicyContents> customPrivacyPolicyContents) { |
| 86 | + this.customPrivacyPolicyContents = customPrivacyPolicyContents; |
| 87 | + if (customPrivacyPolicyContents != null) { |
| 88 | + for (int depth1 = 0; depth1 < customPrivacyPolicyContents.size(); depth1++) { |
| 89 | + if (customPrivacyPolicyContents.get(depth1) != null) { |
| 90 | + |
| 91 | + putQueryParameter("CustomPrivacyPolicyContents." + (depth1 + 1) + ".CustomPrivacyPolicyTip" , customPrivacyPolicyContents.get(depth1).getCustomPrivacyPolicyTip()); |
| 92 | + putQueryParameter("CustomPrivacyPolicyContents." + (depth1 + 1) + ".LanguageCode" , customPrivacyPolicyContents.get(depth1).getLanguageCode()); |
| 93 | + if (customPrivacyPolicyContents.get(depth1).getCustomPrivacyPolicyItems() != null) { |
| 94 | + for (int depth2 = 0; depth2 < customPrivacyPolicyContents.get(depth1).getCustomPrivacyPolicyItems().size(); depth2++) { |
| 95 | + if (customPrivacyPolicyContents.get(depth1).getCustomPrivacyPolicyItems().get(depth2) != null) { |
| 96 | + |
| 97 | + putQueryParameter("CustomPrivacyPolicyContents." + (depth1 + 1) + ".CustomPrivacyPolicyItems." + (depth2 + 1) + ".CustomPrivacyPolicyItemUrl" , customPrivacyPolicyContents.get(depth1).getCustomPrivacyPolicyItems().get(depth2).getCustomPrivacyPolicyItemUrl()); |
| 98 | + putQueryParameter("CustomPrivacyPolicyContents." + (depth1 + 1) + ".CustomPrivacyPolicyItems." + (depth2 + 1) + ".CustomPrivacyPolicyItemName" , customPrivacyPolicyContents.get(depth1).getCustomPrivacyPolicyItems().get(depth2).getCustomPrivacyPolicyItemName()); |
| 99 | + } |
| 100 | + } |
| 101 | + } |
| 102 | + } |
| 103 | + } |
| 104 | + } |
| 105 | + } |
| 106 | + |
| 107 | + public String getInstanceId() { |
| 108 | + return this.instanceId; |
| 109 | + } |
| 110 | + |
| 111 | + public void setInstanceId(String instanceId) { |
| 112 | + this.instanceId = instanceId; |
| 113 | + if(instanceId != null){ |
| 114 | + putQueryParameter("InstanceId", instanceId); |
| 115 | + } |
| 116 | + } |
| 117 | + |
| 118 | + public String getCustomPrivacyPolicyName() { |
| 119 | + return this.customPrivacyPolicyName; |
| 120 | + } |
| 121 | + |
| 122 | + public void setCustomPrivacyPolicyName(String customPrivacyPolicyName) { |
| 123 | + this.customPrivacyPolicyName = customPrivacyPolicyName; |
| 124 | + if(customPrivacyPolicyName != null){ |
| 125 | + putQueryParameter("CustomPrivacyPolicyName", customPrivacyPolicyName); |
| 126 | + } |
| 127 | + } |
| 128 | + |
| 129 | + public String getStatus() { |
| 130 | + return this.status; |
| 131 | + } |
| 132 | + |
| 133 | + public void setStatus(String status) { |
| 134 | + this.status = status; |
| 135 | + if(status != null){ |
| 136 | + putQueryParameter("Status", status); |
| 137 | + } |
| 138 | + } |
| 139 | + |
| 140 | + public static class CustomPrivacyPolicyContents { |
| 141 | + |
| 142 | + private String customPrivacyPolicyTip; |
| 143 | + |
| 144 | + private String languageCode; |
| 145 | + |
| 146 | + private List<CustomPrivacyPolicyItemsItem> customPrivacyPolicyItems; |
| 147 | + |
| 148 | + public String getCustomPrivacyPolicyTip() { |
| 149 | + return this.customPrivacyPolicyTip; |
| 150 | + } |
| 151 | + |
| 152 | + public void setCustomPrivacyPolicyTip(String customPrivacyPolicyTip) { |
| 153 | + this.customPrivacyPolicyTip = customPrivacyPolicyTip; |
| 154 | + } |
| 155 | + |
| 156 | + public String getLanguageCode() { |
| 157 | + return this.languageCode; |
| 158 | + } |
| 159 | + |
| 160 | + public void setLanguageCode(String languageCode) { |
| 161 | + this.languageCode = languageCode; |
| 162 | + } |
| 163 | + |
| 164 | + public List<CustomPrivacyPolicyItemsItem> getCustomPrivacyPolicyItems() { |
| 165 | + return this.customPrivacyPolicyItems; |
| 166 | + } |
| 167 | + |
| 168 | + public void setCustomPrivacyPolicyItems(List<CustomPrivacyPolicyItemsItem> customPrivacyPolicyItems) { |
| 169 | + this.customPrivacyPolicyItems = customPrivacyPolicyItems; |
| 170 | + } |
| 171 | + |
| 172 | + public static class CustomPrivacyPolicyItemsItem { |
| 173 | + |
| 174 | + private String customPrivacyPolicyItemUrl; |
| 175 | + |
| 176 | + private String customPrivacyPolicyItemName; |
| 177 | + |
| 178 | + public String getCustomPrivacyPolicyItemUrl() { |
| 179 | + return this.customPrivacyPolicyItemUrl; |
| 180 | + } |
| 181 | + |
| 182 | + public void setCustomPrivacyPolicyItemUrl(String customPrivacyPolicyItemUrl) { |
| 183 | + this.customPrivacyPolicyItemUrl = customPrivacyPolicyItemUrl; |
| 184 | + } |
| 185 | + |
| 186 | + public String getCustomPrivacyPolicyItemName() { |
| 187 | + return this.customPrivacyPolicyItemName; |
| 188 | + } |
| 189 | + |
| 190 | + public void setCustomPrivacyPolicyItemName(String customPrivacyPolicyItemName) { |
| 191 | + this.customPrivacyPolicyItemName = customPrivacyPolicyItemName; |
| 192 | + } |
| 193 | + } |
| 194 | + } |
| 195 | + |
| 196 | + @Override |
| 197 | + public Class<CreateCustomPrivacyPolicyResponse> getResponseClass() { |
| 198 | + return CreateCustomPrivacyPolicyResponse.class; |
| 199 | + } |
| 200 | + |
| 201 | +} |
0 commit comments