java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<LabelTemplateVersion>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.labeltemplatemetadata.LabelTemplateVersion
All Implemented Interfaces:
VdmEntitySet

public class LabelTemplateVersion extends VdmEntity<LabelTemplateVersion> implements VdmEntitySet
Label Template Version

Original entity name from the Odata EDM: LabelTemplateVersion_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

      @Nonnull public Class<LabelTemplateVersion> getType()
      Specified by:
      getType in class VdmObject<LabelTemplateVersion>
    • setPCLblTemplateVersionID

      public void setPCLblTemplateVersionID(@Nullable String pCLblTemplateVersionID)
      (Key Field) Constraints: Not nullable, Maximum length: 21

      Original property name from the Odata EDM: PCLblTemplateVersionID

      Parameters:
      pCLblTemplateVersionID - Identifier
    • setPCLblTemplateID

      public void setPCLblTemplateID(@Nullable String pCLblTemplateID)
      Constraints: Not nullable, Maximum length: 21

      Original property name from the Odata EDM: PCLblTemplateID

      Parameters:
      pCLblTemplateID - Identifier
    • setPCLblTemplateVersion

      public void setPCLblTemplateVersion(@Nullable Short pCLblTemplateVersion)
      Constraints: Not nullable

      Original property name from the Odata EDM: PCLblTemplateVersion

      Parameters:
      pCLblTemplateVersion - Label Template Version
    • setPCLblTemplateVersionStatus

      public void setPCLblTemplateVersionStatus(@Nullable String pCLblTemplateVersionStatus)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PCLblTemplateVersionStatus

      Parameters:
      pCLblTemplateVersionStatus - Status of Label Template Version
    • setPCLblTemplateVersionWidth

      public void setPCLblTemplateVersionWidth(@Nullable BigDecimal pCLblTemplateVersionWidth)
      Constraints: Not nullable, Precision: 6, Scale: 2

      Original property name from the Odata EDM: PCLblTemplateVersionWidth

      Parameters:
      pCLblTemplateVersionWidth - Template Version Width
    • setPCLblTemplateVersionHeight

      public void setPCLblTemplateVersionHeight(@Nullable BigDecimal pCLblTemplateVersionHeight)
      Constraints: Not nullable, Precision: 6, Scale: 2

      Original property name from the Odata EDM: PCLblTemplateVersionHeight

      Parameters:
      pCLblTemplateVersionHeight - Template Version Height
    • setPCLblTemplateSizeUoM

      public void setPCLblTemplateSizeUoM(@Nullable String pCLblTemplateSizeUoM)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PCLblTemplateSizeUoM

      Parameters:
      pCLblTemplateSizeUoM - Template Size Unit of Measurement
    • setCreationDateTime

      public void setCreationDateTime(@Nullable OffsetDateTime creationDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Created On
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Created By
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable OffsetDateTime lastChangeDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Last Changed On
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Last Changed By
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<LabelTemplateVersion>
    • getKey

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<LabelTemplateVersion>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<LabelTemplateVersion>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<LabelTemplateVersion>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<LabelTemplateVersion>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<LabelTemplateVersion>
    • getPCLblTemplateIfPresent

      @Nonnull public io.vavr.control.Option<LabelTemplate> getPCLblTemplateIfPresent()
      Retrieval of associated LabelTemplate entity (one to one). This corresponds to the OData navigation property _PCLblTemplate.

      If the navigation property for an entity LabelTemplateVersion has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _PCLblTemplate is already loaded, the result will contain the LabelTemplate entity. If not, an Option with result state empty is returned.
    • setPCLblTemplate

      public void setPCLblTemplate(LabelTemplate value)
      Overwrites the associated LabelTemplate entity for the loaded navigation property _PCLblTemplate.
      Parameters:
      value - New LabelTemplate entity.
    • getPCLblTmplVersUsdFldVersionIfPresent

      @Nonnull public io.vavr.control.Option<List<LabelTemplateVersUsedFieldVers>> getPCLblTmplVersUsdFldVersionIfPresent()
      Retrieval of associated LabelTemplateVersUsedFieldVers entities (one to many). This corresponds to the OData navigation property _PCLblTmplVersUsdFldVersion.

      If the navigation property for an entity LabelTemplateVersion has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _PCLblTmplVersUsdFldVersion is already loaded, the result will contain the LabelTemplateVersUsedFieldVers entities. If not, an Option with result state empty is returned.
    • setPCLblTmplVersUsdFldVersion

      public void setPCLblTmplVersUsdFldVersion(@Nonnull List<LabelTemplateVersUsedFieldVers> value)
      Overwrites the list of associated LabelTemplateVersUsedFieldVers entities for the loaded navigation property _PCLblTmplVersUsdFldVersion.

      If the navigation property _PCLblTmplVersUsdFldVersion of a queried LabelTemplateVersion is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of LabelTemplateVersUsedFieldVers entities.
    • addPCLblTmplVersUsdFldVersion

      public void addPCLblTmplVersUsdFldVersion(LabelTemplateVersUsedFieldVers... entity)
      Adds elements to the list of associated LabelTemplateVersUsedFieldVers entities. This corresponds to the OData navigation property _PCLblTmplVersUsdFldVersion.

      If the navigation property _PCLblTmplVersUsdFldVersion of a queried LabelTemplateVersion is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of LabelTemplateVersUsedFieldVers entities.
    • builder

      @Nonnull public static LabelTemplateVersion.LabelTemplateVersionBuilder builder()
    • getPCLblTemplateVersionID

      @Nullable public String getPCLblTemplateVersionID()
      (Key Field) Constraints: Not nullable, Maximum length: 21

      Original property name from the Odata EDM: PCLblTemplateVersionID

      Returns:
      Identifier
    • getPCLblTemplateID

      @Nullable public String getPCLblTemplateID()
      Constraints: Not nullable, Maximum length: 21

      Original property name from the Odata EDM: PCLblTemplateID

      Returns:
      Identifier
    • getPCLblTemplateVersion

      @Nullable public Short getPCLblTemplateVersion()
      Constraints: Not nullable

      Original property name from the Odata EDM: PCLblTemplateVersion

      Returns:
      Label Template Version
    • getPCLblTemplateVersionStatus

      @Nullable public String getPCLblTemplateVersionStatus()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PCLblTemplateVersionStatus

      Returns:
      Status of Label Template Version
    • getPCLblTemplateVersionWidth

      @Nullable public BigDecimal getPCLblTemplateVersionWidth()
      Constraints: Not nullable, Precision: 6, Scale: 2

      Original property name from the Odata EDM: PCLblTemplateVersionWidth

      Returns:
      Template Version Width
    • getPCLblTemplateVersionHeight

      @Nullable public BigDecimal getPCLblTemplateVersionHeight()
      Constraints: Not nullable, Precision: 6, Scale: 2

      Original property name from the Odata EDM: PCLblTemplateVersionHeight

      Returns:
      Template Version Height
    • getPCLblTemplateSizeUoM

      @Nullable public String getPCLblTemplateSizeUoM()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PCLblTemplateSizeUoM

      Returns:
      Template Size Unit of Measurement
    • getCreationDateTime

      @Nullable public OffsetDateTime getCreationDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Created On
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created By
    • getLastChangeDateTime

      @Nullable public OffsetDateTime getLastChangeDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Last Changed On
    • getLastChangedByUser

      @Nullable public String getLastChangedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Last Changed By
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<LabelTemplateVersion>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<LabelTemplateVersion>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<LabelTemplateVersion>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<LabelTemplateVersion>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<LabelTemplateVersion>