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

public class SrcgProjQtnItmShipgInstrn extends VdmEntity<SrcgProjQtnItmShipgInstrn> implements VdmEntitySet
Shipping Instructions for Item

Original entity name from the Odata EDM: SrcgProjQtnItmShipgInstrn_Type

  • Field Details

  • Constructor Details

    • SrcgProjQtnItmShipgInstrn

      public SrcgProjQtnItmShipgInstrn()
    • SrcgProjQtnItmShipgInstrn

      public SrcgProjQtnItmShipgInstrn(@Nullable UUID srcgProjQtnItmShipgInstrnUUID, @Nullable UUID sourcingProjectQuotationUUID, @Nullable UUID srcgProjQtnItemUUID, @Nullable String plant, @Nullable String shippingInstruction, @Nullable String companyCode, @Nullable String procurementHubSourceSystem, @Nullable SourcingProjectQuotation to_SourcingProjectQuotation, List<SrcgProjQtnAllwdShipgInstrn> to_SrcgProjQtnAllwdShipgInstrn, @Nullable SrcgProjQtnItem to_SrcgProjQuotationItem)
  • Method Details

    • getType

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

      public void setSrcgProjQtnItmShipgInstrnUUID(@Nullable UUID srcgProjQtnItmShipgInstrnUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnItmShipgInstrnUUID

      Parameters:
      srcgProjQtnItmShipgInstrnUUID - Shipping Instruction UUID for Item in Supplier Qtn (SP)
    • setSourcingProjectQuotationUUID

      public void setSourcingProjectQuotationUUID(@Nullable UUID sourcingProjectQuotationUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectQuotationUUID

      Parameters:
      sourcingProjectQuotationUUID - Supplier Quotation UUID
    • setSrcgProjQtnItemUUID

      public void setSrcgProjQtnItemUUID(@Nullable UUID srcgProjQtnItemUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnItemUUID

      Parameters:
      srcgProjQtnItemUUID - Supplier Quotation Item UUID
    • setPlant

      public void setPlant(@Nullable String plant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setShippingInstruction

      public void setShippingInstruction(@Nullable String shippingInstruction)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ShippingInstruction

      Parameters:
      shippingInstruction - Shipping Instructions
    • setCompanyCode

      public void setCompanyCode(@Nullable String companyCode)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • setProcurementHubSourceSystem

      public void setProcurementHubSourceSystem(@Nullable String procurementHubSourceSystem)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Parameters:
      procurementHubSourceSystem - Connected System ID
    • getEntityCollection

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

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

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

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

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

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

      @Nonnull public io.vavr.control.Option<SourcingProjectQuotation> getSourcingProjectQuotationIfPresent()
      Retrieval of associated SourcingProjectQuotation entity (one to one). This corresponds to the OData navigation property _SourcingProjectQuotation.

      If the navigation property for an entity SrcgProjQtnItmShipgInstrn 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 _SourcingProjectQuotation is already loaded, the result will contain the SourcingProjectQuotation entity. If not, an Option with result state empty is returned.
    • setSourcingProjectQuotation

      public void setSourcingProjectQuotation(SourcingProjectQuotation value)
      Overwrites the associated SourcingProjectQuotation entity for the loaded navigation property _SourcingProjectQuotation.
      Parameters:
      value - New SourcingProjectQuotation entity.
    • getSrcgProjQtnAllwdShipgInstrnIfPresent

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

      If the navigation property for an entity SrcgProjQtnItmShipgInstrn 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 _SrcgProjQtnAllwdShipgInstrn is already loaded, the result will contain the SrcgProjQtnAllwdShipgInstrn entities. If not, an Option with result state empty is returned.
    • setSrcgProjQtnAllwdShipgInstrn

      public void setSrcgProjQtnAllwdShipgInstrn(@Nonnull List<SrcgProjQtnAllwdShipgInstrn> value)
      Overwrites the list of associated SrcgProjQtnAllwdShipgInstrn entities for the loaded navigation property _SrcgProjQtnAllwdShipgInstrn.

      If the navigation property _SrcgProjQtnAllwdShipgInstrn of a queried SrcgProjQtnItmShipgInstrn 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 SrcgProjQtnAllwdShipgInstrn entities.
    • addSrcgProjQtnAllwdShipgInstrn

      public void addSrcgProjQtnAllwdShipgInstrn(SrcgProjQtnAllwdShipgInstrn... entity)
      Adds elements to the list of associated SrcgProjQtnAllwdShipgInstrn entities. This corresponds to the OData navigation property _SrcgProjQtnAllwdShipgInstrn.

      If the navigation property _SrcgProjQtnAllwdShipgInstrn of a queried SrcgProjQtnItmShipgInstrn 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 SrcgProjQtnAllwdShipgInstrn entities.
    • getSrcgProjQuotationItemIfPresent

      @Nonnull public io.vavr.control.Option<SrcgProjQtnItem> getSrcgProjQuotationItemIfPresent()
      Retrieval of associated SrcgProjQtnItem entity (one to one). This corresponds to the OData navigation property _SrcgProjQuotationItem.

      If the navigation property for an entity SrcgProjQtnItmShipgInstrn 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 _SrcgProjQuotationItem is already loaded, the result will contain the SrcgProjQtnItem entity. If not, an Option with result state empty is returned.
    • setSrcgProjQuotationItem

      public void setSrcgProjQuotationItem(SrcgProjQtnItem value)
      Overwrites the associated SrcgProjQtnItem entity for the loaded navigation property _SrcgProjQuotationItem.
      Parameters:
      value - New SrcgProjQtnItem entity.
    • builder

    • getSrcgProjQtnItmShipgInstrnUUID

      @Nullable public UUID getSrcgProjQtnItmShipgInstrnUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnItmShipgInstrnUUID

      Returns:
      Shipping Instruction UUID for Item in Supplier Qtn (SP)
    • getSourcingProjectQuotationUUID

      @Nullable public UUID getSourcingProjectQuotationUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectQuotationUUID

      Returns:
      Supplier Quotation UUID
    • getSrcgProjQtnItemUUID

      @Nullable public UUID getSrcgProjQtnItemUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnItemUUID

      Returns:
      Supplier Quotation Item UUID
    • getPlant

      @Nullable public String getPlant()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getShippingInstruction

      @Nullable public String getShippingInstruction()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ShippingInstruction

      Returns:
      Shipping Instructions
    • getCompanyCode

      @Nullable public String getCompanyCode()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getProcurementHubSourceSystem

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

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Returns:
      Connected System ID
    • toString

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

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

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

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

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