public class FixedAssetUsageObjectPeriod extends VdmEntity<FixedAssetUsageObjectPeriod>
Original entity name from the Odata EDM: FixedAssetUsageObjectPeriodType
Modifier and Type | Class and Description |
---|---|
static class |
FixedAssetUsageObjectPeriod.FixedAssetUsageObjectPeriodBuilder
Helper class to allow for fluent creation of FixedAssetUsageObjectPeriod instances.
|
Modifier and Type | Field and Description |
---|---|
static SimpleProperty<FixedAssetUsageObjectPeriod> |
ALL_FIELDS
Selector for all available fields of FixedAssetUsageObjectPeriod.
|
static SimpleProperty.String<FixedAssetUsageObjectPeriod> |
BASE_UNIT |
static SimpleProperty.String<FixedAssetUsageObjectPeriod> |
COMPANY_CODE |
static SimpleProperty.String<FixedAssetUsageObjectPeriod> |
FIXED_ASSET_USAGE_OBJECT |
static SimpleProperty.NumericDecimal<FixedAssetUsageObjectPeriod> |
PERIOD_PLANNED_QTY_IN_PRODN_UNIT |
static NavigationProperty.Single<FixedAssetUsageObjectPeriod,FixedAssetUsageObject> |
TO__USAGE_OBJECT
Use with available request builders to apply the _UsageObject navigation property to query operations.
|
static SimpleProperty.Date<FixedAssetUsageObjectPeriod> |
VALIDITY_END_DATE |
static SimpleProperty.Date<FixedAssetUsageObjectPeriod> |
VALIDITY_START_DATE |
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS
Constructor and Description |
---|
FixedAssetUsageObjectPeriod() |
FixedAssetUsageObjectPeriod(String companyCode,
String fixedAssetUsageObject,
LocalDate validityEndDate,
LocalDate validityStartDate,
BigDecimal periodPlannedQtyInProdnUnit,
String baseUnit,
FixedAssetUsageObject to_UsageObject) |
Modifier and Type | Method and Description |
---|---|
static FixedAssetUsageObjectPeriod.FixedAssetUsageObjectPeriodBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
protected void |
fromMap(Map<String,Object> inputValues)
Read entity data from generic map.
|
String |
getBaseUnit()
Constraints: Not nullable, Maximum length: 3
|
String |
getCompanyCode()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
protected String |
getDefaultServicePath()
Used by request builders and navigation property methods to construct OData requests.
|
protected String |
getEntityCollection()
Used by request builders and navigation property methods to construct OData requests.
|
String |
getFixedAssetUsageObject()
(Key Field) Constraints: Not nullable, Maximum length: 12
|
protected ODataEntityKey |
getKey() |
String |
getOdataType() |
BigDecimal |
getPeriodPlannedQtyInProdnUnit()
Constraints: Not nullable, Precision: 18, Scale: 3
|
Class<FixedAssetUsageObjectPeriod> |
getType() |
io.vavr.control.Option<FixedAssetUsageObject> |
getUsageObjectIfPresent()
Retrieval of associated FixedAssetUsageObject entity (one to one).
|
LocalDate |
getValidityEndDate()
(Key Field) Constraints: Not nullable
|
LocalDate |
getValidityStartDate()
Constraints: Nullable
|
int |
hashCode() |
void |
setBaseUnit(String baseUnit)
Constraints: Not nullable, Maximum length: 3
|
void |
setCompanyCode(String companyCode)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setFixedAssetUsageObject(String fixedAssetUsageObject)
(Key Field) Constraints: Not nullable, Maximum length: 12
|
void |
setPeriodPlannedQtyInProdnUnit(BigDecimal periodPlannedQtyInProdnUnit)
Constraints: Not nullable, Precision: 18, Scale: 3
|
void |
setUsageObject(FixedAssetUsageObject value)
Overwrites the associated FixedAssetUsageObject entity for the loaded navigation property
_UsageObject.
|
void |
setValidityEndDate(LocalDate validityEndDate)
(Key Field) Constraints: Not nullable
|
void |
setValidityStartDate(LocalDate validityStartDate)
Constraints: Nullable
|
protected Map<String,Object> |
toMapOfFields()
Get all fields as map.
|
protected Map<String,Object> |
toMapOfNavigationProperties()
Get navigation properties as map.
|
String |
toString() |
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifier
getAnnotationProperties, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final SimpleProperty<FixedAssetUsageObjectPeriod> ALL_FIELDS
public static final SimpleProperty.String<FixedAssetUsageObjectPeriod> COMPANY_CODE
public static final SimpleProperty.String<FixedAssetUsageObjectPeriod> FIXED_ASSET_USAGE_OBJECT
public static final SimpleProperty.Date<FixedAssetUsageObjectPeriod> VALIDITY_END_DATE
public static final SimpleProperty.Date<FixedAssetUsageObjectPeriod> VALIDITY_START_DATE
public static final SimpleProperty.NumericDecimal<FixedAssetUsageObjectPeriod> PERIOD_PLANNED_QTY_IN_PRODN_UNIT
public static final SimpleProperty.String<FixedAssetUsageObjectPeriod> BASE_UNIT
public static final NavigationProperty.Single<FixedAssetUsageObjectPeriod,FixedAssetUsageObject> TO__USAGE_OBJECT
public 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)
@Nonnull public Class<FixedAssetUsageObjectPeriod> getType()
getType
in class VdmObject<FixedAssetUsageObjectPeriod>
public void setCompanyCode(@Nullable String companyCode)
Original property name from the Odata EDM: CompanyCode
companyCode
- Company Codepublic void setFixedAssetUsageObject(@Nullable String fixedAssetUsageObject)
Original property name from the Odata EDM: FixedAssetUsageObject
fixedAssetUsageObject
- Usage Objectpublic void setValidityEndDate(@Nullable LocalDate validityEndDate)
Original property name from the Odata EDM: ValidityEndDate
validityEndDate
- Date Validity Endspublic void setValidityStartDate(@Nullable LocalDate validityStartDate)
Original property name from the Odata EDM: ValidityStartDate
validityStartDate
- Date for Beginning of Validitypublic void setPeriodPlannedQtyInProdnUnit(@Nullable BigDecimal periodPlannedQtyInProdnUnit)
Original property name from the Odata EDM: PeriodPlannedQtyInProdnUnit
periodPlannedQtyInProdnUnit
- Planned Number of Units in the Periodpublic void setBaseUnit(@Nullable String baseUnit)
Original property name from the Odata EDM: BaseUnit
baseUnit
- Base Unit of Measureprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<FixedAssetUsageObjectPeriod>
@Nonnull protected ODataEntityKey getKey()
getKey
in class VdmObject<FixedAssetUsageObjectPeriod>
@Nonnull protected Map<String,Object> toMapOfFields()
VdmObject
toMapOfFields
in class VdmObject<FixedAssetUsageObjectPeriod>
protected void fromMap(Map<String,Object> inputValues)
VdmObject
fromMap
in class VdmObject<FixedAssetUsageObjectPeriod>
inputValues
- The key-value map.protected String getDefaultServicePath()
VdmEntity
getDefaultServicePath
in class VdmEntity<FixedAssetUsageObjectPeriod>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
VdmObject
toMapOfNavigationProperties
in class VdmObject<FixedAssetUsageObjectPeriod>
@Nonnull public io.vavr.control.Option<FixedAssetUsageObject> getUsageObjectIfPresent()
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
.
Option
with result state
empty
is returned.public void setUsageObject(FixedAssetUsageObject value)
value
- New FixedAssetUsageObject entity.@Nonnull public static FixedAssetUsageObjectPeriod.FixedAssetUsageObjectPeriodBuilder builder()
@Nullable public String getCompanyCode()
Original property name from the Odata EDM: CompanyCode
@Nullable public String getFixedAssetUsageObject()
Original property name from the Odata EDM: FixedAssetUsageObject
@Nullable public LocalDate getValidityEndDate()
Original property name from the Odata EDM: ValidityEndDate
@Nullable public LocalDate getValidityStartDate()
Original property name from the Odata EDM: ValidityStartDate
@Nullable public BigDecimal getPeriodPlannedQtyInProdnUnit()
Original property name from the Odata EDM: PeriodPlannedQtyInProdnUnit
@Nullable public String getBaseUnit()
Original property name from the Odata EDM: BaseUnit
@Nonnull public String toString()
toString
in class VdmObject<FixedAssetUsageObjectPeriod>
public boolean equals(@Nullable Object o)
equals
in class VdmEntity<FixedAssetUsageObjectPeriod>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmEntity<FixedAssetUsageObjectPeriod>
public int hashCode()
hashCode
in class VdmEntity<FixedAssetUsageObjectPeriod>
public String getOdataType()
getOdataType
in class VdmObject<FixedAssetUsageObjectPeriod>
Copyright © 2021 SAP SE. All rights reserved.