Class WorkCenterCapacityInterval

java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<WorkCenterCapacityInterval>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.workcenterdata.WorkCenterCapacityInterval

public class WorkCenterCapacityInterval extends VdmEntity<WorkCenterCapacityInterval>
Capacity Interval

Original entity name from the Odata EDM: A_WorkCenterCapacityIntervalType

  • Field Details

    • ALL_FIELDS

      public static final WorkCenterCapacityIntervalSelectable ALL_FIELDS
      Selector for all available fields of WorkCenterCapacityInterval.
    • WORK_CENTER_INTERNAL_ID

      public static final WorkCenterCapacityIntervalField<String> WORK_CENTER_INTERNAL_ID
      Use with available fluent helpers to apply the WorkCenterInternalID field to query operations.
    • WORK_CENTER_TYPE_CODE

      public static final WorkCenterCapacityIntervalField<String> WORK_CENTER_TYPE_CODE
      Use with available fluent helpers to apply the WorkCenterTypeCode field to query operations.
    • CAPACITY_CATEGORY_ALLOCATION

      public static final WorkCenterCapacityIntervalField<String> CAPACITY_CATEGORY_ALLOCATION
      Use with available fluent helpers to apply the CapacityCategoryAllocation field to query operations.
    • CAPACITY_INTERNAL_ID

      public static final WorkCenterCapacityIntervalField<String> CAPACITY_INTERNAL_ID
      Use with available fluent helpers to apply the CapacityInternalID field to query operations.
    • CAPACITY_ACTIVE_VERSION

      public static final WorkCenterCapacityIntervalField<String> CAPACITY_ACTIVE_VERSION
      Use with available fluent helpers to apply the CapacityActiveVersion field to query operations.
    • INTERVAL_END_DATE

      public static final WorkCenterCapacityIntervalField<LocalDateTime> INTERVAL_END_DATE
      Use with available fluent helpers to apply the IntervalEndDate field to query operations.
    • INTERVAL_START_DATE

      public static final WorkCenterCapacityIntervalField<LocalDateTime> INTERVAL_START_DATE
      Use with available fluent helpers to apply the IntervalStartDate field to query operations.
    • WORK_CENTER

      public static final WorkCenterCapacityIntervalField<String> WORK_CENTER
      Use with available fluent helpers to apply the WorkCenter field to query operations.
    • PLANT

      public static final WorkCenterCapacityIntervalField<String> PLANT
      Use with available fluent helpers to apply the Plant field to query operations.
    • WORK_DAY_RULE

      public static final WorkCenterCapacityIntervalField<String> WORK_DAY_RULE
      Use with available fluent helpers to apply the WorkDayRule field to query operations.
    • AVAILABLE_CAPACITY_INTERVAL_DURN

      public static final WorkCenterCapacityIntervalField<String> AVAILABLE_CAPACITY_INTERVAL_DURN
      Use with available fluent helpers to apply the AvailableCapacityIntervalDurn field to query operations.
    • SHIFT_SEQUENCE

      public static final WorkCenterCapacityIntervalField<String> SHIFT_SEQUENCE
      Use with available fluent helpers to apply the ShiftSequence field to query operations.
    • STD_AVAILABLE_CAPACITY_IS_VALID

      public static final WorkCenterCapacityIntervalField<Boolean> STD_AVAILABLE_CAPACITY_IS_VALID
      Use with available fluent helpers to apply the StdAvailableCapacityIsValid field to query operations.
    • TO_WORK_CENTER_SHIFT

      public static final WorkCenterCapacityIntervalLink<WorkCenterCapacityShift> TO_WORK_CENTER_SHIFT
      Use with available fluent helpers to apply the to_WorkCenterShift navigation property to query operations.
  • Constructor Details

    • WorkCenterCapacityInterval

      public WorkCenterCapacityInterval()
    • WorkCenterCapacityInterval

      public WorkCenterCapacityInterval(@Nullable String workCenterInternalID, @Nullable String workCenterTypeCode, @Nullable String capacityCategoryAllocation, @Nullable String capacityInternalID, @Nullable String capacityActiveVersion, @Nullable LocalDateTime intervalEndDate, @Nullable LocalDateTime intervalStartDate, @Nullable String workCenter, @Nullable String plant, @Nullable String workDayRule, @Nullable String availableCapacityIntervalDurn, @Nullable String shiftSequence, @Nullable Boolean stdAvailableCapacityIsValid, List<WorkCenterCapacityShift> toWorkCenterShift)
  • Method Details

    • getType

      @Nonnull public Class<WorkCenterCapacityInterval> getType()
      Specified by:
      getType in class VdmObject<WorkCenterCapacityInterval>
    • 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 LocalDateTime intervalEndDate)
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: IntervalEndDate

      Parameters:
      intervalEndDate - The intervalEndDate to set.
    • setIntervalStartDate

      public void setIntervalStartDate(@Nullable LocalDateTime intervalStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: IntervalStartDate

      Parameters:
      intervalStartDate - The intervalStartDate to set.
    • setWorkCenter

      public void setWorkCenter(@Nullable String workCenter)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: WorkCenter

      Parameters:
      workCenter - Work Center
    • setPlant

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

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • 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.
    • 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.
    • setStdAvailableCapacityIsValid

      public void setStdAvailableCapacityIsValid(@Nullable Boolean stdAvailableCapacityIsValid)
      Constraints: none

      Original property name from the Odata EDM: StdAvailableCapacityIsValid

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

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

      @Nonnull protected Map<String,Object> 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>
    • field

      @Nonnull public static <T> WorkCenterCapacityIntervalField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> WorkCenterCapacityIntervalField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<WorkCenterCapacityInterval>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<WorkCenterCapacityInterval>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<WorkCenterCapacityInterval>
    • getDefaultServicePath

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

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

      @Nonnull public List<WorkCenterCapacityShift> fetchWorkCenterShift()
      Fetches the WorkCenterCapacityShift entities (one to many) associated with this entity. This corresponds to the OData navigation property to_WorkCenterShift.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated WorkCenterCapacityShift entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getWorkCenterShiftOrFetch

      @Nonnull public List<WorkCenterCapacityShift> getWorkCenterShiftOrFetch()
      Retrieval of associated WorkCenterCapacityShift entities (one to many). This corresponds to the OData navigation property to_WorkCenterShift.

      If the navigation property to_WorkCenterShift 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.

      Returns:
      List of associated WorkCenterCapacityShift entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getWorkCenterShiftIfPresent

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

      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 to_WorkCenterShift is already loaded, the result will contain the WorkCenterCapacityShift entities. If not, an Option with result state empty is returned.
    • setWorkCenterShift

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

      If the navigation property to_WorkCenterShift 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.
    • addWorkCenterShift

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

      If the navigation property to_WorkCenterShift 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

    • 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 entity.
    • getIntervalEndDate

      @Nullable public LocalDateTime getIntervalEndDate()
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: IntervalEndDate

      Returns:
      The intervalEndDate contained in this entity.
    • getIntervalStartDate

      @Nullable public LocalDateTime getIntervalStartDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: IntervalStartDate

      Returns:
      The intervalStartDate contained in this entity.
    • getWorkCenter

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

      Original property name from the Odata EDM: WorkCenter

      Returns:
      Work Center
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • 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 entity.
    • 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 entity.
    • getStdAvailableCapacityIsValid

      @Nullable public Boolean getStdAvailableCapacityIsValid()
      Constraints: none

      Original property name from the Odata EDM: StdAvailableCapacityIsValid

      Returns:
      Ind.: Standard Available Capacity is Valid for this Interval
    • 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>