Class NetworkSubnetIdentityProjection
- java.lang.Object
-
- com.morpheusdata.model.MorpheusModel
-
- com.morpheusdata.model.projection.NetworkSubnetIdentityProjection
-
- Direct Known Subclasses:
NetworkSubnet
public class NetworkSubnetIdentityProjection extends MorpheusModel
Provides a subset of properties from theNetworkSubnet
object for doing a sync match comparison with less bandwidth usage and memory footprint. This is a DTO Projection object- Since:
- 0.11.0
- See Also:
MorpheusNetworkSubnetService
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
externalId
protected java.lang.String
name
protected java.lang.String
typeCode
-
Fields inherited from class com.morpheusdata.model.MorpheusModel
config, id
-
-
Constructor Summary
Constructors Constructor Description NetworkSubnetIdentityProjection()
NetworkSubnetIdentityProjection(java.lang.Long id, java.lang.String externalId, java.lang.String name, java.lang.String typeCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExternalId()
returns the externalId also known as the API id of the equivalent object.java.lang.String
getName()
Gets the name of the NetworkSubnet.java.lang.String
getTypeCode()
TheNetworkSubnetType.getCode()
is mapped here in the identity projection for quick filter search.void
setExternalId(java.lang.String externalId)
Sets the externalId of the network.void
setName(java.lang.String name)
Sets the name of the NetworkSubnet.-
Methods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
-
-
-
-
Method Detail
-
getExternalId
public java.lang.String 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
public void setExternalId(java.lang.String externalId)
Sets the externalId of the network. In this class this should not be called directly- Parameters:
externalId
- the external id or API id of the current record
-
getName
public java.lang.String getName()
Gets the name of the NetworkSubnet. This is on the identity projection in case a fallback match needs to happen by name- Returns:
- the current name of the network subnet
-
setName
public void setName(java.lang.String name)
Sets the name of the NetworkSubnet. Typically this isnt called directly.- Parameters:
name
- the name of the network subnet to be assigned.
-
getTypeCode
public java.lang.String getTypeCode()
TheNetworkSubnetType.getCode()
is mapped here in the identity projection for quick filter search.- Returns:
- the associated
NetworkSubnetType.getCode()
-
-