Last active
May 19, 2023 01:34
-
-
Save DavidBiesack/d3656e77fafa75a8a45d1d6b12931ec9 to your computer and use it in GitHub Desktop.
Java codegen swagger-codegen output on a simple chainLinks JSON schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Chain Links | |
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) | |
* | |
* OpenAPI spec version: 1.0.0 | |
* | |
* | |
* NOTE: This class is auto generated by the swagger code generator program. | |
* https://github.com/swagger-api/swagger-codegen.git | |
* Do not edit the class manually. | |
*/ | |
package io.swagger.client.model; | |
import java.util.Objects; | |
import java.util.Arrays; | |
import com.google.gson.TypeAdapter; | |
import com.google.gson.annotations.JsonAdapter; | |
import com.google.gson.annotations.SerializedName; | |
import com.google.gson.stream.JsonReader; | |
import com.google.gson.stream.JsonWriter; | |
import io.swagger.v3.oas.annotations.media.Schema; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* A page of chain link items from a collection of chain links. | |
*/ | |
@Schema(description = "A page of chain link items from a collection of chain links.") | |
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2023-05-15T19:32:32.803029-04:00[America/New_York]") | |
public class ChainLinks { | |
@SerializedName("items") | |
private List<Object> items = null; | |
public ChainLinks items(List<Object> items) { | |
this.items = items; | |
return this; | |
} | |
public ChainLinks addItemsItem(Object itemsItem) { | |
if (this.items == null) { | |
this.items = new ArrayList<Object>(); | |
} | |
this.items.add(itemsItem); | |
return this; | |
} | |
/** | |
* A list of chain links in this page | |
* @return items | |
**/ | |
@Schema(description = "A list of chain links in this page") | |
public List<Object> getItems() { | |
return items; | |
} | |
public void setItems(List<Object> items) { | |
this.items = items; | |
} | |
@Override | |
public boolean equals(java.lang.Object o) { | |
if (this == o) { | |
return true; | |
} | |
if (o == null || getClass() != o.getClass()) { | |
return false; | |
} | |
ChainLinks chainLinks = (ChainLinks) o; | |
return Objects.equals(this.items, chainLinks.items); | |
} | |
@Override | |
public int hashCode() { | |
return Objects.hash(items); | |
} | |
@Override | |
public String toString() { | |
StringBuilder sb = new StringBuilder(); | |
sb.append("class ChainLinks {\n"); | |
sb.append(" items: ").append(toIndentedString(items)).append("\n"); | |
sb.append("}"); | |
return sb.toString(); | |
} | |
/** | |
* Convert the given object to string with each line indented by 4 spaces | |
* (except the first line). | |
*/ | |
private String toIndentedString(java.lang.Object o) { | |
if (o == null) { | |
return "null"; | |
} | |
return o.toString().replace("\n", "\n "); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment