1919import com .google .gson .annotations .SerializedName ;
2020import com .google .gson .stream .JsonReader ;
2121import com .google .gson .stream .JsonWriter ;
22+ import com .volcengine .redis .model .SecurityGroupBindInfoForDescribeAllowListsOutput ;
2223import io .swagger .v3 .oas .annotations .media .Schema ;
2324import java .io .IOException ;
25+ import java .util .ArrayList ;
26+ import java .util .List ;
2427import javax .validation .constraints .*;
2528import javax .validation .Valid ;
2629/**
3033
3134
3235public class AllowListForDescribeAllowListsOutput {
36+ /**
37+ * Gets or Sets allowListCategory
38+ */
39+ @ JsonAdapter (AllowListCategoryEnum .Adapter .class )
40+ public enum AllowListCategoryEnum {
41+ @ SerializedName ("Ordinary" )
42+ ORDINARY ("Ordinary" ),
43+ @ SerializedName ("Default" )
44+ DEFAULT ("Default" );
45+
46+ private String value ;
47+
48+ AllowListCategoryEnum (String value ) {
49+ this .value = value ;
50+ }
51+ public String getValue () {
52+ return value ;
53+ }
54+
55+ @ Override
56+ public String toString () {
57+ return String .valueOf (value );
58+ }
59+ public static AllowListCategoryEnum fromValue (String input ) {
60+ for (AllowListCategoryEnum b : AllowListCategoryEnum .values ()) {
61+ if (b .value .equals (input )) {
62+ return b ;
63+ }
64+ }
65+ return null ;
66+ }
67+ public static class Adapter extends TypeAdapter <AllowListCategoryEnum > {
68+ @ Override
69+ public void write (final JsonWriter jsonWriter , final AllowListCategoryEnum enumeration ) throws IOException {
70+ jsonWriter .value (String .valueOf (enumeration .getValue ()));
71+ }
72+
73+ @ Override
74+ public AllowListCategoryEnum read (final JsonReader jsonReader ) throws IOException {
75+ Object value = jsonReader .nextString ();
76+ return AllowListCategoryEnum .fromValue ((String )(value ));
77+ }
78+ }
79+ } @ SerializedName ("AllowListCategory" )
80+ private AllowListCategoryEnum allowListCategory = null ;
81+
3382 @ SerializedName ("AllowListDesc" )
3483 private String allowListDesc = null ;
3584
@@ -48,6 +97,27 @@ public class AllowListForDescribeAllowListsOutput {
4897 @ SerializedName ("AssociatedInstanceNum" )
4998 private Integer associatedInstanceNum = null ;
5099
100+ @ SerializedName ("SecurityGroupBindInfos" )
101+ private List <SecurityGroupBindInfoForDescribeAllowListsOutput > securityGroupBindInfos = null ;
102+
103+ public AllowListForDescribeAllowListsOutput allowListCategory (AllowListCategoryEnum allowListCategory ) {
104+ this .allowListCategory = allowListCategory ;
105+ return this ;
106+ }
107+
108+ /**
109+ * Get allowListCategory
110+ * @return allowListCategory
111+ **/
112+ @ Schema (description = "" )
113+ public AllowListCategoryEnum getAllowListCategory () {
114+ return allowListCategory ;
115+ }
116+
117+ public void setAllowListCategory (AllowListCategoryEnum allowListCategory ) {
118+ this .allowListCategory = allowListCategory ;
119+ }
120+
51121 public AllowListForDescribeAllowListsOutput allowListDesc (String allowListDesc ) {
52122 this .allowListDesc = allowListDesc ;
53123 return this ;
@@ -156,6 +226,33 @@ public void setAssociatedInstanceNum(Integer associatedInstanceNum) {
156226 this .associatedInstanceNum = associatedInstanceNum ;
157227 }
158228
229+ public AllowListForDescribeAllowListsOutput securityGroupBindInfos (List <SecurityGroupBindInfoForDescribeAllowListsOutput > securityGroupBindInfos ) {
230+ this .securityGroupBindInfos = securityGroupBindInfos ;
231+ return this ;
232+ }
233+
234+ public AllowListForDescribeAllowListsOutput addSecurityGroupBindInfosItem (SecurityGroupBindInfoForDescribeAllowListsOutput securityGroupBindInfosItem ) {
235+ if (this .securityGroupBindInfos == null ) {
236+ this .securityGroupBindInfos = new ArrayList <SecurityGroupBindInfoForDescribeAllowListsOutput >();
237+ }
238+ this .securityGroupBindInfos .add (securityGroupBindInfosItem );
239+ return this ;
240+ }
241+
242+ /**
243+ * Get securityGroupBindInfos
244+ * @return securityGroupBindInfos
245+ **/
246+ @ Valid
247+ @ Schema (description = "" )
248+ public List <SecurityGroupBindInfoForDescribeAllowListsOutput > getSecurityGroupBindInfos () {
249+ return securityGroupBindInfos ;
250+ }
251+
252+ public void setSecurityGroupBindInfos (List <SecurityGroupBindInfoForDescribeAllowListsOutput > securityGroupBindInfos ) {
253+ this .securityGroupBindInfos = securityGroupBindInfos ;
254+ }
255+
159256
160257 @ Override
161258 public boolean equals (java .lang .Object o ) {
@@ -166,17 +263,19 @@ public boolean equals(java.lang.Object o) {
166263 return false ;
167264 }
168265 AllowListForDescribeAllowListsOutput allowListForDescribeAllowListsOutput = (AllowListForDescribeAllowListsOutput ) o ;
169- return Objects .equals (this .allowListDesc , allowListForDescribeAllowListsOutput .allowListDesc ) &&
266+ return Objects .equals (this .allowListCategory , allowListForDescribeAllowListsOutput .allowListCategory ) &&
267+ Objects .equals (this .allowListDesc , allowListForDescribeAllowListsOutput .allowListDesc ) &&
170268 Objects .equals (this .allowListIPNum , allowListForDescribeAllowListsOutput .allowListIPNum ) &&
171269 Objects .equals (this .allowListId , allowListForDescribeAllowListsOutput .allowListId ) &&
172270 Objects .equals (this .allowListName , allowListForDescribeAllowListsOutput .allowListName ) &&
173271 Objects .equals (this .allowListType , allowListForDescribeAllowListsOutput .allowListType ) &&
174- Objects .equals (this .associatedInstanceNum , allowListForDescribeAllowListsOutput .associatedInstanceNum );
272+ Objects .equals (this .associatedInstanceNum , allowListForDescribeAllowListsOutput .associatedInstanceNum ) &&
273+ Objects .equals (this .securityGroupBindInfos , allowListForDescribeAllowListsOutput .securityGroupBindInfos );
175274 }
176275
177276 @ Override
178277 public int hashCode () {
179- return Objects .hash (allowListDesc , allowListIPNum , allowListId , allowListName , allowListType , associatedInstanceNum );
278+ return Objects .hash (allowListCategory , allowListDesc , allowListIPNum , allowListId , allowListName , allowListType , associatedInstanceNum , securityGroupBindInfos );
180279 }
181280
182281
@@ -185,12 +284,14 @@ public String toString() {
185284 StringBuilder sb = new StringBuilder ();
186285 sb .append ("class AllowListForDescribeAllowListsOutput {\n " );
187286
287+ sb .append (" allowListCategory: " ).append (toIndentedString (allowListCategory )).append ("\n " );
188288 sb .append (" allowListDesc: " ).append (toIndentedString (allowListDesc )).append ("\n " );
189289 sb .append (" allowListIPNum: " ).append (toIndentedString (allowListIPNum )).append ("\n " );
190290 sb .append (" allowListId: " ).append (toIndentedString (allowListId )).append ("\n " );
191291 sb .append (" allowListName: " ).append (toIndentedString (allowListName )).append ("\n " );
192292 sb .append (" allowListType: " ).append (toIndentedString (allowListType )).append ("\n " );
193293 sb .append (" associatedInstanceNum: " ).append (toIndentedString (associatedInstanceNum )).append ("\n " );
294+ sb .append (" securityGroupBindInfos: " ).append (toIndentedString (securityGroupBindInfos )).append ("\n " );
194295 sb .append ("}" );
195296 return sb .toString ();
196297 }
0 commit comments