Package model
Class SettlementsListEmbedded
- java.lang.Object
-
- model.SettlementsListEmbedded
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class SettlementsListEmbedded extends Object
List of `Settlement` objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSettlementsListEmbedded.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_SETTLEMENTS
-
Constructor Summary
Constructors Constructor Description SettlementsListEmbedded()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SettlementsListEmbeddedaddSettlementsItem(Settlement settlementsItem)booleanequals(Object o)static SettlementsListEmbeddedfromJson(String jsonString)Create an instance of SettlementsListEmbedded given an JSON stringSet<Settlement>getSettlements()`Settlements` resource.inthashCode()voidsetSettlements(Set<Settlement> settlements)SettlementsListEmbeddedsettlements(Set<Settlement> settlements)StringtoJson()Convert an instance of SettlementsListEmbedded to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
settlements
public SettlementsListEmbedded settlements(Set<Settlement> settlements)
-
addSettlementsItem
public SettlementsListEmbedded addSettlementsItem(Settlement settlementsItem)
-
getSettlements
@Nullable public Set<Settlement> getSettlements()
`Settlements` resource.- Returns:
- settlements
-
setSettlements
public void setSettlements(Set<Settlement> settlements)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to SettlementsListEmbedded
-
fromJson
public static SettlementsListEmbedded fromJson(String jsonString) throws IOException
Create an instance of SettlementsListEmbedded given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SettlementsListEmbedded
- Throws:
IOException- if the JSON string is invalid with respect to SettlementsListEmbedded
-
toJson
public String toJson()
Convert an instance of SettlementsListEmbedded to an JSON string- Returns:
- JSON string
-
-