Class Schema2PlatformSpec
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Schema2PlatformSpec
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Schema2PlatformSpec
extends Object
implements Serializable
Schema2PlatformSpec describes the platform which a particular manifest is specialized for. This is publicly visible as c/image/manifest.Schema2PlatformSpec.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFeaturesItem(String featuresItem) addOsFeaturesItem(String osFeaturesItem) architecture(String architecture) booleanstatic Schema2PlatformSpecCreate an instance of Schema2PlatformSpec given an JSON stringGet architectureGet featuresgetOs()Get osGet osFeaturesGet osVersionGet variantinthashCode()osFeatures(List<String> osFeatures) voidsetArchitecture(String architecture) voidsetFeatures(List<String> features) voidvoidsetOsFeatures(List<String> osFeatures) voidsetOsVersion(String osVersion) voidsetVariant(String variant) toJson()Convert an instance of Schema2PlatformSpec 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_ARCHITECTURE
- See Also:
-
SERIALIZED_NAME_FEATURES
- 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
-
Schema2PlatformSpec
public Schema2PlatformSpec()
-
-
Method Details
-
architecture
-
getArchitecture
Get architecture- Returns:
- architecture
-
setArchitecture
-
features
-
addFeaturesItem
-
getFeatures
Get features- Returns:
- features
-
setFeatures
-
os
-
getOs
Get os- Returns:
- os
-
setOs
-
osFeatures
-
addOsFeaturesItem
-
getOsFeatures
Get osFeatures- Returns:
- osFeatures
-
setOsFeatures
-
osVersion
-
getOsVersion
Get osVersion- Returns:
- osVersion
-
setOsVersion
-
variant
-
getVariant
Get variant- Returns:
- variant
-
setVariant
-
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 Schema2PlatformSpec
-
fromJson
Create an instance of Schema2PlatformSpec given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Schema2PlatformSpec
- Throws:
IOException- if the JSON string is invalid with respect to Schema2PlatformSpec
-
toJson
Convert an instance of Schema2PlatformSpec to an JSON string- Returns:
- JSON string
-