Class MachineImageGroup
java.lang.Object
co.yellowdog.platform.model.MachineImageGroup
- All Implemented Interfaces:
Identified
,Named
,Serializable
@ValidatedBy(MachineImageGroupValidator.class)
public class MachineImageGroup
extends Object
implements Identified, Named, Serializable
Defines a group of functionally equivalent machine images across different provider/region environments.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder that can be used to build a new MachineImageGroup that is automatically validated on build. -
Constructor Summary
ConstructorsConstructorDescriptionMachineImageGroup
(String name, ImageOsType osType, Map<String, String> metadataSpecification, List<MachineImage> images) -
Method Summary
Modifier and TypeMethodDescriptionstatic MachineImageGroup.Builder
builder()
protected boolean
boolean
The date and time when this machine image group was first created.getId()
Returns the IDList
<@NotNull @Valid MachineImage> A list of functionally equivalent machine imagesA map of user-definable key-value pairs used to specify metadata keys and, optionally, values required to be on all images within the machine image group.getName()
The user allocated name used to uniquely identify this machine image group within its family.The operating system type of all images within this machine image group.int
hashCode()
void
setCreatedTime
(Instant createdTime) The date and time when this machine image group was first created.void
void
setImages
(List<@NotNull @Valid MachineImage> images) A list of functionally equivalent machine imagesvoid
setMetadataSpecification
(Map<@NotBlank String, String> metadataSpecification) A map of user-definable key-value pairs used to specify metadata keys and, optionally, values required to be on all images within the machine image group.void
The user allocated name used to uniquely identify this machine image group within its family.void
setOsType
(ImageOsType osType) The operating system type of all images within this machine image group.toString()
-
Constructor Details
-
MachineImageGroup
public MachineImageGroup(String name, ImageOsType osType, Map<String, String> metadataSpecification, List<MachineImage> images)
-
-
Method Details
-
builder
-
toBuilder
-
getId
Description copied from interface:Identified
Returns the ID- Specified by:
getId
in interfaceIdentified
- Returns:
- the ID
-
getCreatedTime
The date and time when this machine image group was first created.- Returns:
- the date and time when this machine image group was first created
-
getName
-
getOsType
The operating system type of all images within this machine image group.- Returns:
- the operating system type of all images within this machine image group
-
getMetadataSpecification
-
getImages
A list of functionally equivalent machine images- Returns:
- a list of functionally equivalent machine images
-
setId
-
setCreatedTime
The date and time when this machine image group was first created.- Parameters:
createdTime
- This should not be set outside of the YellowDog Images service.
-
setName
The user allocated name used to uniquely identify this machine image group within its family.- Parameters:
name
- the machine image group name
This should not be changed once the machine image group has been submitted to the YellowDog Images service.
-
setOsType
The operating system type of all images within this machine image group.- Parameters:
osType
- the operating system type of all images within this machine image group
-
setMetadataSpecification
A map of user-definable key-value pairs used to specify metadata keys and, optionally, values required to be on all images within the machine image group.- Parameters:
metadataSpecification
- the image metadata specification for the machine image family
-
setImages
A list of functionally equivalent machine images- Parameters:
images
- a list of functionally equivalent machine images
-
equals
-
canEqual
-
hashCode
-
toString
-