Class Platform

java.lang.Object
io.github.alersrt.pod4j.openapi.model.Platform
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Platform extends Object implements Serializable
Platform
See Also:
  • Field Details

  • Constructor Details

    • Platform

      public Platform()
  • Method Details

    • architecture

      public Platform architecture(String architecture)
    • getArchitecture

      @Nullable public String getArchitecture()
      Architecture field specifies the CPU architecture, for example `amd64` or `ppc64le`.
      Returns:
      architecture
    • setArchitecture

      public void setArchitecture(String architecture)
    • os

      public Platform os(String os)
    • getOs

      @Nullable public String getOs()
      OS specifies the operating system, for example `linux` or `windows`.
      Returns:
      os
    • setOs

      public void setOs(String os)
    • osFeatures

      public Platform osFeatures(List<String> osFeatures)
    • addOsFeaturesItem

      public Platform addOsFeaturesItem(String osFeaturesItem)
    • getOsFeatures

      @Nullable public List<String> 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

      public void setOsFeatures(List<String> osFeatures)
    • osVersion

      public Platform osVersion(String osVersion)
    • getOsVersion

      @Nullable public String getOsVersion()
      OSVersion is an optional field specifying the operating system version, for example on Windows `10.0.14393.1066`.
      Returns:
      osVersion
    • setOsVersion

      public void setOsVersion(String osVersion)
    • variant

      public Platform variant(String variant)
    • getVariant

      @Nullable public String 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

      public void setVariant(String variant)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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 Platform
    • fromJson

      public static Platform fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of Platform to an JSON string
      Returns:
      JSON string