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

public class WorkCenterCapacityInterval extends VdmEntity<WorkCenterCapacityInterval> implements VdmEntitySet
Work Center Pooled Capacity Interval

Original entity name from the Odata EDM: WorkCenterCapacityIntervalType

  • Field Details

  • Constructor Details

    • WorkCenterCapacityInterval

      public WorkCenterCapacityInterval()
    • WorkCenterCapacityInterval

      public WorkCenterCapacityInterval(@Nullable String capacityInternalID, @Nullable String capacityActiveVersion, @Nullable LocalDate intervalEndDate, @Nullable LocalDate intervalStartDate, @Nullable Boolean stdAvailableCapacityIsValid, @Nullable String availableCapacityIntervalDurn, @Nullable String shiftSequence, @Nullable String workDayRule, @Nullable String capacityNumberOfShifts, @Nullable Short capacityNumberOfCapacities, @Nullable String capacityPlanUtilizationPercent, @Nullable OffsetDateTime capacityLastChangeDateTime, @Nullable WorkCenterCapacity to_Header, List<WorkCenterCapacityShift> to_Shift)
  • Method Details

    • getType

      @Nonnull public Class<WorkCenterCapacityInterval> getType()
      Specified by:
      getType in class VdmObject<WorkCenterCapacityInterval>
    • 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
    • setCapacityActiveVersion

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

      Original property name from the Odata EDM: CapacityActiveVersion

      Parameters:
      capacityActiveVersion - The capacityActiveVersion to set.
    • setIntervalEndDate

      public void setIntervalEndDate(@Nullable LocalDate intervalEndDate)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: IntervalEndDate

      Parameters:
      intervalEndDate - The intervalEndDate to set.
    • setIntervalStartDate

      public void setIntervalStartDate(@Nullable LocalDate intervalStartDate)
      Constraints: Not nullable

      Original property name from the Odata EDM: IntervalStartDate

      Parameters:
      intervalStartDate - Valid-From Date
    • setStdAvailableCapacityIsValid

      public void setStdAvailableCapacityIsValid(@Nullable Boolean stdAvailableCapacityIsValid)
      Constraints: Not nullable

      Original property name from the Odata EDM: StdAvailableCapacityIsValid

      Parameters:
      stdAvailableCapacityIsValid - Ind.: Standard Available Capacity is Valid for this Interval
    • setAvailableCapacityIntervalDurn

      public void setAvailableCapacityIntervalDurn(@Nullable String availableCapacityIntervalDurn)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: AvailableCapacityIntervalDurn

      Parameters:
      availableCapacityIntervalDurn - Duration of an Available Capacity Interval
    • setShiftSequence

      public void setShiftSequence(@Nullable String shiftSequence)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ShiftSequence

      Parameters:
      shiftSequence - The shiftSequence to set.
    • setWorkDayRule

      public void setWorkDayRule(@Nullable String workDayRule)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: WorkDayRule

      Parameters:
      workDayRule - The workDayRule to set.
    • setCapacityNumberOfShifts

      public void setCapacityNumberOfShifts(@Nullable String capacityNumberOfShifts)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: CapacityNumberOfShifts

      Parameters:
      capacityNumberOfShifts - The capacityNumberOfShifts to set.
    • setCapacityNumberOfCapacities

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

      Original property name from the Odata EDM: CapacityNumberOfCapacities

      Parameters:
      capacityNumberOfCapacities - Number of Individual Capacities
    • 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
    • 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
    • getEntityCollection

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

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

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

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

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

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

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

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

      public void setHeader(WorkCenterCapacity value)
      Overwrites the associated WorkCenterCapacity entity for the loaded navigation property _Header.
      Parameters:
      value - New WorkCenterCapacity entity.
    • getShiftIfPresent

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

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

      public void setShift(@Nonnull List<WorkCenterCapacityShift> value)
      Overwrites the list of associated WorkCenterCapacityShift entities for the loaded navigation property _Shift.

      If the navigation property _Shift of a queried WorkCenterCapacityInterval 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 WorkCenterCapacityShift entities.
    • addShift

      public void addShift(WorkCenterCapacityShift... entity)
      Adds elements to the list of associated WorkCenterCapacityShift entities. This corresponds to the OData navigation property _Shift.

      If the navigation property _Shift of a queried WorkCenterCapacityInterval 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 WorkCenterCapacityShift entities.
    • 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
    • getCapacityActiveVersion

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

      Original property name from the Odata EDM: CapacityActiveVersion

      Returns:
      The capacityActiveVersion contained in this VdmEntity.
    • getIntervalEndDate

      @Nullable public LocalDate getIntervalEndDate()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: IntervalEndDate

      Returns:
      The intervalEndDate contained in this VdmEntity.
    • getIntervalStartDate

      @Nullable public LocalDate getIntervalStartDate()
      Constraints: Not nullable

      Original property name from the Odata EDM: IntervalStartDate

      Returns:
      Valid-From Date
    • getStdAvailableCapacityIsValid

      @Nullable public Boolean getStdAvailableCapacityIsValid()
      Constraints: Not nullable

      Original property name from the Odata EDM: StdAvailableCapacityIsValid

      Returns:
      Ind.: Standard Available Capacity is Valid for this Interval
    • getAvailableCapacityIntervalDurn

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

      Original property name from the Odata EDM: AvailableCapacityIntervalDurn

      Returns:
      Duration of an Available Capacity Interval
    • getShiftSequence

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

      Original property name from the Odata EDM: ShiftSequence

      Returns:
      The shiftSequence contained in this VdmEntity.
    • getWorkDayRule

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

      Original property name from the Odata EDM: WorkDayRule

      Returns:
      The workDayRule contained in this VdmEntity.
    • getCapacityNumberOfShifts

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

      Original property name from the Odata EDM: CapacityNumberOfShifts

      Returns:
      The capacityNumberOfShifts contained in this VdmEntity.
    • getCapacityNumberOfCapacities

      @Nullable public Short getCapacityNumberOfCapacities()
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityNumberOfCapacities

      Returns:
      Number of Individual Capacities
    • 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
    • getCapacityLastChangeDateTime

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

      Original property name from the Odata EDM: CapacityLastChangeDateTime

      Returns:
      Capacity Last Change Date Time
    • toString

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

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

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

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

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