Class Platform
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Platform
@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 Platform
extends Object
Platform
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOsFeaturesItem(String osFeaturesItem) architecture(String architecture) booleanstatic PlatformCreate an instance of Platform given an JSON stringArchitecture field specifies the CPU architecture, for example `amd64` or `ppc64le`.getOs()OS specifies the operating system, for example `linux` or `windows`.OSFeatures is an optional field specifying an array of strings, each listing a required OS feature (for example on Windows `win32k`).OSVersion is an optional field specifying the operating system version, for example on Windows `10.0.14393.1066`.Variant is an optional field specifying a variant of the CPU, for example `v7` to specify ARMv7 when architecture is `arm`.inthashCode()osFeatures(List<String> osFeatures) voidsetArchitecture(String architecture) voidvoidsetOsFeatures(List<String> osFeatures) voidsetOsVersion(String osVersion) voidsetVariant(String variant) toJson()Convert an instance of Platform 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_ARCHITECTURE
- See Also:
-
SERIALIZED_NAME_OS
- See Also:
-
SERIALIZED_NAME_OS_FEATURES
- See Also:
-
SERIALIZED_NAME_OS_VERSION
- See Also:
-
SERIALIZED_NAME_VARIANT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Platform
public Platform()
-
-
Method Details
-
architecture
-
getArchitecture
Architecture field specifies the CPU architecture, for example `amd64` or `ppc64le`.- Returns:
- architecture
-
setArchitecture
-
os
-
getOs
OS specifies the operating system, for example `linux` or `windows`.- Returns:
- os
-
setOs
-
osFeatures
-
addOsFeaturesItem
-
getOsFeatures
OSFeatures is an optional field specifying an array of strings, each listing a required OS feature (for example on Windows `win32k`).- Returns:
- osFeatures
-
setOsFeatures
-
osVersion
-
getOsVersion
OSVersion is an optional field specifying the operating system version, for example on Windows `10.0.14393.1066`.- Returns:
- osVersion
-
setOsVersion
-
variant
-
getVariant
Variant is an optional field specifying a variant of the CPU, for example `v7` to specify ARMv7 when architecture is `arm`.- Returns:
- variant
-
setVariant
-
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 Platform
-
fromJson
Create an instance of Platform given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Platform
- Throws:
IOException- if the JSON string is invalid with respect to Platform
-
toJson
Convert an instance of Platform to an JSON string- Returns:
- JSON string
-