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

public class WorkCenterCapacity extends VdmEntity<WorkCenterCapacity> implements VdmEntitySet
Pooled Capacity for Work Center

Original entity name from the Odata EDM: WorkCenterCapacityType

  • Field Details

  • Constructor Details

    • WorkCenterCapacity

      public WorkCenterCapacity()
    • WorkCenterCapacity

      public WorkCenterCapacity(@Nullable String capacityInternalID, @Nullable String plant, @Nullable String capacity, @Nullable String capacityCategoryCode, @Nullable String capacityActiveVersion, @Nullable Boolean capacityIsFinite, @Nullable Boolean capacityIsPooled, @Nullable Boolean capacityHasIndivCapacities, @Nullable Boolean capacityIsExcldFrmLongTermPlng, @Nullable Short capacityNumberOfCapacities, @Nullable String capacityResponsiblePlanner, @Nullable String capacityPlanUtilizationPercent, @Nullable Integer capacityBreakDuration, @Nullable Boolean capIsUsedInMultiOperations, @Nullable String referencedCapacityInternalID, @Nullable String capOverloadThresholdInPercent, @Nullable String factoryCalendar, @Nullable String authorizationGroup, @Nullable String shiftGroup, @Nullable Integer capacityStartTimeID, @Nullable Integer capacityEndTimeID, @Nullable String capacityQuantityUnit, @Nullable String capacityBaseQtyUnit, @Nullable OffsetDateTime capacityLastChangeDateTime, @Nullable Collection<SAP__Message> _Messages, List<WorkCenterCapacityText> to_Description, List<WorkCenterCapacityInterval> to_Interval)
  • Method Details

    • getType

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

      public void setCapacityInternalID(@Nullable String capacityInternalID)
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: CapacityInternalID

      Parameters:
      capacityInternalID - Capacity ID
    • setPlant

      public void setPlant(@Nullable String plant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setCapacity

      public void setCapacity(@Nullable String capacity)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: Capacity

      Parameters:
      capacity - Capacity name
    • setCapacityCategoryCode

      public void setCapacityCategoryCode(@Nullable String capacityCategoryCode)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CapacityCategoryCode

      Parameters:
      capacityCategoryCode - Capacity Category
    • setCapacityActiveVersion

      public void setCapacityActiveVersion(@Nullable String capacityActiveVersion)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CapacityActiveVersion

      Parameters:
      capacityActiveVersion - Active Version of Available Capacity
    • setCapacityIsFinite

      public void setCapacityIsFinite(@Nullable Boolean capacityIsFinite)
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityIsFinite

      Parameters:
      capacityIsFinite - Indicator: Capacity Relevant to Finite Scheduling
    • setCapacityIsPooled

      public void setCapacityIsPooled(@Nullable Boolean capacityIsPooled)
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityIsPooled

      Parameters:
      capacityIsPooled - Pooled Capacity Indicator
    • setCapacityHasIndivCapacities

      public void setCapacityHasIndivCapacities(@Nullable Boolean capacityHasIndivCapacities)
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityHasIndivCapacities

      Parameters:
      capacityHasIndivCapacities - Has Individual Capacities
    • setCapacityIsExcldFrmLongTermPlng

      public void setCapacityIsExcldFrmLongTermPlng(@Nullable Boolean capacityIsExcldFrmLongTermPlng)
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityIsExcldFrmLongTermPlng

      Parameters:
      capacityIsExcldFrmLongTermPlng - Indicator: Capacity Excluded From Long-Term Planning
    • setCapacityNumberOfCapacities

      public void setCapacityNumberOfCapacities(@Nullable Short capacityNumberOfCapacities)
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityNumberOfCapacities

      Parameters:
      capacityNumberOfCapacities - Number of Individual Capacities
    • setCapacityResponsiblePlanner

      public void setCapacityResponsiblePlanner(@Nullable String capacityResponsiblePlanner)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CapacityResponsiblePlanner

      Parameters:
      capacityResponsiblePlanner - Capacity Responsible Planner Group
    • setCapacityPlanUtilizationPercent

      public void setCapacityPlanUtilizationPercent(@Nullable String capacityPlanUtilizationPercent)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CapacityPlanUtilizationPercent

      Parameters:
      capacityPlanUtilizationPercent - Capacity Utilization Ratio in Percent
    • setCapacityBreakDuration

      public void setCapacityBreakDuration(@Nullable Integer capacityBreakDuration)
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityBreakDuration

      Parameters:
      capacityBreakDuration - Cumulative Break Duration in Seconds (internal)
    • setCapIsUsedInMultiOperations

      public void setCapIsUsedInMultiOperations(@Nullable Boolean capIsUsedInMultiOperations)
      Constraints: Not nullable

      Original property name from the Odata EDM: CapIsUsedInMultiOperations

      Parameters:
      capIsUsedInMultiOperations - Indicator: Several Operations Can Use Capacity
    • setReferencedCapacityInternalID

      public void setReferencedCapacityInternalID(@Nullable String referencedCapacityInternalID)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ReferencedCapacityInternalID

      Parameters:
      referencedCapacityInternalID - Referenced Capacity ID
    • setCapOverloadThresholdInPercent

      public void setCapOverloadThresholdInPercent(@Nullable String capOverloadThresholdInPercent)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CapOverloadThresholdInPercent

      Parameters:
      capOverloadThresholdInPercent - Overload
    • setFactoryCalendar

      public void setFactoryCalendar(@Nullable String factoryCalendar)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: FactoryCalendar

      Parameters:
      factoryCalendar - Factory Calendar ID
    • setAuthorizationGroup

      public void setAuthorizationGroup(@Nullable String authorizationGroup)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: AuthorizationGroup

      Parameters:
      authorizationGroup - Authorization Group
    • setShiftGroup

      public void setShiftGroup(@Nullable String shiftGroup)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ShiftGroup

      Parameters:
      shiftGroup - Grouping for Shift Definitions and Shift Sequences
    • setCapacityStartTimeID

      public void setCapacityStartTimeID(@Nullable Integer capacityStartTimeID)
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityStartTimeID

      Parameters:
      capacityStartTimeID - Start Time in Seconds (Internal)
    • setCapacityEndTimeID

      public void setCapacityEndTimeID(@Nullable Integer capacityEndTimeID)
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityEndTimeID

      Parameters:
      capacityEndTimeID - End Time in Seconds (Internal)
    • setCapacityQuantityUnit

      public void setCapacityQuantityUnit(@Nullable String capacityQuantityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CapacityQuantityUnit

      Parameters:
      capacityQuantityUnit - Capacity Unit of Measure
    • setCapacityBaseQtyUnit

      public void setCapacityBaseQtyUnit(@Nullable String capacityBaseQtyUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CapacityBaseQtyUnit

      Parameters:
      capacityBaseQtyUnit - Capacity Base Unit of Measure
    • setCapacityLastChangeDateTime

      public void setCapacityLastChangeDateTime(@Nullable OffsetDateTime capacityLastChangeDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CapacityLastChangeDateTime

      Parameters:
      capacityLastChangeDateTime - Capacity Last Change Date Time
    • 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<WorkCenterCapacity>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity WorkCenterCapacity 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 _Description is already loaded, the result will contain the WorkCenterCapacityText entities. If not, an Option with result state empty is returned.
    • setDescription

      public void setDescription(@Nonnull List<WorkCenterCapacityText> value)
      Overwrites the list of associated WorkCenterCapacityText entities for the loaded navigation property _Description.

      If the navigation property _Description of a queried WorkCenterCapacity 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 WorkCenterCapacityText entities.
    • addDescription

      public void addDescription(WorkCenterCapacityText... entity)
      Adds elements to the list of associated WorkCenterCapacityText entities. This corresponds to the OData navigation property _Description.

      If the navigation property _Description of a queried WorkCenterCapacity 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 WorkCenterCapacityText entities.
    • getIntervalIfPresent

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

      If the navigation property for an entity WorkCenterCapacity 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 _Interval is already loaded, the result will contain the WorkCenterCapacityInterval entities. If not, an Option with result state empty is returned.
    • setInterval

      public void setInterval(@Nonnull List<WorkCenterCapacityInterval> value)
      Overwrites the list of associated WorkCenterCapacityInterval entities for the loaded navigation property _Interval.

      If the navigation property _Interval of a queried WorkCenterCapacity 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 WorkCenterCapacityInterval entities.
    • addInterval

      public void addInterval(WorkCenterCapacityInterval... entity)
      Adds elements to the list of associated WorkCenterCapacityInterval entities. This corresponds to the OData navigation property _Interval.

      If the navigation property _Interval of a queried WorkCenterCapacity 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 WorkCenterCapacityInterval entities.
    • builder

      @Nonnull public static WorkCenterCapacity.WorkCenterCapacityBuilder builder()
    • getCapacityInternalID

      @Nullable public String getCapacityInternalID()
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: CapacityInternalID

      Returns:
      Capacity ID
    • getPlant

      @Nullable public String getPlant()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getCapacity

      @Nullable public String getCapacity()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: Capacity

      Returns:
      Capacity name
    • getCapacityCategoryCode

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

      Original property name from the Odata EDM: CapacityCategoryCode

      Returns:
      Capacity Category
    • getCapacityActiveVersion

      @Nullable public String getCapacityActiveVersion()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: CapacityActiveVersion

      Returns:
      Active Version of Available Capacity
    • getCapacityIsFinite

      @Nullable public Boolean getCapacityIsFinite()
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityIsFinite

      Returns:
      Indicator: Capacity Relevant to Finite Scheduling
    • getCapacityIsPooled

      @Nullable public Boolean getCapacityIsPooled()
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityIsPooled

      Returns:
      Pooled Capacity Indicator
    • getCapacityHasIndivCapacities

      @Nullable public Boolean getCapacityHasIndivCapacities()
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityHasIndivCapacities

      Returns:
      Has Individual Capacities
    • getCapacityIsExcldFrmLongTermPlng

      @Nullable public Boolean getCapacityIsExcldFrmLongTermPlng()
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityIsExcldFrmLongTermPlng

      Returns:
      Indicator: Capacity Excluded From Long-Term Planning
    • getCapacityNumberOfCapacities

      @Nullable public Short getCapacityNumberOfCapacities()
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityNumberOfCapacities

      Returns:
      Number of Individual Capacities
    • getCapacityResponsiblePlanner

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

      Original property name from the Odata EDM: CapacityResponsiblePlanner

      Returns:
      Capacity Responsible Planner Group
    • getCapacityPlanUtilizationPercent

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

      Original property name from the Odata EDM: CapacityPlanUtilizationPercent

      Returns:
      Capacity Utilization Ratio in Percent
    • getCapacityBreakDuration

      @Nullable public Integer getCapacityBreakDuration()
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityBreakDuration

      Returns:
      Cumulative Break Duration in Seconds (internal)
    • getCapIsUsedInMultiOperations

      @Nullable public Boolean getCapIsUsedInMultiOperations()
      Constraints: Not nullable

      Original property name from the Odata EDM: CapIsUsedInMultiOperations

      Returns:
      Indicator: Several Operations Can Use Capacity
    • getReferencedCapacityInternalID

      @Nullable public String getReferencedCapacityInternalID()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ReferencedCapacityInternalID

      Returns:
      Referenced Capacity ID
    • getCapOverloadThresholdInPercent

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

      Original property name from the Odata EDM: CapOverloadThresholdInPercent

      Returns:
      Overload
    • getFactoryCalendar

      @Nullable public String getFactoryCalendar()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: FactoryCalendar

      Returns:
      Factory Calendar ID
    • getAuthorizationGroup

      @Nullable public String getAuthorizationGroup()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: AuthorizationGroup

      Returns:
      Authorization Group
    • getShiftGroup

      @Nullable public String getShiftGroup()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ShiftGroup

      Returns:
      Grouping for Shift Definitions and Shift Sequences
    • getCapacityStartTimeID

      @Nullable public Integer getCapacityStartTimeID()
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityStartTimeID

      Returns:
      Start Time in Seconds (Internal)
    • getCapacityEndTimeID

      @Nullable public Integer getCapacityEndTimeID()
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityEndTimeID

      Returns:
      End Time in Seconds (Internal)
    • getCapacityQuantityUnit

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

      Original property name from the Odata EDM: CapacityQuantityUnit

      Returns:
      Capacity Unit of Measure
    • getCapacityBaseQtyUnit

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

      Original property name from the Odata EDM: CapacityBaseQtyUnit

      Returns:
      Capacity Base Unit of Measure
    • getCapacityLastChangeDateTime

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

      Original property name from the Odata EDM: CapacityLastChangeDateTime

      Returns:
      Capacity Last Change Date Time
    • 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<WorkCenterCapacity>
    • equals

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

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

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

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