Class DistributionInfo
java.lang.Object
io.github.alersrt.pod4j.openapi.model.DistributionInfo
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class DistributionInfo
extends Object
implements Serializable
DistributionInfo describes the host distribution for libpod
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
validateJsonObject
Validates 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 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
-