1919import com .google .gson .annotations .SerializedName ;
2020import com .google .gson .stream .JsonReader ;
2121import com .google .gson .stream .JsonWriter ;
22+ import com .volcengine .fwcenter .model .AddressDetailListForAddAddressBookInput ;
23+ import com .volcengine .fwcenter .model .TagForAddAddressBookInput ;
2224import io .swagger .v3 .oas .annotations .media .Schema ;
2325import java .io .IOException ;
2426import java .util .ArrayList ;
3234
3335
3436public class AddAddressBookRequest {
37+ @ SerializedName ("AddressDetailList" )
38+ private List <AddressDetailListForAddAddressBookInput > addressDetailList = null ;
39+
3540 @ SerializedName ("AddressList" )
3641 private List <String > addressList = null ;
3742
43+ /**
44+ * Gets or Sets autoUpdateType
45+ */
46+ @ JsonAdapter (AutoUpdateTypeEnum .Adapter .class )
47+ public enum AutoUpdateTypeEnum {
48+ @ SerializedName ("Manual" )
49+ MANUAL ("Manual" ),
50+ @ SerializedName ("Tag" )
51+ TAG ("Tag" );
52+
53+ private String value ;
54+
55+ AutoUpdateTypeEnum (String value ) {
56+ this .value = value ;
57+ }
58+ public String getValue () {
59+ return value ;
60+ }
61+
62+ @ Override
63+ public String toString () {
64+ return String .valueOf (value );
65+ }
66+ public static AutoUpdateTypeEnum fromValue (String input ) {
67+ for (AutoUpdateTypeEnum b : AutoUpdateTypeEnum .values ()) {
68+ if (b .value .equals (input )) {
69+ return b ;
70+ }
71+ }
72+ return null ;
73+ }
74+ public static class Adapter extends TypeAdapter <AutoUpdateTypeEnum > {
75+ @ Override
76+ public void write (final JsonWriter jsonWriter , final AutoUpdateTypeEnum enumeration ) throws IOException {
77+ jsonWriter .value (String .valueOf (enumeration .getValue ()));
78+ }
79+
80+ @ Override
81+ public AutoUpdateTypeEnum read (final JsonReader jsonReader ) throws IOException {
82+ Object value = jsonReader .nextString ();
83+ return AutoUpdateTypeEnum .fromValue ((String )(value ));
84+ }
85+ }
86+ } @ SerializedName ("AutoUpdateType" )
87+ private AutoUpdateTypeEnum autoUpdateType = null ;
88+
89+ @ SerializedName ("CloudFirewallId" )
90+ private String cloudFirewallId = null ;
91+
3892 @ SerializedName ("Description" )
3993 private String description = null ;
4094
@@ -48,6 +102,8 @@ public class AddAddressBookRequest {
48102 public enum GroupTypeEnum {
49103 @ SerializedName ("ip" )
50104 IP ("ip" ),
105+ @ SerializedName ("ipv6" )
106+ IPV6 ("ipv6" ),
51107 @ SerializedName ("domain" )
52108 DOMAIN ("domain" ),
53109 @ SerializedName ("port" )
@@ -89,6 +145,131 @@ public GroupTypeEnum read(final JsonReader jsonReader) throws IOException {
89145 } @ SerializedName ("GroupType" )
90146 private GroupTypeEnum groupType = null ;
91147
148+ @ SerializedName ("InstanceTypeList" )
149+ private List <String > instanceTypeList = null ;
150+
151+ /**
152+ * Gets or Sets resourceType
153+ */
154+ @ JsonAdapter (ResourceTypeEnum .Adapter .class )
155+ public enum ResourceTypeEnum {
156+ @ SerializedName ("Eip" )
157+ EIP ("Eip" ),
158+ @ SerializedName ("InternetAsset" )
159+ INTERNETASSET ("InternetAsset" );
160+
161+ private String value ;
162+
163+ ResourceTypeEnum (String value ) {
164+ this .value = value ;
165+ }
166+ public String getValue () {
167+ return value ;
168+ }
169+
170+ @ Override
171+ public String toString () {
172+ return String .valueOf (value );
173+ }
174+ public static ResourceTypeEnum fromValue (String input ) {
175+ for (ResourceTypeEnum b : ResourceTypeEnum .values ()) {
176+ if (b .value .equals (input )) {
177+ return b ;
178+ }
179+ }
180+ return null ;
181+ }
182+ public static class Adapter extends TypeAdapter <ResourceTypeEnum > {
183+ @ Override
184+ public void write (final JsonWriter jsonWriter , final ResourceTypeEnum enumeration ) throws IOException {
185+ jsonWriter .value (String .valueOf (enumeration .getValue ()));
186+ }
187+
188+ @ Override
189+ public ResourceTypeEnum read (final JsonReader jsonReader ) throws IOException {
190+ Object value = jsonReader .nextString ();
191+ return ResourceTypeEnum .fromValue ((String )(value ));
192+ }
193+ }
194+ } @ SerializedName ("ResourceType" )
195+ private ResourceTypeEnum resourceType = null ;
196+
197+ /**
198+ * Gets or Sets tagRelation
199+ */
200+ @ JsonAdapter (TagRelationEnum .Adapter .class )
201+ public enum TagRelationEnum {
202+ @ SerializedName ("And" )
203+ AND ("And" ),
204+ @ SerializedName ("Or" )
205+ OR ("Or" );
206+
207+ private String value ;
208+
209+ TagRelationEnum (String value ) {
210+ this .value = value ;
211+ }
212+ public String getValue () {
213+ return value ;
214+ }
215+
216+ @ Override
217+ public String toString () {
218+ return String .valueOf (value );
219+ }
220+ public static TagRelationEnum fromValue (String input ) {
221+ for (TagRelationEnum b : TagRelationEnum .values ()) {
222+ if (b .value .equals (input )) {
223+ return b ;
224+ }
225+ }
226+ return null ;
227+ }
228+ public static class Adapter extends TypeAdapter <TagRelationEnum > {
229+ @ Override
230+ public void write (final JsonWriter jsonWriter , final TagRelationEnum enumeration ) throws IOException {
231+ jsonWriter .value (String .valueOf (enumeration .getValue ()));
232+ }
233+
234+ @ Override
235+ public TagRelationEnum read (final JsonReader jsonReader ) throws IOException {
236+ Object value = jsonReader .nextString ();
237+ return TagRelationEnum .fromValue ((String )(value ));
238+ }
239+ }
240+ } @ SerializedName ("TagRelation" )
241+ private TagRelationEnum tagRelation = null ;
242+
243+ @ SerializedName ("Tags" )
244+ private List <TagForAddAddressBookInput > tags = null ;
245+
246+ public AddAddressBookRequest addressDetailList (List <AddressDetailListForAddAddressBookInput > addressDetailList ) {
247+ this .addressDetailList = addressDetailList ;
248+ return this ;
249+ }
250+
251+ public AddAddressBookRequest addAddressDetailListItem (AddressDetailListForAddAddressBookInput addressDetailListItem ) {
252+ if (this .addressDetailList == null ) {
253+ this .addressDetailList = new ArrayList <AddressDetailListForAddAddressBookInput >();
254+ }
255+ this .addressDetailList .add (addressDetailListItem );
256+ return this ;
257+ }
258+
259+ /**
260+ * Get addressDetailList
261+ * @return addressDetailList
262+ **/
263+ @ Valid
264+ @ Schema (description = "" )
265+ public List <AddressDetailListForAddAddressBookInput > getAddressDetailList () {
266+ return addressDetailList ;
267+ }
268+
269+ public void setAddressDetailList (List <AddressDetailListForAddAddressBookInput > addressDetailList ) {
270+ this .addressDetailList = addressDetailList ;
271+ }
272+
92273 public AddAddressBookRequest addressList (List <String > addressList ) {
93274 this .addressList = addressList ;
94275 return this ;
@@ -115,6 +296,42 @@ public void setAddressList(List<String> addressList) {
115296 this .addressList = addressList ;
116297 }
117298
299+ public AddAddressBookRequest autoUpdateType (AutoUpdateTypeEnum autoUpdateType ) {
300+ this .autoUpdateType = autoUpdateType ;
301+ return this ;
302+ }
303+
304+ /**
305+ * Get autoUpdateType
306+ * @return autoUpdateType
307+ **/
308+ @ Schema (description = "" )
309+ public AutoUpdateTypeEnum getAutoUpdateType () {
310+ return autoUpdateType ;
311+ }
312+
313+ public void setAutoUpdateType (AutoUpdateTypeEnum autoUpdateType ) {
314+ this .autoUpdateType = autoUpdateType ;
315+ }
316+
317+ public AddAddressBookRequest cloudFirewallId (String cloudFirewallId ) {
318+ this .cloudFirewallId = cloudFirewallId ;
319+ return this ;
320+ }
321+
322+ /**
323+ * Get cloudFirewallId
324+ * @return cloudFirewallId
325+ **/
326+ @ Schema (description = "" )
327+ public String getCloudFirewallId () {
328+ return cloudFirewallId ;
329+ }
330+
331+ public void setCloudFirewallId (String cloudFirewallId ) {
332+ this .cloudFirewallId = cloudFirewallId ;
333+ }
334+
118335 public AddAddressBookRequest description (String description ) {
119336 this .description = description ;
120337 return this ;
@@ -171,6 +388,95 @@ public void setGroupType(GroupTypeEnum groupType) {
171388 this .groupType = groupType ;
172389 }
173390
391+ public AddAddressBookRequest instanceTypeList (List <String > instanceTypeList ) {
392+ this .instanceTypeList = instanceTypeList ;
393+ return this ;
394+ }
395+
396+ public AddAddressBookRequest addInstanceTypeListItem (String instanceTypeListItem ) {
397+ if (this .instanceTypeList == null ) {
398+ this .instanceTypeList = new ArrayList <String >();
399+ }
400+ this .instanceTypeList .add (instanceTypeListItem );
401+ return this ;
402+ }
403+
404+ /**
405+ * Get instanceTypeList
406+ * @return instanceTypeList
407+ **/
408+ @ Schema (description = "" )
409+ public List <String > getInstanceTypeList () {
410+ return instanceTypeList ;
411+ }
412+
413+ public void setInstanceTypeList (List <String > instanceTypeList ) {
414+ this .instanceTypeList = instanceTypeList ;
415+ }
416+
417+ public AddAddressBookRequest resourceType (ResourceTypeEnum resourceType ) {
418+ this .resourceType = resourceType ;
419+ return this ;
420+ }
421+
422+ /**
423+ * Get resourceType
424+ * @return resourceType
425+ **/
426+ @ Schema (description = "" )
427+ public ResourceTypeEnum getResourceType () {
428+ return resourceType ;
429+ }
430+
431+ public void setResourceType (ResourceTypeEnum resourceType ) {
432+ this .resourceType = resourceType ;
433+ }
434+
435+ public AddAddressBookRequest tagRelation (TagRelationEnum tagRelation ) {
436+ this .tagRelation = tagRelation ;
437+ return this ;
438+ }
439+
440+ /**
441+ * Get tagRelation
442+ * @return tagRelation
443+ **/
444+ @ Schema (description = "" )
445+ public TagRelationEnum getTagRelation () {
446+ return tagRelation ;
447+ }
448+
449+ public void setTagRelation (TagRelationEnum tagRelation ) {
450+ this .tagRelation = tagRelation ;
451+ }
452+
453+ public AddAddressBookRequest tags (List <TagForAddAddressBookInput > tags ) {
454+ this .tags = tags ;
455+ return this ;
456+ }
457+
458+ public AddAddressBookRequest addTagsItem (TagForAddAddressBookInput tagsItem ) {
459+ if (this .tags == null ) {
460+ this .tags = new ArrayList <TagForAddAddressBookInput >();
461+ }
462+ this .tags .add (tagsItem );
463+ return this ;
464+ }
465+
466+ /**
467+ * Get tags
468+ * @return tags
469+ **/
470+ @ Valid
471+ @ Schema (description = "" )
472+ public List <TagForAddAddressBookInput > getTags () {
473+ return tags ;
474+ }
475+
476+ public void setTags (List <TagForAddAddressBookInput > tags ) {
477+ this .tags = tags ;
478+ }
479+
174480
175481 @ Override
176482 public boolean equals (java .lang .Object o ) {
@@ -181,15 +487,22 @@ public boolean equals(java.lang.Object o) {
181487 return false ;
182488 }
183489 AddAddressBookRequest addAddressBookRequest = (AddAddressBookRequest ) o ;
184- return Objects .equals (this .addressList , addAddressBookRequest .addressList ) &&
490+ return Objects .equals (this .addressDetailList , addAddressBookRequest .addressDetailList ) &&
491+ Objects .equals (this .addressList , addAddressBookRequest .addressList ) &&
492+ Objects .equals (this .autoUpdateType , addAddressBookRequest .autoUpdateType ) &&
493+ Objects .equals (this .cloudFirewallId , addAddressBookRequest .cloudFirewallId ) &&
185494 Objects .equals (this .description , addAddressBookRequest .description ) &&
186495 Objects .equals (this .groupName , addAddressBookRequest .groupName ) &&
187- Objects .equals (this .groupType , addAddressBookRequest .groupType );
496+ Objects .equals (this .groupType , addAddressBookRequest .groupType ) &&
497+ Objects .equals (this .instanceTypeList , addAddressBookRequest .instanceTypeList ) &&
498+ Objects .equals (this .resourceType , addAddressBookRequest .resourceType ) &&
499+ Objects .equals (this .tagRelation , addAddressBookRequest .tagRelation ) &&
500+ Objects .equals (this .tags , addAddressBookRequest .tags );
188501 }
189502
190503 @ Override
191504 public int hashCode () {
192- return Objects .hash (addressList , description , groupName , groupType );
505+ return Objects .hash (addressDetailList , addressList , autoUpdateType , cloudFirewallId , description , groupName , groupType , instanceTypeList , resourceType , tagRelation , tags );
193506 }
194507
195508
@@ -198,10 +511,17 @@ public String toString() {
198511 StringBuilder sb = new StringBuilder ();
199512 sb .append ("class AddAddressBookRequest {\n " );
200513
514+ sb .append (" addressDetailList: " ).append (toIndentedString (addressDetailList )).append ("\n " );
201515 sb .append (" addressList: " ).append (toIndentedString (addressList )).append ("\n " );
516+ sb .append (" autoUpdateType: " ).append (toIndentedString (autoUpdateType )).append ("\n " );
517+ sb .append (" cloudFirewallId: " ).append (toIndentedString (cloudFirewallId )).append ("\n " );
202518 sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
203519 sb .append (" groupName: " ).append (toIndentedString (groupName )).append ("\n " );
204520 sb .append (" groupType: " ).append (toIndentedString (groupType )).append ("\n " );
521+ sb .append (" instanceTypeList: " ).append (toIndentedString (instanceTypeList )).append ("\n " );
522+ sb .append (" resourceType: " ).append (toIndentedString (resourceType )).append ("\n " );
523+ sb .append (" tagRelation: " ).append (toIndentedString (tagRelation )).append ("\n " );
524+ sb .append (" tags: " ).append (toIndentedString (tags )).append ("\n " );
205525 sb .append ("}" );
206526 return sb .toString ();
207527 }
0 commit comments