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

public class FixedAssetUsageObjectPeriod extends VdmEntity<FixedAssetUsageObjectPeriod> implements VdmEntitySet
Period Units of Fixed Asset Usage Object

Original entity name from the Odata EDM: FixedAssetUsageObjectPeriodType

  • Field Details

  • Constructor Details

    • FixedAssetUsageObjectPeriod

      public FixedAssetUsageObjectPeriod()
    • FixedAssetUsageObjectPeriod

      public FixedAssetUsageObjectPeriod(@Nullable String companyCode, @Nullable String fixedAssetUsageObject, @Nullable LocalDate validityEndDate, @Nullable LocalDate validityStartDate, @Nullable BigDecimal periodPlannedQtyInProdnUnit, @Nullable String baseUnit, @Nullable FixedAssetUsageObject to_UsageObject)
  • Method Details

    • getType

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

      Original property name from the Odata EDM: ValidityStartDate

      Parameters:
      validityStartDate - Date for Beginning of Validity
    • setPeriodPlannedQtyInProdnUnit

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

      Original property name from the Odata EDM: PeriodPlannedQtyInProdnUnit

      Parameters:
      periodPlannedQtyInProdnUnit - Planned Number of Units in the Period
    • 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
    • getEntityCollection

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

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

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<FixedAssetUsageObjectPeriod>
    • 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 FixedAssetUsageObjectPeriod 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.
    • 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
    • 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: Nullable

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      Date for Beginning of Validity
    • getPeriodPlannedQtyInProdnUnit

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

      Original property name from the Odata EDM: PeriodPlannedQtyInProdnUnit

      Returns:
      Planned Number of Units in the Period
    • getBaseUnit

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

      Original property name from the Odata EDM: BaseUnit

      Returns:
      Base Unit of Measure
    • toString

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

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

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

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

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