Class Platform

java.lang.Object
io.github.alersrt.pod4j.openapi.model.Platform

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class Platform extends Object
Platform
  • Field Details

  • Constructor Details

    • Platform

      public Platform()
  • Method Details

    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      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
    • 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
    • toJson

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