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

public class FixedAssetUsageObjectTotal extends VdmEntity<FixedAssetUsageObjectTotal> implements VdmEntitySet
Total Units of Fixed Asset Usage Object

Original entity name from the Odata EDM: FixedAssetUsageObjectTotalType

  • Field Details

  • Constructor Details

    • FixedAssetUsageObjectTotal

      public FixedAssetUsageObjectTotal()
    • FixedAssetUsageObjectTotal

      public FixedAssetUsageObjectTotal(@Nullable String companyCode, @Nullable String fixedAssetUsageObject, @Nullable String fixedAssetUsageObjectDeprArea, @Nullable LocalDate validityEndDate, @Nullable LocalDate validityStartDate, @Nullable BigDecimal capacityInProductionUnit, @Nullable String baseUnit, @Nullable Collection<SAP__Message> _Messages, @Nullable FixedAssetUsageObject to_UsageObject)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • setFixedAssetUsageObject

      public void setFixedAssetUsageObject(@Nullable String fixedAssetUsageObject)
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: FixedAssetUsageObject

      Parameters:
      fixedAssetUsageObject - Usage Object
    • setFixedAssetUsageObjectDeprArea

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

      Original property name from the Odata EDM: FixedAssetUsageObjectDeprArea

      Parameters:
      fixedAssetUsageObjectDeprArea - Depreciation Area (incl. Generic Entry)
    • setValidityEndDate

      public void setValidityEndDate(@Nullable LocalDate validityEndDate)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ValidityEndDate

      Parameters:
      validityEndDate - Date Validity Ends
    • setValidityStartDate

      public void setValidityStartDate(@Nullable LocalDate validityStartDate)
      Constraints: Not nullable

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Date for Beginning of Validity
    • setCapacityInProductionUnit

      public void setCapacityInProductionUnit(@Nullable BigDecimal capacityInProductionUnit)
      Constraints: Not nullable, Precision: 18, Scale: 3

      Original property name from the Odata EDM: CapacityInProductionUnit

      Parameters:
      capacityInProductionUnit - Total Number of Units
    • setBaseUnit

      public void setBaseUnit(@Nullable String baseUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseUnit

      Parameters:
      baseUnit - Base Unit of Measure
    • 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<FixedAssetUsageObjectTotal>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity FixedAssetUsageObjectTotal 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 _UsageObject is already loaded, the result will contain the FixedAssetUsageObject entity. If not, an Option with result state empty is returned.
    • setUsageObject

      public void setUsageObject(FixedAssetUsageObject value)
      Overwrites the associated FixedAssetUsageObject entity for the loaded navigation property _UsageObject.
      Parameters:
      value - New FixedAssetUsageObject entity.
    • split

      @Nonnull public static BoundAction.SingleToCollection<FixedAssetUsageObjectTotal,FixedAssetUsageObjectTotal> split(@Nullable LocalDate validityStartDate)
      Action that can be applied to any entity object of this class.

      Parameters:
      validityStartDate - Constraints: Nullable

      Original parameter name from the Odata EDM: ValidityStartDate

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • builder

    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getFixedAssetUsageObject

      @Nullable public String getFixedAssetUsageObject()
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: FixedAssetUsageObject

      Returns:
      Usage Object
    • getFixedAssetUsageObjectDeprArea

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

      Original property name from the Odata EDM: FixedAssetUsageObjectDeprArea

      Returns:
      Depreciation Area (incl. Generic Entry)
    • getValidityEndDate

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

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      Date Validity Ends
    • getValidityStartDate

      @Nullable public LocalDate getValidityStartDate()
      Constraints: Not nullable

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Date for Beginning of Validity
    • getCapacityInProductionUnit

      @Nullable public BigDecimal getCapacityInProductionUnit()
      Constraints: Not nullable, Precision: 18, Scale: 3

      Original property name from the Odata EDM: CapacityInProductionUnit

      Returns:
      Total Number of Units
    • getBaseUnit

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

      Original property name from the Odata EDM: BaseUnit

      Returns:
      Base Unit of Measure
    • 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<FixedAssetUsageObjectTotal>
    • equals

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

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

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

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