Class Schema2ManifestDescriptor

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

@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 Schema2ManifestDescriptor extends Object
This is publicly visible as c/image/manifest.Schema2ManifestDescriptor.
  • Field Details

  • Constructor Details

    • Schema2ManifestDescriptor

      public Schema2ManifestDescriptor()
  • 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 Schema2ManifestDescriptor
    • fromJson

      public static Schema2ManifestDescriptor fromJson(String jsonString) throws IOException
      Create an instance of Schema2ManifestDescriptor given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of Schema2ManifestDescriptor
      Throws:
      IOException - if the JSON string is invalid with respect to Schema2ManifestDescriptor
    • digest

      public Schema2ManifestDescriptor digest(String digest)
    • getDigest

      @Nullable public String getDigest()
      The following is an example of the contents of Digest types: sha256:7173b809ca12ec5dee4506cd86be934c4596dd234ee82c0662eac04a8c2c71dc This allows to abstract the digest behind this type and work only in those terms.
      Returns:
      digest
    • setDigest

      public void setDigest(String digest)
    • mediaType

      public Schema2ManifestDescriptor mediaType(String mediaType)
    • getMediaType

      @Nullable public String getMediaType()
      Get mediaType
      Returns:
      mediaType
    • setMediaType

      public void setMediaType(String mediaType)
    • platform

      public Schema2ManifestDescriptor platform(Schema2PlatformSpec platform)
    • getPlatform

      @Nullable @Valid public @Valid Schema2PlatformSpec getPlatform()
      Get platform
      Returns:
      platform
    • setPlatform

      public void setPlatform(Schema2PlatformSpec platform)
    • size

      public Schema2ManifestDescriptor size(Long size)
    • getSize

      @Nullable public Long getSize()
      Get size
      Returns:
      size
    • setSize

      public void setSize(Long size)
    • urls

      public Schema2ManifestDescriptor urls(List<String> urls)
    • addUrlsItem

      public Schema2ManifestDescriptor addUrlsItem(String urlsItem)
    • getUrls

      @Nullable public List<String> getUrls()
      Get urls
      Returns:
      urls
    • setUrls

      public void setUrls(List<String> urls)
    • 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 Schema2ManifestDescriptor to an JSON string
      Returns:
      JSON string