Class WorkCenterCapacityInterval_2

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

public class WorkCenterCapacityInterval_2 extends VdmEntity<WorkCenterCapacityInterval_2>
Capacity Interval Version 2

Original entity name from the Odata EDM: A_WorkCenterCapacityInterval_2Type

  • Field Details

  • Constructor Details

    • WorkCenterCapacityInterval_2

      public WorkCenterCapacityInterval_2()
    • WorkCenterCapacityInterval_2

      public WorkCenterCapacityInterval_2(@Nullable String capacityInternalID, @Nullable String capacityActiveVersion, @Nullable LocalDateTime intervalEndDate, @Nullable LocalDateTime intervalStartDate, @Nullable Boolean stdAvailableCapacityIsValid, @Nullable String availableCapacityIntervalDurn, @Nullable String shiftSequence, @Nullable String workDayRule, @Nullable String capacityNumberOfShifts, @Nullable Short capacityNumberOfCapacities, @Nullable String capacityPlanUtilizationPercent, @Nullable ZonedDateTime capacityLastChangeDateTime, List<WorkCenterCapacityShift_2> toCapacityShift)
  • Method Details

    • getType

      @Nonnull public Class<WorkCenterCapacityInterval_2> getType()
      Specified by:
      getType in class VdmObject<WorkCenterCapacityInterval_2>
    • 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 - Valid-From Date
    • 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
    • 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: none

      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 ZonedDateTime capacityLastChangeDateTime)
      Constraints: Not 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_2>
    • getKey

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

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

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

      @Nonnull public static <T> WorkCenterCapacityInterval_2Field<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> WorkCenterCapacityInterval_2Field<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_2>
    • setServicePathForFetch

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

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

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

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

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

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

      Returns:
      List containing one or more associated WorkCenterCapacityShift_2 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.
    • getCapacityShiftOrFetch

      @Nonnull public List<WorkCenterCapacityShift_2> getCapacityShiftOrFetch()
      Retrieval of associated WorkCenterCapacityShift_2 entities (one to many). This corresponds to the OData navigation property to_CapacityShift.

      If the navigation property to_CapacityShift of a queried WorkCenterCapacityInterval_2 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_2 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.
    • getCapacityShiftIfPresent

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

      If the navigation property for an entity WorkCenterCapacityInterval_2 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_CapacityShift is already loaded, the result will contain the WorkCenterCapacityShift_2 entities. If not, an Option with result state empty is returned.
    • setCapacityShift

      public void setCapacityShift(@Nonnull List<WorkCenterCapacityShift_2> value)
      Overwrites the list of associated WorkCenterCapacityShift_2 entities for the loaded navigation property to_CapacityShift.

      If the navigation property to_CapacityShift of a queried WorkCenterCapacityInterval_2 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_2 entities.
    • addCapacityShift

      public void addCapacityShift(WorkCenterCapacityShift_2... entity)
      Adds elements to the list of associated WorkCenterCapacityShift_2 entities. This corresponds to the OData navigation property to_CapacityShift.

      If the navigation property to_CapacityShift of a queried WorkCenterCapacityInterval_2 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_2 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 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:
      Valid-From Date
    • 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
    • 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.
    • 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.
    • 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 entity.
    • getCapacityNumberOfCapacities

      @Nullable public Short getCapacityNumberOfCapacities()
      Constraints: none

      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 ZonedDateTime getCapacityLastChangeDateTime()
      Constraints: Not 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_2>
    • equals

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<WorkCenterCapacityInterval_2>