Class MachineImageFamily
java.lang.Object
co.yellowdog.platform.model.MachineImageFamily
- All Implemented Interfaces:
Identified
,Named
,Serializable
@ValidatedBy(MachineImageFamilyValidator.class)
public class MachineImageFamily
extends Object
implements Identified, Named, Serializable
Defines a family of versions of machine image groups.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder that can be used to build a new MachineImageFamily that is automatically validated on build. -
Constructor Summary
ConstructorsConstructorDescriptionMachineImageFamily
(String namespace, String name, ImageOsType osType, ImageAccess access, Map<String, String> metadataSpecification, List<MachineImageGroup> imageGroups) -
Method Summary
Modifier and TypeMethodDescriptionstatic MachineImageFamily.Builder
builder()
protected boolean
boolean
The access level for this machine image family and any contained groups and images.The date and time when this machine image family was first created.getId()
Returns the IDList
<@NotNull @Valid MachineImageGroup> A list of the related machine image groups.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 family.getName()
The user allocated name used to uniquely identify this machine image family within its namespace.The user allocated namespace used to group machine image families and other objects together.The operating system type of all images within this machine image family.int
hashCode()
void
setAccess
(ImageAccess access) The access level for this machine image family and any contained groups and images.void
setCreatedTime
(Instant createdTime) The date and time when this machine image family was first created.void
void
setImageGroups
(List<@NotNull @Valid MachineImageGroup> imageGroups) A list of the related machine image groups.void
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 family.void
The user allocated name used to uniquely identify this machine image family within its namespace.void
setNamespace
(String namespace) The user allocated namespace used to group machine image families and other objects together.void
setOsType
(ImageOsType osType) The operating system type of all images within this machine image family.toString()
-
Constructor Details
-
MachineImageFamily
public MachineImageFamily(String namespace, String name, ImageOsType osType, ImageAccess access, Map<String, String> metadataSpecification, List<MachineImageGroup> imageGroups)
-
-
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 family was first created.- Returns:
- the date and time when this machine image family was first created
-
getNamespace
The user allocated namespace used to group machine image families and other objects together.- Returns:
- the machine image family namespace
-
getName
-
getOsType
The operating system type of all images within this machine image family.- Returns:
- the operating system type of all images within this machine image family
-
getAccess
The access level for this machine image family and any contained groups and images.- Returns:
- the access level for this machine image family
-
getMetadataSpecification
-
getImageGroups
A list of the related machine image groups.- Returns:
- a list of related machine image groups
-
setId
-
setCreatedTime
The date and time when this machine image family was first created.- Parameters:
createdTime
- This should not be set outside of the YellowDog Images service.
-
setNamespace
The user allocated namespace used to group machine image families and other objects together.- Parameters:
namespace
- the machine image family namespace
This should not be changed once the machine image family has been submitted to the YellowDog Images service.
-
setName
The user allocated name used to uniquely identify this machine image family within its namespace.- Parameters:
name
- the machine image family name
This should not be changed once the machine image family has been submitted to the YellowDog Images service.
-
setOsType
The operating system type of all images within this machine image family.- Parameters:
osType
- the operating system type of all images within this machine image family
-
setAccess
The access level for this machine image family and any contained groups and images.- Parameters:
access
- the access level for this machine image family
-
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 family.- Parameters:
metadataSpecification
- the image metadata specification for the machine image family
-
setImageGroups
A list of the related machine image groups.- Parameters:
imageGroups
- a list of related machine image groups
-
equals
-
canEqual
-
hashCode
-
toString
-