Class ResourceSpecTemplateIdentityProjection
java.lang.Object
com.morpheusdata.model.MorpheusModel
com.morpheusdata.model.projection.MorpheusIdentityModel
com.morpheusdata.model.projection.ResourceSpecTemplateIdentityProjection
- Direct Known Subclasses:
ResourceSpecTemplate
Provides a subset of properties from the
ResourceSpecTemplate
object for doing a sync match
comparison with less bandwidth usage and memory footprint. This is a DTO Projection object-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
Fields inherited from class com.morpheusdata.model.MorpheusModel
config, id
-
Constructor Summary
ConstructorDescriptionResourceSpecTemplateIdentityProjection
(Long id, String name, String code, String externalId) -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Gets the code of the spec template.returns the externalId also known as the API id of the equivalent object.getName()
Gets the name of the spec template.getUuid()
returns the uuid of the spec template.void
Sets the code of the spec template.void
setExternalId
(String externalId) Sets the externalId of the spec template.void
Sets the name of the spec template.void
Sets the uuid of the spec template.Methods inherited from class com.morpheusdata.model.projection.MorpheusIdentityModel
getIdentityProperties
Methods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
-
Field Details
-
code
-
name
-
externalId
-
uuid
-
-
Constructor Details
-
ResourceSpecTemplateIdentityProjection
public ResourceSpecTemplateIdentityProjection() -
ResourceSpecTemplateIdentityProjection
-
-
Method Details
-
getCode
Gets the code of the spec template. This is on the identity projection in case a fallback match needs to happen by name- Returns:
- the current name of the spec template
-
setCode
Sets the code of the spec template. Typically this isnt called directly.- Parameters:
code
- the code of the spec template to be assigned.
-
getName
Gets the name of the spec template. This is on the identity projection in case a fallback match needs to happen by name- Returns:
- the current name of the spec template
-
setName
Sets the name of the spec template. Typically this isnt called directly.- Parameters:
name
- the name of the spec template to be assigned.
-
getExternalId
returns the externalId also known as the API id of the equivalent object.- Returns:
- the external id or API id of the current record
-
setExternalId
Sets the externalId of the spec template. In this class this should not be called directly- Parameters:
externalId
- the external id or API id of the current record
-
getUuid
returns the uuid of the spec template.- Returns:
- the uuid of the current record
-
setUuid
Sets the uuid of the spec template. In this class this should not be called directly- Parameters:
uuid
- the uuid of the current record
-