Class ImageProperties
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ImageProperties
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ImageProperties
extends Object
implements Serializable
ImageProperties
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContainersItem(String containersItem) containers(List<String> containers) booleanstatic ImagePropertiesCreate an instance of ImageProperties given an JSON stringContainers is an array containing the IDs of the containers that are using this image.@NotNull @Valid PlatformGet platform@Valid ImagePropertiesSizegetSize()Get sizeinthashCode()voidsetContainers(List<String> containers) voidsetPlatform(Platform platform) voidsetSize(ImagePropertiesSize size) size(ImagePropertiesSize size) toJson()Convert an instance of ImageProperties to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONTAINERS
- See Also:
-
SERIALIZED_NAME_PLATFORM
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ImageProperties
public ImageProperties()
-
-
Method Details
-
containers
-
addContainersItem
-
getContainers
Containers is an array containing the IDs of the containers that are using this image.- Returns:
- containers
-
setContainers
-
platform
-
getPlatform
Get platform- Returns:
- platform
-
setPlatform
-
size
-
getSize
Get size- Returns:
- size
-
setSize
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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 ImageProperties
-
fromJson
Create an instance of ImageProperties given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ImageProperties
- Throws:
IOException- if the JSON string is invalid with respect to ImageProperties
-
toJson
Convert an instance of ImageProperties to an JSON string- Returns:
- JSON string
-