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

public class WorkCenterCapacityShift extends VdmEntity<WorkCenterCapacityShift> implements VdmEntitySet
Work Center Capacity Shift

Original entity name from the Odata EDM: WorkCenterCapacityShiftType

  • Field Details

  • Constructor Details

    • WorkCenterCapacityShift

      public WorkCenterCapacityShift()
    • WorkCenterCapacityShift

      public WorkCenterCapacityShift(@Nullable String workCenterInternalID, @Nullable String workCenterTypeCode, @Nullable String capacityCategoryAllocation, @Nullable String capacityInternalID, @Nullable String capacityActiveVersion, @Nullable LocalDate intervalEndDate, @Nullable String weekDay, @Nullable String availableCapacityShift, @Nullable LocalDate intervalStartDate, @Nullable String workDayRule, @Nullable String shiftDefinition, @Nullable LocalTime shiftStartTime, @Nullable LocalTime shiftEndTime, @Nullable LocalDate shiftDefValidityStartDate, @Nullable LocalDate shiftDefValidityEndDate, @Nullable Short capacityNumberOfCapacities, @Nullable String capacityPlanUtilizationPercent, @Nullable Integer capacityBreakDuration, @Nullable Integer operatingDurationInSeconds, @Nullable Integer totOperatingDurationInSeconds, @Nullable OffsetDateTime capacityLastChangeDateTime, @Nullable WorkCenterHeader to_Header, @Nullable WorkCenterCapacityInterval to_Interval)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: WorkCenterInternalID

      Parameters:
      workCenterInternalID - Object ID of the resource
    • setWorkCenterTypeCode

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

      Original property name from the Odata EDM: WorkCenterTypeCode

      Parameters:
      workCenterTypeCode - Object types of the CIM resource
    • setCapacityCategoryAllocation

      public void setCapacityCategoryAllocation(@Nullable String capacityCategoryAllocation)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CapacityCategoryAllocation

      Parameters:
      capacityCategoryAllocation - Capacity Category Allocation
    • 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 - Valid-to date
    • setWeekDay

      public void setWeekDay(@Nullable String weekDay)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: WeekDay

      Parameters:
      weekDay - Week Day
    • setAvailableCapacityShift

      public void setAvailableCapacityShift(@Nullable String availableCapacityShift)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: AvailableCapacityShift

      Parameters:
      availableCapacityShift - Shift Number of an Available Capacity
    • setIntervalStartDate

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

      Original property name from the Odata EDM: IntervalStartDate

      Parameters:
      intervalStartDate - Valid-From Date
    • setWorkDayRule

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

      Original property name from the Odata EDM: WorkDayRule

      Parameters:
      workDayRule - Workday Rule Code
    • setShiftDefinition

      public void setShiftDefinition(@Nullable String shiftDefinition)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ShiftDefinition

      Parameters:
      shiftDefinition - Shift Definition
    • setShiftStartTime

      public void setShiftStartTime(@Nullable LocalTime shiftStartTime)
      Constraints: Not nullable

      Original property name from the Odata EDM: ShiftStartTime

      Parameters:
      shiftStartTime - Start Time
    • setShiftEndTime

      public void setShiftEndTime(@Nullable LocalTime shiftEndTime)
      Constraints: Not nullable

      Original property name from the Odata EDM: ShiftEndTime

      Parameters:
      shiftEndTime - End Time
    • setShiftDefValidityStartDate

      public void setShiftDefValidityStartDate(@Nullable LocalDate shiftDefValidityStartDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ShiftDefValidityStartDate

      Parameters:
      shiftDefValidityStartDate - Start Date
    • setShiftDefValidityEndDate

      public void setShiftDefValidityEndDate(@Nullable LocalDate shiftDefValidityEndDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ShiftDefValidityEndDate

      Parameters:
      shiftDefValidityEndDate - End Date
    • 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
    • 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)
    • setOperatingDurationInSeconds

      public void setOperatingDurationInSeconds(@Nullable Integer operatingDurationInSeconds)
      Constraints: Not nullable

      Original property name from the Odata EDM: OperatingDurationInSeconds

      Parameters:
      operatingDurationInSeconds - Operating Duration in Seconds
    • setTotOperatingDurationInSeconds

      public void setTotOperatingDurationInSeconds(@Nullable Integer totOperatingDurationInSeconds)
      Constraints: Not nullable

      Original property name from the Odata EDM: TotOperatingDurationInSeconds

      Parameters:
      totOperatingDurationInSeconds - Total Operating Duration In Seconds
    • 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<WorkCenterCapacityShift>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity WorkCenterCapacityShift 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 WorkCenterHeader entity. If not, an Option with result state empty is returned.
    • setHeader

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

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

      If the navigation property for an entity WorkCenterCapacityShift 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 entity. If not, an Option with result state empty is returned.
    • setInterval

      public void setInterval(WorkCenterCapacityInterval value)
      Overwrites the associated WorkCenterCapacityInterval entity for the loaded navigation property _Interval.
      Parameters:
      value - New WorkCenterCapacityInterval entity.
    • builder

    • getWorkCenterInternalID

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

      Original property name from the Odata EDM: WorkCenterInternalID

      Returns:
      Object ID of the resource
    • getWorkCenterTypeCode

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

      Original property name from the Odata EDM: WorkCenterTypeCode

      Returns:
      Object types of the CIM resource
    • getCapacityCategoryAllocation

      @Nullable public String getCapacityCategoryAllocation()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CapacityCategoryAllocation

      Returns:
      Capacity Category Allocation
    • 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:
      Valid-to date
    • getWeekDay

      @Nullable public String getWeekDay()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: WeekDay

      Returns:
      Week Day
    • getAvailableCapacityShift

      @Nullable public String getAvailableCapacityShift()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: AvailableCapacityShift

      Returns:
      Shift Number of an Available Capacity
    • getIntervalStartDate

      @Nullable public LocalDate getIntervalStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: IntervalStartDate

      Returns:
      Valid-From Date
    • getWorkDayRule

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

      Original property name from the Odata EDM: WorkDayRule

      Returns:
      Workday Rule Code
    • getShiftDefinition

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

      Original property name from the Odata EDM: ShiftDefinition

      Returns:
      Shift Definition
    • getShiftStartTime

      @Nullable public LocalTime getShiftStartTime()
      Constraints: Not nullable

      Original property name from the Odata EDM: ShiftStartTime

      Returns:
      Start Time
    • getShiftEndTime

      @Nullable public LocalTime getShiftEndTime()
      Constraints: Not nullable

      Original property name from the Odata EDM: ShiftEndTime

      Returns:
      End Time
    • getShiftDefValidityStartDate

      @Nullable public LocalDate getShiftDefValidityStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ShiftDefValidityStartDate

      Returns:
      Start Date
    • getShiftDefValidityEndDate

      @Nullable public LocalDate getShiftDefValidityEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ShiftDefValidityEndDate

      Returns:
      End Date
    • 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
    • getCapacityBreakDuration

      @Nullable public Integer getCapacityBreakDuration()
      Constraints: Not nullable

      Original property name from the Odata EDM: CapacityBreakDuration

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

      @Nullable public Integer getOperatingDurationInSeconds()
      Constraints: Not nullable

      Original property name from the Odata EDM: OperatingDurationInSeconds

      Returns:
      Operating Duration in Seconds
    • getTotOperatingDurationInSeconds

      @Nullable public Integer getTotOperatingDurationInSeconds()
      Constraints: Not nullable

      Original property name from the Odata EDM: TotOperatingDurationInSeconds

      Returns:
      Total Operating Duration In Seconds
    • 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<WorkCenterCapacityShift>
    • equals

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

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

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

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