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

public class FixedAssetUsageObject extends VdmEntity<FixedAssetUsageObject> implements VdmEntitySet
Fixed Asset Usage Object

Original entity name from the Odata EDM: FixedAssetUsageObjectType

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setFixedAssetUsageObjectDesc(@Nullable String fixedAssetUsageObjectDesc)
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: FixedAssetUsageObjectDesc

      Parameters:
      fixedAssetUsageObjectDesc - Usage Object Description
    • 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
    • setIsActive

      public void setIsActive(@Nullable Boolean isActive)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsActive

      Parameters:
      isActive - Is Active?
    • setFixedAssetUsageObjLfcycSts

      public void setFixedAssetUsageObjLfcycSts(@Nullable String fixedAssetUsageObjLfcycSts)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: FixedAssetUsageObjLfcycSts

      Parameters:
      fixedAssetUsageObjLfcycSts - Usage Object Lifecycle Status
    • setFixedAssetUsageObjLfcycName

      public void setFixedAssetUsageObjLfcycName(@Nullable String fixedAssetUsageObjLfcycName)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: FixedAssetUsageObjLfcycName

      Parameters:
      fixedAssetUsageObjLfcycName - Usage Object Lifecycle Status Text
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable OffsetDateTime lastChangeDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
    • 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<FixedAssetUsageObject>
    • getKey

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

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

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

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

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

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

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

      public void setUsageObjectPeriod(@Nonnull List<FixedAssetUsageObjectPeriod> value)
      Overwrites the list of associated FixedAssetUsageObjectPeriod entities for the loaded navigation property _UsageObjectPeriod.

      If the navigation property _UsageObjectPeriod of a queried FixedAssetUsageObject 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 FixedAssetUsageObjectPeriod entities.
    • addUsageObjectPeriod

      public void addUsageObjectPeriod(FixedAssetUsageObjectPeriod... entity)
      Adds elements to the list of associated FixedAssetUsageObjectPeriod entities. This corresponds to the OData navigation property _UsageObjectPeriod.

      If the navigation property _UsageObjectPeriod of a queried FixedAssetUsageObject 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 FixedAssetUsageObjectPeriod entities.
    • getUsageObjectTotalIfPresent

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

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

      public void setUsageObjectTotal(@Nonnull List<FixedAssetUsageObjectTotal> value)
      Overwrites the list of associated FixedAssetUsageObjectTotal entities for the loaded navigation property _UsageObjectTotal.

      If the navigation property _UsageObjectTotal of a queried FixedAssetUsageObject 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 FixedAssetUsageObjectTotal entities.
    • addUsageObjectTotal

      public void addUsageObjectTotal(FixedAssetUsageObjectTotal... entity)
      Adds elements to the list of associated FixedAssetUsageObjectTotal entities. This corresponds to the OData navigation property _UsageObjectTotal.

      If the navigation property _UsageObjectTotal of a queried FixedAssetUsageObject 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 FixedAssetUsageObjectTotal entities.
    • executeDeactivation

      @Nonnull public static BoundAction.SingleToSingle<FixedAssetUsageObject,FixedAssetUsageObject> executeDeactivation()
      Action that can be applied to any entity object of this class.

      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.
    • executeActivation

      @Nonnull public static BoundAction.SingleToSingle<FixedAssetUsageObject,FixedAssetUsageObject> executeActivation()
      Action that can be applied to any entity object of this class.

      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

      @Nonnull public static FixedAssetUsageObject.FixedAssetUsageObjectBuilder 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
    • getFixedAssetUsageObjectDesc

      @Nullable public String getFixedAssetUsageObjectDesc()
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: FixedAssetUsageObjectDesc

      Returns:
      Usage Object Description
    • getBaseUnit

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

      Original property name from the Odata EDM: BaseUnit

      Returns:
      Base Unit of Measure
    • getIsActive

      @Nullable public Boolean getIsActive()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsActive

      Returns:
      Is Active?
    • getFixedAssetUsageObjLfcycSts

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

      Original property name from the Odata EDM: FixedAssetUsageObjLfcycSts

      Returns:
      Usage Object Lifecycle Status
    • getFixedAssetUsageObjLfcycName

      @Nullable public String getFixedAssetUsageObjLfcycName()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: FixedAssetUsageObjLfcycName

      Returns:
      Usage Object Lifecycle Status Text
    • getLastChangeDateTime

      @Nullable public OffsetDateTime getLastChangeDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
    • 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<FixedAssetUsageObject>
    • equals

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

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

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

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