Class DistributionInfo
java.lang.Object
io.github.alersrt.pod4j.openapi.model.DistributionInfo
@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 DistributionInfo
extends Object
DistributionInfo describes the host distribution for libpod
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondistribution(String distribution) booleanstatic DistributionInfoCreate an instance of DistributionInfo given an JSON stringGet codenameGet distributionGet variantGet versioninthashCode()voidsetCodename(String codename) voidsetDistribution(String distribution) voidsetVariant(String variant) voidsetVersion(String version) toJson()Convert an instance of DistributionInfo 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_CODENAME
- See Also:
-
SERIALIZED_NAME_DISTRIBUTION
- See Also:
-
SERIALIZED_NAME_VARIANT
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
DistributionInfo
public DistributionInfo()
-
-
Method Details
-
codename
-
getCodename
Get codename- Returns:
- codename
-
setCodename
-
distribution
-
getDistribution
Get distribution- Returns:
- distribution
-
setDistribution
-
variant
-
getVariant
Get variant- Returns:
- variant
-
setVariant
-
version
-
getVersion
Get version- Returns:
- version
-
setVersion
-
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 DistributionInfo
-
fromJson
Create an instance of DistributionInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DistributionInfo
- Throws:
IOException- if the JSON string is invalid with respect to DistributionInfo
-
toJson
Convert an instance of DistributionInfo to an JSON string- Returns:
- JSON string
-