2222import com .fasterxml .jackson .annotation .JsonValue ;
2323import io .swagger .annotations .ApiModel ;
2424import io .swagger .annotations .ApiModelProperty ;
25+ import java .util .ArrayList ;
26+ import java .util .List ;
2527import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
2628
2729/**
3234 CloudRegion .JSON_PROPERTY_KIND ,
3335 CloudRegion .JSON_PROPERTY_ID ,
3436 CloudRegion .JSON_PROPERTY_DISPLAY_NAME ,
35- CloudRegion .JSON_PROPERTY_ENABLED
37+ CloudRegion .JSON_PROPERTY_ENABLED ,
38+ CloudRegion .JSON_PROPERTY_SUPPORTED_INSTANCE_TYPES
3639})
3740@ JsonTypeName ("CloudRegion" )
3841@ javax .annotation .Generated (value = "org.openapitools.codegen.languages.JavaClientCodegen" )
@@ -49,6 +52,9 @@ public class CloudRegion {
4952 public static final String JSON_PROPERTY_ENABLED = "enabled" ;
5053 private Boolean enabled = false ;
5154
55+ public static final String JSON_PROPERTY_SUPPORTED_INSTANCE_TYPES = "supported_instance_types" ;
56+ private List <String > supportedInstanceTypes = new ArrayList <>();
57+
5258
5359 public CloudRegion kind (String kind ) {
5460
@@ -157,6 +163,37 @@ public void setEnabled(Boolean enabled) {
157163 }
158164
159165
166+ public CloudRegion supportedInstanceTypes (List <String > supportedInstanceTypes ) {
167+
168+ this .supportedInstanceTypes = supportedInstanceTypes ;
169+ return this ;
170+ }
171+
172+ public CloudRegion addSupportedInstanceTypesItem (String supportedInstanceTypesItem ) {
173+ this .supportedInstanceTypes .add (supportedInstanceTypesItem );
174+ return this ;
175+ }
176+
177+ /**
178+ * The Kafka instance types supported by this region.
179+ * @return supportedInstanceTypes
180+ **/
181+ @ ApiModelProperty (required = true , value = "The Kafka instance types supported by this region." )
182+ @ JsonProperty (JSON_PROPERTY_SUPPORTED_INSTANCE_TYPES )
183+ @ JsonInclude (value = JsonInclude .Include .ALWAYS )
184+
185+ public List <String > getSupportedInstanceTypes () {
186+ return supportedInstanceTypes ;
187+ }
188+
189+
190+ @ JsonProperty (JSON_PROPERTY_SUPPORTED_INSTANCE_TYPES )
191+ @ JsonInclude (value = JsonInclude .Include .ALWAYS )
192+ public void setSupportedInstanceTypes (List <String > supportedInstanceTypes ) {
193+ this .supportedInstanceTypes = supportedInstanceTypes ;
194+ }
195+
196+
160197 @ Override
161198 public boolean equals (Object o ) {
162199 if (this == o ) {
@@ -169,12 +206,13 @@ public boolean equals(Object o) {
169206 return Objects .equals (this .kind , cloudRegion .kind ) &&
170207 Objects .equals (this .id , cloudRegion .id ) &&
171208 Objects .equals (this .displayName , cloudRegion .displayName ) &&
172- Objects .equals (this .enabled , cloudRegion .enabled );
209+ Objects .equals (this .enabled , cloudRegion .enabled ) &&
210+ Objects .equals (this .supportedInstanceTypes , cloudRegion .supportedInstanceTypes );
173211 }
174212
175213 @ Override
176214 public int hashCode () {
177- return Objects .hash (kind , id , displayName , enabled );
215+ return Objects .hash (kind , id , displayName , enabled , supportedInstanceTypes );
178216 }
179217
180218 @ Override
@@ -185,6 +223,7 @@ public String toString() {
185223 sb .append (" id: " ).append (toIndentedString (id )).append ("\n " );
186224 sb .append (" displayName: " ).append (toIndentedString (displayName )).append ("\n " );
187225 sb .append (" enabled: " ).append (toIndentedString (enabled )).append ("\n " );
226+ sb .append (" supportedInstanceTypes: " ).append (toIndentedString (supportedInstanceTypes )).append ("\n " );
188227 sb .append ("}" );
189228 return sb .toString ();
190229 }
0 commit comments