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

public class ConsolidationTaskGroup extends VdmEntity<ConsolidationTaskGroup> implements VdmEntitySet
Consolidation Task Group

Original entity name from the Odata EDM: ConsolidationTaskGroup_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setConsolidationTaskGroup(@Nullable String consolidationTaskGroup)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConsolidationTaskGroup

      Parameters:
      consolidationTaskGroup - Consolidation Task Group
    • setConsolidationTaskGroupText

      public void setConsolidationTaskGroupText(@Nullable String consolidationTaskGroupText)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ConsolidationTaskGroupText

      Parameters:
      consolidationTaskGroupText - Consolidation Task Group Text
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ConsolidationTaskGroup 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 _CnsldtnTaskAssignment is already loaded, the result will contain the CnsldtnTaskGroupTaskAssignment entities. If not, an Option with result state empty is returned.
    • setCnsldtnTaskAssignment

      public void setCnsldtnTaskAssignment(@Nonnull List<CnsldtnTaskGroupTaskAssignment> value)
      Overwrites the list of associated CnsldtnTaskGroupTaskAssignment entities for the loaded navigation property _CnsldtnTaskAssignment.

      If the navigation property _CnsldtnTaskAssignment of a queried ConsolidationTaskGroup 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 CnsldtnTaskGroupTaskAssignment entities.
    • addCnsldtnTaskAssignment

      public void addCnsldtnTaskAssignment(CnsldtnTaskGroupTaskAssignment... entity)
      Adds elements to the list of associated CnsldtnTaskGroupTaskAssignment entities. This corresponds to the OData navigation property _CnsldtnTaskAssignment.

      If the navigation property _CnsldtnTaskAssignment of a queried ConsolidationTaskGroup 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 CnsldtnTaskGroupTaskAssignment entities.
    • getUnitTasks

      @Nonnull public static BoundFunction.CollectionToCollection<ConsolidationTaskGroup,CnsldtnTaskGroupGetUnitTasksResult_Type> getUnitTasks(@Nonnull String consolidationVersion, @Nonnull String fiscalYear, @Nonnull String fiscalPeriod)
      Function that can be applied to a collection of entities of this class.

      Parameters:
      consolidationVersion - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: ConsolidationVersion

      fiscalPeriod - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: FiscalPeriod

      fiscalYear - Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: FiscalYear

      Returns:
      Function object prepared with the given parameters to be applied to a collection of entities of this class.

      To execute it use the service.forEntity(entity).applyFunction(thisFunction) API.
    • builder

      @Nonnull public static ConsolidationTaskGroup.ConsolidationTaskGroupBuilder builder()
    • getConsolidationTaskGroup

      @Nullable public String getConsolidationTaskGroup()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConsolidationTaskGroup

      Returns:
      Consolidation Task Group
    • getConsolidationTaskGroupText

      @Nullable public String getConsolidationTaskGroupText()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: ConsolidationTaskGroupText

      Returns:
      Consolidation Task Group Text
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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