java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<SerialNumberPhysInventoryDoc>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.physicalinventorydocument.SerialNumberPhysInventoryDoc

public class SerialNumberPhysInventoryDoc extends VdmEntity<SerialNumberPhysInventoryDoc>
Document Serial Number

Original entity name from the Odata EDM: A_SerialNumberPhysInventoryDocType

  • Field Details

  • Constructor Details

    • SerialNumberPhysInventoryDoc

      public SerialNumberPhysInventoryDoc()
    • SerialNumberPhysInventoryDoc

      public SerialNumberPhysInventoryDoc(@Nullable String equipment, @Nullable String fiscalYear, @Nullable String physicalInventoryDocument, @Nullable String physicalInventoryDocumentItem, @Nullable String serialNumberPhysicalInvtryType, @Nullable String material, @Nullable String serialNumber)
  • Method Details

    • getType

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

      public void setEquipment(@Nullable String equipment)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Equipment

      Parameters:
      equipment - Equipment Number
    • setFiscalYear

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

      Original property name from the Odata EDM: FiscalYear

      Parameters:
      fiscalYear - Fiscal Year
    • setPhysicalInventoryDocument

      public void setPhysicalInventoryDocument(@Nullable String physicalInventoryDocument)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PhysicalInventoryDocument

      Parameters:
      physicalInventoryDocument - Physical Inventory Document
    • setPhysicalInventoryDocumentItem

      public void setPhysicalInventoryDocumentItem(@Nullable String physicalInventoryDocumentItem)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PhysicalInventoryDocumentItem

      Parameters:
      physicalInventoryDocumentItem - Line Number
    • setSerialNumberPhysicalInvtryType

      public void setSerialNumberPhysicalInvtryType(@Nullable String serialNumberPhysicalInvtryType)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: SerialNumberPhysicalInvtryType

      Parameters:
      serialNumberPhysicalInvtryType - Serial Number Physical Inventory Type
    • setMaterial

      public void setMaterial(@Nullable String material)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material Number
    • setSerialNumber

      public void setSerialNumber(@Nullable String serialNumber)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SerialNumber

      Parameters:
      serialNumber - Serial Number
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SerialNumberPhysInventoryDocField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> SerialNumberPhysInventoryDocField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<SerialNumberPhysInventoryDoc>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<SerialNumberPhysInventoryDoc>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<SerialNumberPhysInventoryDoc>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<SerialNumberPhysInventoryDoc>
    • builder

    • getEquipment

      @Nullable public String getEquipment()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Equipment

      Returns:
      Equipment Number
    • getFiscalYear

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

      Original property name from the Odata EDM: FiscalYear

      Returns:
      Fiscal Year
    • getPhysicalInventoryDocument

      @Nullable public String getPhysicalInventoryDocument()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PhysicalInventoryDocument

      Returns:
      Physical Inventory Document
    • getPhysicalInventoryDocumentItem

      @Nullable public String getPhysicalInventoryDocumentItem()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PhysicalInventoryDocumentItem

      Returns:
      Line Number
    • getSerialNumberPhysicalInvtryType

      @Nullable public String getSerialNumberPhysicalInvtryType()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: SerialNumberPhysicalInvtryType

      Returns:
      Serial Number Physical Inventory Type
    • getMaterial

      @Nullable public String getMaterial()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Material

      Returns:
      Material Number
    • getSerialNumber

      @Nullable public String getSerialNumber()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: SerialNumber

      Returns:
      Serial Number
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<SerialNumberPhysInventoryDoc>