@@ -31,97 +31,97 @@ public class CreateZoneRequest {
3131 /**
3232 * The type of ips to use.
3333 */
34- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
34+ @ Nullable @ Getter
3535 private IpType ipsType ;
3636
3737 /**
3838 * The bandwidth type.
3939 */
40- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
40+ @ Nullable @ Getter
4141 private BandwidthType bandwidthType ;
4242
4343 /**
4444 * The ip allocation preset type.
4545 */
46- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
46+ @ Nullable @ Getter
4747 private IpAllocPresetType ipAllocPresetType ;
4848
4949 /**
5050 * The number of ip to allocate.
5151 */
52- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
52+ @ Nullable @ Getter
5353 private Integer ipToAllocate ;
5454
5555 /**
5656 * The country code of the zone ips.
5757 */
58- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
58+ @ Nullable @ Getter
5959 private String country ;
6060
6161 /**
6262 * The country city of the zone ips.
6363 */
64- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
64+ @ Nullable @ Getter
6565 private String countryCity ;
6666
6767 /**
6868 * The boolean to use mobile ips.
6969 */
70- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
70+ @ Nullable @ Getter
7171 private Boolean mobile ;
7272
7373 /**
7474 * The serp boolean.
7575 */
76- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
76+ @ Nullable @ Getter
7777 private Boolean serp ;
7878
7979 /**
8080 * The city targeting permission boolean.
8181 */
82- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
82+ @ Nullable @ Getter
8383 private Boolean cityTargetingPermission ;
8484
8585 /**
8686 * The asn targeting permission boolean.
8787 */
88- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
88+ @ Nullable @ Getter
8989 private Boolean enablingAsnTargetingPermission ;
9090
9191 /**
9292 * The boolean to use vip ips.
9393 */
94- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
94+ @ Nullable @ Getter
9595 private Boolean vip ;
9696
9797 /**
9898 * The vip type.
9999 */
100- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
100+ @ Nullable @ Getter
101101 private VipsType vipsType ;
102102
103103 /**
104104 * The number of vip ips to use.
105105 */
106- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
106+ @ Nullable @ Getter
107107 private Integer vips ;
108108
109109 /**
110110 * The list of domains to whitelist.
111111 */
112- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
113- private List <String > domainWitelist ;
112+ @ Nullable @ Getter
113+ private List <String > domainWhitelist ;
114114
115115 /**
116116 * The vip country code.
117117 */
118- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
118+ @ Nullable @ Getter
119119 private String vipCountry ;
120120
121121 /**
122122 * The vip country city.
123123 */
124- @ Nullable @ Getter @ Setter ( AccessLevel . PUBLIC )
124+ @ Nullable @ Getter
125125 private String vipCountryCity ;
126126
127127 /**
@@ -174,8 +174,8 @@ public CreateZoneRequest(@NotNull final String name,
174174 plan .put ("vips_type" , vipsType .toString ());
175175 if (vips != null )
176176 plan .put ("vips" , vips );
177- if (domainWitelist != null )
178- plan .put ("domain_whitelist" , domainWitelist );
177+ if (domainWhitelist != null )
178+ plan .put ("domain_whitelist" , domainWhitelist );
179179 if (vipCountry != null )
180180 plan .put ("vip_country" , vipCountry );
181181 if (vipCountryCity != null )
@@ -184,4 +184,164 @@ public CreateZoneRequest(@NotNull final String name,
184184 return (result );
185185 }
186186
187+ /**
188+ * Set the country code of the zone ips.
189+ * @param ipsType The country code of the zone ips.
190+ * @return This request.
191+ */
192+ public @ NotNull CreateZoneRequest setIpsType (@ Nullable final IpType ipsType ) {
193+ this .ipsType = ipsType ;
194+ return (this );
195+ }
196+
197+ /**
198+ * Set the bandwidth type.
199+ * @param bandwidthType The bandwidth type.
200+ * @return This request.
201+ */
202+ public @ NotNull CreateZoneRequest setBandwidthType (@ Nullable final BandwidthType bandwidthType ) {
203+ this .bandwidthType = bandwidthType ;
204+ return (this );
205+ }
206+
207+ /**
208+ * Set the ip allocation preset type.
209+ * @param ipAllocPresetType The ip allocation preset type.
210+ * @return This request.
211+ */
212+ public @ NotNull CreateZoneRequest setIpAllocPresetType (@ Nullable final IpAllocPresetType ipAllocPresetType ) {
213+ this .ipAllocPresetType = ipAllocPresetType ;
214+ return (this );
215+ }
216+
217+ /**
218+ * Set the number of ip to allocate.
219+ * @param ipToAllocate The number of ip to allocate.
220+ * @return This request.
221+ */
222+ public @ NotNull CreateZoneRequest setIpToAllocate (@ Nullable final Integer ipToAllocate ) {
223+ this .ipToAllocate = ipToAllocate ;
224+ return (this );
225+ }
226+
227+ /**
228+ * Set the country code.
229+ * @param country The country code.
230+ * @return This request.
231+ */
232+ public @ NotNull CreateZoneRequest setCountry (@ Nullable final String country ) {
233+ this .country = country ;
234+ return (this );
235+ }
236+
237+ /**
238+ * Set the country city.
239+ * @param countryCity The country city.
240+ * @return This request.
241+ */
242+ public @ NotNull CreateZoneRequest setCountryCity (@ Nullable final String countryCity ) {
243+ this .countryCity = countryCity ;
244+ return (this );
245+ }
246+
247+ /**
248+ * Set the mobile boolean.
249+ * @param mobile The mobile boolean.
250+ * @return This request.
251+ */
252+ public @ NotNull CreateZoneRequest setMobile (@ Nullable final Boolean mobile ) {
253+ this .mobile = mobile ;
254+ return (this );
255+ }
256+
257+ /**
258+ * Set the serp boolean.
259+ * @param serp The serp boolean.
260+ * @return This request.
261+ */
262+ public @ NotNull CreateZoneRequest setSerp (@ Nullable final Boolean serp ) {
263+ this .serp = serp ;
264+ return (this );
265+ }
266+
267+ /**
268+ * Set the city targeting permission boolean.
269+ * @param cityTargetingPermission The city targeting permission boolean.
270+ * @return This request.
271+ */
272+ public @ NotNull CreateZoneRequest setCityTargetingPermission (@ Nullable final Boolean cityTargetingPermission ) {
273+ this .cityTargetingPermission = cityTargetingPermission ;
274+ return (this );
275+ }
276+
277+ /**
278+ * Set the asn targeting permission boolean.
279+ * @param enablingAsnTargetingPermission The asn targeting permission boolean.
280+ * @return This request.
281+ */
282+ public @ NotNull CreateZoneRequest setEnablingAsnTargetingPermission (@ Nullable final Boolean enablingAsnTargetingPermission ) {
283+ this .enablingAsnTargetingPermission = enablingAsnTargetingPermission ;
284+ return (this );
285+ }
286+
287+ /**
288+ * Set the domain whitelist.
289+ * @param vip The boolean to use vip ips.
290+ * @return This request.
291+ */
292+ public @ NotNull CreateZoneRequest setVip (@ Nullable final Boolean vip ) {
293+ this .vip = vip ;
294+ return (this );
295+ }
296+
297+ /**
298+ * Set the vip type.
299+ * @param vipsType The vip type.
300+ * @return This request.
301+ */
302+ public @ NotNull CreateZoneRequest setVipsType (@ Nullable final VipsType vipsType ) {
303+ this .vipsType = vipsType ;
304+ return (this );
305+ }
306+
307+ /**
308+ * Set the number of vip ips to use.
309+ * @param vips The number of vip ips to use.
310+ * @return This request.
311+ */
312+ public @ NotNull CreateZoneRequest setVips (@ Nullable final Integer vips ) {
313+ this .vips = vips ;
314+ return (this );
315+ }
316+
317+ /**
318+ * Set the domain whitelist.
319+ * @param domainWhitelist The domain whitelist.
320+ * @return This request.
321+ */
322+ public @ NotNull CreateZoneRequest setDomainWhitelist (@ Nullable final List <String > domainWhitelist ) {
323+ this .domainWhitelist = domainWhitelist ;
324+ return (this );
325+ }
326+
327+ /**
328+ * Set the vip country.
329+ * @param vipCountry The vip country.
330+ * @return This request.
331+ */
332+ public @ NotNull CreateZoneRequest setVipCountry (@ Nullable final String vipCountry ) {
333+ this .vipCountry = vipCountry ;
334+ return (this );
335+ }
336+
337+ /**
338+ * Set the vip country city.
339+ * @param vipCountryCity The vip country city.
340+ * @return This request.
341+ */
342+ public @ NotNull CreateZoneRequest setVipCountryCity (@ Nullable final String vipCountryCity ) {
343+ this .vipCountryCity = vipCountryCity ;
344+ return (this );
345+ }
346+
187347}
0 commit comments