Class Descriptor
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Descriptor
@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 Descriptor
extends Object
This structure provides `application/vnd.oci.descriptor.v1+json` mediatype when marshalled to JSON.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataItem(Integer dataItem) addUrlsItem(String urlsItem) annotations(Map<String, String> annotations) artifactType(String artifactType) booleanstatic DescriptorCreate an instance of Descriptor given an JSON stringAnnotations contains arbitrary metadata relating to the targeted content.ArtifactType is the IANA media type of this artifact.getData()Data is an embedding of the targeted content.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.MediaType is the media type of the object this schema refers to.@Valid PlatformGet platformgetSize()Size specifies the size in bytes of the blob.getUrls()URLs specifies a list of URLs from which this object MAY be downloadedinthashCode()putAnnotationsItem(String key, String annotationsItem) voidsetAnnotations(Map<String, String> annotations) voidsetArtifactType(String artifactType) voidvoidvoidsetMediaType(String mediaType) voidsetPlatform(Platform platform) voidvoidtoJson()Convert an instance of Descriptor to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ANNOTATIONS
- See Also:
-
SERIALIZED_NAME_ARTIFACT_TYPE
- See Also:
-
SERIALIZED_NAME_DATA
- See Also:
-
SERIALIZED_NAME_DIGEST
- See Also:
-
SERIALIZED_NAME_MEDIA_TYPE
- See Also:
-
SERIALIZED_NAME_PLATFORM
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
SERIALIZED_NAME_URLS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Descriptor
public Descriptor()
-
-
Method Details
-
validateJsonElement
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 Descriptor
-
fromJson
Create an instance of Descriptor given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Descriptor
- Throws:
IOException- if the JSON string is invalid with respect to Descriptor
-
annotations
-
putAnnotationsItem
-
getAnnotations
Annotations contains arbitrary metadata relating to the targeted content.- Returns:
- annotations
-
setAnnotations
-
artifactType
-
getArtifactType
ArtifactType is the IANA media type of this artifact.- Returns:
- artifactType
-
setArtifactType
-
data
-
addDataItem
-
getData
Data is an embedding of the targeted content. This is encoded as a base64 string when marshalled to JSON (automatically, by encoding/json). If present, Data can be used directly to avoid fetching the targeted content.- Returns:
- data
-
setData
-
digest
-
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
-
mediaType
-
getMediaType
MediaType is the media type of the object this schema refers to.- Returns:
- mediaType
-
setMediaType
-
platform
-
getPlatform
Get platform- Returns:
- platform
-
setPlatform
-
size
-
getSize
Size specifies the size in bytes of the blob.- Returns:
- size
-
setSize
-
urls
-
addUrlsItem
-
getUrls
URLs specifies a list of URLs from which this object MAY be downloaded- Returns:
- urls
-
setUrls
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of Descriptor to an JSON string- Returns:
- JSON string
-