Class MachineImage
java.lang.Object
co.yellowdog.platform.model.MachineImage
- All Implemented Interfaces:
Identified,Named,Serializable
Describes a machine software image, its capabilities and where it is available.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder that can be used to build a new MachineImage that is automatically validated on build. -
Constructor Summary
ConstructorsConstructorDescriptionMachineImage(String name, CloudProvider provider, List<String> regions, String providerImageId, ImageOsType osType, List<String> supportedInstanceTypes, Map<String, String> metadata) -
Method Summary
Modifier and TypeMethodDescriptionstatic MachineImage.Builderbuilder()protected booleanbooleanThe date and time when this machine image record was first created.getId()Returns the IDA map of user-definable key-value pairs to hold extra metadata properties related to the machine image.getName()The machine image nameThe image operating system typeThe compute provider in whose system the image is registered.The ID for the image in the compute provider's system.The regions in which the image is registered.The instance types that can be used with the image in the cloud provider's system.inthashCode()voidsetCreatedTime(Instant createdTime) The date and time when this machine image record was first created.voidvoidsetMetadata(Map<@MapKey String, String> metadata) A map of user-definable key-value pairs to hold extra metadata properties related to the machine image.voidThe machine image namevoidsetOsType(ImageOsType osType) The image operating system typevoidsetProvider(CloudProvider provider) The compute provider in whose system the image is registered.voidsetProviderImageId(String providerImageId) The ID for the image in the compute provider's system.voidsetRegions(List<@NotBlank String> regions) The regions in which the image is registered.voidsetSupportedInstanceTypes(List<@NotBlank String> supportedInstanceTypes) The instance types that can be used with the image in the cloud provider's system.toString()
-
Constructor Details
-
MachineImage
-
-
Method Details
-
builder
-
toBuilder
-
getId
Description copied from interface:IdentifiedReturns the ID- Specified by:
getIdin interfaceIdentified- Returns:
- the ID
-
getName
-
getCreatedTime
The date and time when this machine image record was first created. NB: This may not be indicative of the time the actual image was created.- Returns:
- the date and time when this machine image record was first created
-
getProvider
The compute provider in whose system the image is registered.- Returns:
- the compute provider in whose system the image is registered
-
getRegions
-
getProviderImageId
The ID for the image in the compute provider's system.- Returns:
- the ID for the image in the compute provider's system
-
getOsType
The image operating system type- Returns:
- the image operating system type
-
getSupportedInstanceTypes
-
getMetadata
-
setId
-
setName
-
setCreatedTime
The date and time when this machine image record was first created. NB: This may not be indicative of the time the actual image was created.- Parameters:
createdTime- This should not be set outside of the YellowDog Images service.
-
setProvider
The compute provider in whose system the image is registered.- Parameters:
provider- the compute provider in whose system the image is registered
-
setRegions
-
setProviderImageId
The ID for the image in the compute provider's system.- Parameters:
providerImageId- the ID for the image in the compute provider's system
-
setOsType
The image operating system type- Parameters:
osType- the image operating system type
-
setSupportedInstanceTypes
The instance types that can be used with the image in the cloud provider's system. If null or empty then the image is assumed to compatible with any instance type.- Parameters:
supportedInstanceTypes- the instance types that can be used with the image
-
setMetadata
-
equals
-
canEqual
-
hashCode
-
toString
-