Class Schema2PlatformSpec

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

@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 Schema2PlatformSpec extends Object
Schema2PlatformSpec describes the platform which a particular manifest is specialized for. This is publicly visible as c/image/manifest.Schema2PlatformSpec.
  • Field Details

  • Constructor Details

    • Schema2PlatformSpec

      public Schema2PlatformSpec()
  • Method Details

    • architecture

      public Schema2PlatformSpec architecture(String architecture)
    • getArchitecture

      @Nullable public String getArchitecture()
      Get architecture
      Returns:
      architecture
    • setArchitecture

      public void setArchitecture(String architecture)
    • features

      public Schema2PlatformSpec features(List<String> features)
    • addFeaturesItem

      public Schema2PlatformSpec addFeaturesItem(String featuresItem)
    • getFeatures

      @Nullable public List<String> getFeatures()
      Get features
      Returns:
      features
    • setFeatures

      public void setFeatures(List<String> features)
    • os

      public Schema2PlatformSpec os(String os)
    • getOs

      @Nullable public String getOs()
      Get os
      Returns:
      os
    • setOs

      public void setOs(String os)
    • osFeatures

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

      public Schema2PlatformSpec addOsFeaturesItem(String osFeaturesItem)
    • getOsFeatures

      @Nullable public List<String> getOsFeatures()
      Get osFeatures
      Returns:
      osFeatures
    • setOsFeatures

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

      public Schema2PlatformSpec osVersion(String osVersion)
    • getOsVersion

      @Nullable public String getOsVersion()
      Get osVersion
      Returns:
      osVersion
    • setOsVersion

      public void setOsVersion(String osVersion)
    • variant

      public Schema2PlatformSpec variant(String variant)
    • getVariant

      @Nullable public String getVariant()
      Get variant
      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
    • 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 Schema2PlatformSpec
    • fromJson

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

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