Class PeerInfo
java.lang.Object
io.github.alersrt.pod4j.openapi.model.PeerInfo
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class PeerInfo
extends Object
PeerInfo represents one peer of an overlay network
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PeerInfoCreate an instance of PeerInfo given an JSON stringgetIP()Get IPgetName()Get nameinthashCode()voidvoidtoJson()Convert an instance of PeerInfo to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_I_P
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PeerInfo
public PeerInfo()
-
-
Method Details
-
IP
-
getIP
Get IP- Returns:
- IP
-
setIP
-
name
-
getName
Get name- Returns:
- name
-
setName
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to PeerInfo
-
fromJson
Create an instance of PeerInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PeerInfo
- Throws:
IOException- if the JSON string is invalid with respect to PeerInfo
-
toJson
Convert an instance of PeerInfo to an JSON string- Returns:
- JSON string
-