|
| 1 | +// This file is auto-generated, don't edit it. Thanks. |
| 2 | +package com.aliyun.sdk.service.waf_openapi20211001.models; |
| 3 | + |
| 4 | +import com.aliyun.sdk.gateway.pop.*; |
| 5 | +import darabonba.core.*; |
| 6 | +import darabonba.core.async.*; |
| 7 | +import darabonba.core.sync.*; |
| 8 | +import darabonba.core.client.*; |
| 9 | +import darabonba.core.RequestModel; |
| 10 | +import darabonba.core.TeaModel; |
| 11 | +import com.aliyun.sdk.gateway.pop.models.*; |
| 12 | + |
| 13 | +/** |
| 14 | + * |
| 15 | + * {@link DescribeIpAbroadCountryInfosRequest} extends {@link RequestModel} |
| 16 | + * |
| 17 | + * DescribeIpAbroadCountryInfosRequest |
| 18 | + */ |
| 19 | +public class DescribeIpAbroadCountryInfosRequest extends Request { |
| 20 | + @com.aliyun.core.annotation.Query |
| 21 | + @com.aliyun.core.annotation.NameInMap("AbroadRegion") |
| 22 | + private String abroadRegion; |
| 23 | + |
| 24 | + @com.aliyun.core.annotation.Query |
| 25 | + @com.aliyun.core.annotation.NameInMap("Country") |
| 26 | + private String country; |
| 27 | + |
| 28 | + @com.aliyun.core.annotation.Query |
| 29 | + @com.aliyun.core.annotation.NameInMap("InstanceId") |
| 30 | + @com.aliyun.core.annotation.Validation(required = true) |
| 31 | + private String instanceId; |
| 32 | + |
| 33 | + @com.aliyun.core.annotation.Query |
| 34 | + @com.aliyun.core.annotation.NameInMap("Language") |
| 35 | + private String language; |
| 36 | + |
| 37 | + @com.aliyun.core.annotation.Query |
| 38 | + @com.aliyun.core.annotation.NameInMap("MaxResults") |
| 39 | + @com.aliyun.core.annotation.Validation(maximum = 500, minimum = 1) |
| 40 | + private Integer maxResults; |
| 41 | + |
| 42 | + @com.aliyun.core.annotation.Query |
| 43 | + @com.aliyun.core.annotation.NameInMap("NextToken") |
| 44 | + private String nextToken; |
| 45 | + |
| 46 | + @com.aliyun.core.annotation.Query |
| 47 | + @com.aliyun.core.annotation.NameInMap("RegionId") |
| 48 | + private String regionId; |
| 49 | + |
| 50 | + @com.aliyun.core.annotation.Query |
| 51 | + @com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId") |
| 52 | + private String resourceManagerResourceGroupId; |
| 53 | + |
| 54 | + private DescribeIpAbroadCountryInfosRequest(Builder builder) { |
| 55 | + super(builder); |
| 56 | + this.abroadRegion = builder.abroadRegion; |
| 57 | + this.country = builder.country; |
| 58 | + this.instanceId = builder.instanceId; |
| 59 | + this.language = builder.language; |
| 60 | + this.maxResults = builder.maxResults; |
| 61 | + this.nextToken = builder.nextToken; |
| 62 | + this.regionId = builder.regionId; |
| 63 | + this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId; |
| 64 | + } |
| 65 | + |
| 66 | + public static Builder builder() { |
| 67 | + return new Builder(); |
| 68 | + } |
| 69 | + |
| 70 | + public static DescribeIpAbroadCountryInfosRequest create() { |
| 71 | + return builder().build(); |
| 72 | + } |
| 73 | + |
| 74 | +@Override |
| 75 | + public Builder toBuilder() { |
| 76 | + return new Builder(this); |
| 77 | + } |
| 78 | + |
| 79 | + /** |
| 80 | + * @return abroadRegion |
| 81 | + */ |
| 82 | + public String getAbroadRegion() { |
| 83 | + return this.abroadRegion; |
| 84 | + } |
| 85 | + |
| 86 | + /** |
| 87 | + * @return country |
| 88 | + */ |
| 89 | + public String getCountry() { |
| 90 | + return this.country; |
| 91 | + } |
| 92 | + |
| 93 | + /** |
| 94 | + * @return instanceId |
| 95 | + */ |
| 96 | + public String getInstanceId() { |
| 97 | + return this.instanceId; |
| 98 | + } |
| 99 | + |
| 100 | + /** |
| 101 | + * @return language |
| 102 | + */ |
| 103 | + public String getLanguage() { |
| 104 | + return this.language; |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * @return maxResults |
| 109 | + */ |
| 110 | + public Integer getMaxResults() { |
| 111 | + return this.maxResults; |
| 112 | + } |
| 113 | + |
| 114 | + /** |
| 115 | + * @return nextToken |
| 116 | + */ |
| 117 | + public String getNextToken() { |
| 118 | + return this.nextToken; |
| 119 | + } |
| 120 | + |
| 121 | + /** |
| 122 | + * @return regionId |
| 123 | + */ |
| 124 | + public String getRegionId() { |
| 125 | + return this.regionId; |
| 126 | + } |
| 127 | + |
| 128 | + /** |
| 129 | + * @return resourceManagerResourceGroupId |
| 130 | + */ |
| 131 | + public String getResourceManagerResourceGroupId() { |
| 132 | + return this.resourceManagerResourceGroupId; |
| 133 | + } |
| 134 | + |
| 135 | + public static final class Builder extends Request.Builder<DescribeIpAbroadCountryInfosRequest, Builder> { |
| 136 | + private String abroadRegion; |
| 137 | + private String country; |
| 138 | + private String instanceId; |
| 139 | + private String language; |
| 140 | + private Integer maxResults; |
| 141 | + private String nextToken; |
| 142 | + private String regionId; |
| 143 | + private String resourceManagerResourceGroupId; |
| 144 | + |
| 145 | + private Builder() { |
| 146 | + super(); |
| 147 | + } |
| 148 | + |
| 149 | + private Builder(DescribeIpAbroadCountryInfosRequest request) { |
| 150 | + super(request); |
| 151 | + this.abroadRegion = request.abroadRegion; |
| 152 | + this.country = request.country; |
| 153 | + this.instanceId = request.instanceId; |
| 154 | + this.language = request.language; |
| 155 | + this.maxResults = request.maxResults; |
| 156 | + this.nextToken = request.nextToken; |
| 157 | + this.regionId = request.regionId; |
| 158 | + this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId; |
| 159 | + } |
| 160 | + |
| 161 | + /** |
| 162 | + * AbroadRegion. |
| 163 | + */ |
| 164 | + public Builder abroadRegion(String abroadRegion) { |
| 165 | + this.putQueryParameter("AbroadRegion", abroadRegion); |
| 166 | + this.abroadRegion = abroadRegion; |
| 167 | + return this; |
| 168 | + } |
| 169 | + |
| 170 | + /** |
| 171 | + * Country. |
| 172 | + */ |
| 173 | + public Builder country(String country) { |
| 174 | + this.putQueryParameter("Country", country); |
| 175 | + this.country = country; |
| 176 | + return this; |
| 177 | + } |
| 178 | + |
| 179 | + /** |
| 180 | + * This parameter is required. |
| 181 | + * |
| 182 | + * example: |
| 183 | + * waf_elasticity-cn-0xl*******005 |
| 184 | + */ |
| 185 | + public Builder instanceId(String instanceId) { |
| 186 | + this.putQueryParameter("InstanceId", instanceId); |
| 187 | + this.instanceId = instanceId; |
| 188 | + return this; |
| 189 | + } |
| 190 | + |
| 191 | + /** |
| 192 | + * Language. |
| 193 | + */ |
| 194 | + public Builder language(String language) { |
| 195 | + this.putQueryParameter("Language", language); |
| 196 | + this.language = language; |
| 197 | + return this; |
| 198 | + } |
| 199 | + |
| 200 | + /** |
| 201 | + * MaxResults. |
| 202 | + */ |
| 203 | + public Builder maxResults(Integer maxResults) { |
| 204 | + this.putQueryParameter("MaxResults", maxResults); |
| 205 | + this.maxResults = maxResults; |
| 206 | + return this; |
| 207 | + } |
| 208 | + |
| 209 | + /** |
| 210 | + * NextToken. |
| 211 | + */ |
| 212 | + public Builder nextToken(String nextToken) { |
| 213 | + this.putQueryParameter("NextToken", nextToken); |
| 214 | + this.nextToken = nextToken; |
| 215 | + return this; |
| 216 | + } |
| 217 | + |
| 218 | + /** |
| 219 | + * RegionId. |
| 220 | + */ |
| 221 | + public Builder regionId(String regionId) { |
| 222 | + this.putQueryParameter("RegionId", regionId); |
| 223 | + this.regionId = regionId; |
| 224 | + return this; |
| 225 | + } |
| 226 | + |
| 227 | + /** |
| 228 | + * ResourceManagerResourceGroupId. |
| 229 | + */ |
| 230 | + public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) { |
| 231 | + this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId); |
| 232 | + this.resourceManagerResourceGroupId = resourceManagerResourceGroupId; |
| 233 | + return this; |
| 234 | + } |
| 235 | + |
| 236 | + @Override |
| 237 | + public DescribeIpAbroadCountryInfosRequest build() { |
| 238 | + return new DescribeIpAbroadCountryInfosRequest(this); |
| 239 | + } |
| 240 | + |
| 241 | + } |
| 242 | + |
| 243 | +} |
0 commit comments