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

public class ReturnsInspection extends VdmEntity<ReturnsInspection> implements VdmEntitySet
Returns Inspection Header

Original entity name from the Odata EDM: ReturnsInspection_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setReturnsInspection(@Nullable String returnsInspection)
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ReturnsInspection

      Parameters:
      returnsInspection - Inspection Outcome number
    • setReturnsDelivery

      public void setReturnsDelivery(@Nullable String returnsDelivery)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ReturnsDelivery

      Parameters:
      returnsDelivery - Delivery
    • setRetsInspectionIsToBeConfirmed

      public void setRetsInspectionIsToBeConfirmed(@Nullable String retsInspectionIsToBeConfirmed)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: RetsInspectionIsToBeConfirmed

      Parameters:
      retsInspectionIsToBeConfirmed - The retsInspectionIsToBeConfirmed to set.
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Name of Person Responsible for Creating the Object
    • setCreationDateTime

      public void setCreationDateTime(@Nullable OffsetDateTime creationDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Name of Person Who Changed Object
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable OffsetDateTime lastChangeDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • 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<ReturnsInspection>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity ReturnsInspection 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 _Item is already loaded, the result will contain the ReturnsInspectionItem entities. If not, an Option with result state empty is returned.
    • setItem

      public void setItem(@Nonnull List<ReturnsInspectionItem> value)
      Overwrites the list of associated ReturnsInspectionItem entities for the loaded navigation property _Item.

      If the navigation property _Item of a queried ReturnsInspection 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 ReturnsInspectionItem entities.
    • addItem

      public void addItem(ReturnsInspectionItem... entity)
      Adds elements to the list of associated ReturnsInspectionItem entities. This corresponds to the OData navigation property _Item.

      If the navigation property _Item of a queried ReturnsInspection 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 ReturnsInspectionItem entities.
    • confirmRetsInspByDelivery

      @Nonnull public static BoundAction.CollectionToSingle<ReturnsInspection,Void> confirmRetsInspByDelivery(@Nonnull String returnsDelivery, @Nonnull Collection<D_RetsInspectionItemConfirmP> _Item)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      returnsDelivery - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: ReturnsDelivery

      _Item - Constraints: Not nullable

      Original parameter name from the Odata EDM: _Item

      Returns:
      Action object prepared with the given parameters to be applied to a collection of entities of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • deleteRetsInspByDelivery

      @Nonnull public static BoundAction.CollectionToSingle<ReturnsInspection,Void> deleteRetsInspByDelivery(@Nonnull String returnsDelivery, @Nonnull Collection<D_ReturnsInspectionItemDeleteP> _Item)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      returnsDelivery - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: ReturnsDelivery

      _Item - Constraints: Not nullable

      Original parameter name from the Odata EDM: _Item

      Returns:
      Action object prepared with the given parameters to be applied to a collection of entities of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • updateRetsInspByDelivery

      @Nonnull public static BoundAction.CollectionToSingle<ReturnsInspection,Void> updateRetsInspByDelivery(@Nonnull String returnsDelivery, @Nonnull String retsInspectionIsToBeConfirmed, @Nonnull Collection<D_ReturnsInspectionItemUpdateP> _Item)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      retsInspectionIsToBeConfirmed - Constraints: Not nullable, Maximum length: 1

      Original parameter name from the Odata EDM: RetsInspectionIsToBeConfirmed

      returnsDelivery - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: ReturnsDelivery

      _Item - Constraints: Not nullable

      Original parameter name from the Odata EDM: _Item

      Returns:
      Action object prepared with the given parameters to be applied to a collection of entities of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • builder

      @Nonnull public static ReturnsInspection.ReturnsInspectionBuilder builder()
    • getReturnsInspection

      @Nullable public String getReturnsInspection()
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ReturnsInspection

      Returns:
      Inspection Outcome number
    • getReturnsDelivery

      @Nullable public String getReturnsDelivery()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ReturnsDelivery

      Returns:
      Delivery
    • getRetsInspectionIsToBeConfirmed

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

      Original property name from the Odata EDM: RetsInspectionIsToBeConfirmed

      Returns:
      The retsInspectionIsToBeConfirmed contained in this VdmEntity.
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Name of Person Responsible for Creating the Object
    • getCreationDateTime

      @Nullable public OffsetDateTime getCreationDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • getLastChangedByUser

      @Nullable public String getLastChangedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Name of Person Who Changed Object
    • getLastChangeDateTime

      @Nullable public OffsetDateTime getLastChangeDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • 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<ReturnsInspection>
    • equals

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

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

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

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