Class FixedAssetUsageObject
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: FixedAssetUsageObjectType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of FixedAssetUsageObject instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<FixedAssetUsageObject,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<FixedAssetUsageObject>Selector for all available fields of FixedAssetUsageObject.static final SimpleProperty.String<FixedAssetUsageObject>static final SimpleProperty.String<FixedAssetUsageObject>static final SimpleProperty.String<FixedAssetUsageObject>static final SimpleProperty.String<FixedAssetUsageObject>static final SimpleProperty.String<FixedAssetUsageObject>static final SimpleProperty.String<FixedAssetUsageObject>static final SimpleProperty.Boolean<FixedAssetUsageObject>static final SimpleProperty.DateTime<FixedAssetUsageObject>Use with available request builders to apply the _UsageObjectPeriod navigation property to query operations.Use with available request builders to apply the _UsageObjectTotal navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionFixedAssetUsageObject(String companyCode, String fixedAssetUsageObject, String fixedAssetUsageObjectDesc, String baseUnit, Boolean isActive, String fixedAssetUsageObjLfcycSts, String fixedAssetUsageObjLfcycName, OffsetDateTime lastChangeDateTime, Collection<SAP__Message> _Messages, List<FixedAssetUsageObjectPeriod> to_UsageObjectPeriod, List<FixedAssetUsageObjectTotal> to_UsageObjectTotal) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUsageObjectPeriod(FixedAssetUsageObjectPeriod... entity) Adds elements to the list of associated FixedAssetUsageObjectPeriod entities.voidaddUsageObjectTotal(FixedAssetUsageObjectTotal... entity) Adds elements to the list of associated FixedAssetUsageObjectTotal entities.builder()protected booleanbooleanAction that can be applied to any entity object of this class.Action that can be applied to any entity object of this class.protected voidConstraints: Not nullableConstraints: Not nullable, Maximum length: 3(Key Field) Constraints: Not nullable, Maximum length: 4protected Stringprotected String(Key Field) Constraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 50Constraints: Not nullable, Maximum length: 60Constraints: Not nullable, Maximum length: 1Constraints: Not nullableprotected ODataEntityKeygetKey()Constraints: Nullable, Precision: 7getType()io.vavr.control.Option<List<FixedAssetUsageObjectPeriod>>Retrieval of associated FixedAssetUsageObjectPeriod entities (one to many).io.vavr.control.Option<List<FixedAssetUsageObjectTotal>>Retrieval of associated FixedAssetUsageObjectTotal entities (one to many).inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetBaseUnit(String baseUnit) Constraints: Not nullable, Maximum length: 3voidsetCompanyCode(String companyCode) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetFixedAssetUsageObject(String fixedAssetUsageObject) (Key Field) Constraints: Not nullable, Maximum length: 12voidsetFixedAssetUsageObjectDesc(String fixedAssetUsageObjectDesc) Constraints: Not nullable, Maximum length: 50voidsetFixedAssetUsageObjLfcycName(String fixedAssetUsageObjLfcycName) Constraints: Not nullable, Maximum length: 60voidsetFixedAssetUsageObjLfcycSts(String fixedAssetUsageObjLfcycSts) Constraints: Not nullable, Maximum length: 1voidsetIsActive(Boolean isActive) Constraints: Not nullablevoidsetLastChangeDateTime(OffsetDateTime lastChangeDateTime) Constraints: Nullable, Precision: 7voidOverwrites the list of associated FixedAssetUsageObjectPeriod entities for the loaded navigation property _UsageObjectPeriod.voidOverwrites the list of associated FixedAssetUsageObjectTotal entities for the loaded navigation property _UsageObjectTotal.toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of FixedAssetUsageObject. -
COMPANY_CODE
-
FIXED_ASSET_USAGE_OBJECT
-
FIXED_ASSET_USAGE_OBJECT_DESC
-
BASE_UNIT
-
IS_ACTIVE
-
FIXED_ASSET_USAGE_OBJ_LFCYC_STS
-
FIXED_ASSET_USAGE_OBJ_LFCYC_NAME
-
LAST_CHANGE_DATE_TIME
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__USAGE_OBJECT_PERIOD
public static final NavigationProperty.Collection<FixedAssetUsageObject,FixedAssetUsageObjectPeriod> TO__USAGE_OBJECT_PERIODUse with available request builders to apply the _UsageObjectPeriod navigation property to query operations. -
TO__USAGE_OBJECT_TOTAL
public static final NavigationProperty.Collection<FixedAssetUsageObject,FixedAssetUsageObjectTotal> TO__USAGE_OBJECT_TOTALUse with available request builders to apply the _UsageObjectTotal navigation property to query operations.
-
-
Constructor Details
-
FixedAssetUsageObject
public FixedAssetUsageObject() -
FixedAssetUsageObject
public FixedAssetUsageObject(@Nullable String companyCode, @Nullable String fixedAssetUsageObject, @Nullable String fixedAssetUsageObjectDesc, @Nullable String baseUnit, @Nullable Boolean isActive, @Nullable String fixedAssetUsageObjLfcycSts, @Nullable String fixedAssetUsageObjLfcycName, @Nullable OffsetDateTime lastChangeDateTime, @Nullable Collection<SAP__Message> _Messages, List<FixedAssetUsageObjectPeriod> to_UsageObjectPeriod, List<FixedAssetUsageObjectTotal> to_UsageObjectTotal)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<FixedAssetUsageObject>
-
setCompanyCode
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Parameters:
companyCode- Company Code
-
setFixedAssetUsageObject
(Key Field) Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: FixedAssetUsageObject
- Parameters:
fixedAssetUsageObject- Usage Object
-
setFixedAssetUsageObjectDesc
Constraints: Not nullable, Maximum length: 50Original property name from the Odata EDM: FixedAssetUsageObjectDesc
- Parameters:
fixedAssetUsageObjectDesc- Usage Object Description
-
setBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseUnit
- Parameters:
baseUnit- Base Unit of Measure
-
setIsActive
Constraints: Not nullableOriginal property name from the Odata EDM: IsActive
- Parameters:
isActive- Is Active?
-
setFixedAssetUsageObjLfcycSts
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: FixedAssetUsageObjLfcycSts
- Parameters:
fixedAssetUsageObjLfcycSts- Usage Object Lifecycle Status
-
setFixedAssetUsageObjLfcycName
Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: FixedAssetUsageObjLfcycName
- Parameters:
fixedAssetUsageObjLfcycName- Usage Object Lifecycle Status Text
-
setLastChangeDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Parameters:
lastChangeDateTime- UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<FixedAssetUsageObject>
-
getKey
- Overrides:
getKeyin classVdmObject<FixedAssetUsageObject>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<FixedAssetUsageObject>
-
fromMap
- Overrides:
fromMapin classVdmObject<FixedAssetUsageObject>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<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
Optionresult state will beempty.- Returns:
- If the information for navigation property _UsageObjectPeriod is already loaded, the result will
contain the FixedAssetUsageObjectPeriod entities. If not, an
Optionwith result stateemptyis returned.
-
setUsageObjectPeriod
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
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
Optionresult state will beempty.- Returns:
- If the information for navigation property _UsageObjectTotal is already loaded, the result will
contain the FixedAssetUsageObjectTotal entities. If not, an
Optionwith result stateemptyis returned.
-
setUsageObjectTotal
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
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
-
getCompanyCode
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Returns:
- Company Code
-
getFixedAssetUsageObject
(Key Field) Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: FixedAssetUsageObject
- Returns:
- Usage Object
-
getFixedAssetUsageObjectDesc
Constraints: Not nullable, Maximum length: 50Original property name from the Odata EDM: FixedAssetUsageObjectDesc
- Returns:
- Usage Object Description
-
getBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseUnit
- Returns:
- Base Unit of Measure
-
getIsActive
Constraints: Not nullableOriginal property name from the Odata EDM: IsActive
- Returns:
- Is Active?
-
getFixedAssetUsageObjLfcycSts
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: FixedAssetUsageObjLfcycSts
- Returns:
- Usage Object Lifecycle Status
-
getFixedAssetUsageObjLfcycName
Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: FixedAssetUsageObjLfcycName
- Returns:
- Usage Object Lifecycle Status Text
-
getLastChangeDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Returns:
- UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<FixedAssetUsageObject>
-
equals
- Overrides:
equalsin classVdmEntity<FixedAssetUsageObject>
-
canEqual
- Overrides:
canEqualin classVdmEntity<FixedAssetUsageObject>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<FixedAssetUsageObject>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<FixedAssetUsageObject>
-