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

public class SourcingProjectNegotiation extends VdmEntity<SourcingProjectNegotiation> implements VdmEntitySet
Negotiation for Sourcing Project

Original entity name from the Odata EDM: SourcingProjectNegotiation_Type

  • Field Details

  • Constructor Details

    • SourcingProjectNegotiation

      public SourcingProjectNegotiation()
    • SourcingProjectNegotiation

      public SourcingProjectNegotiation(@Nullable UUID sourcingProjectNegotiationUUID, @Nullable String sourcingProjectNegotiation, @Nullable String sourcingProjectNegotiationType, @Nullable String sourcingProjectNegotiationName, @Nullable String srcgProjNegttnLifecycleStatus, @Nullable LocalDate srcgProjNegotiationStartDate, @Nullable LocalDate srcgProjNegotiationEndDate, @Nullable String createdByUser, @Nullable OffsetDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable OffsetDateTime lastChangeDateTime, @Nullable UUID sourcingProjectUUID, @Nullable String sourcingProject, @Nullable String sourcingProjectName, @Nullable String sourcingProjectVersion, @Nullable Collection<SAP__Message> _Messages, @Nullable SourcingProject to_SourcingProjectTP, List<SrcgProjNegotiationQuotation> to_SrcgProjNegttnQuotationTP)
  • Method Details

    • getType

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

      public void setSourcingProjectNegotiationUUID(@Nullable UUID sourcingProjectNegotiationUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectNegotiationUUID

      Parameters:
      sourcingProjectNegotiationUUID - Negotiation UUID
    • setSourcingProjectNegotiation

      public void setSourcingProjectNegotiation(@Nullable String sourcingProjectNegotiation)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SourcingProjectNegotiation

      Parameters:
      sourcingProjectNegotiation - Negotiation for Sourcing Project
    • setSourcingProjectNegotiationType

      public void setSourcingProjectNegotiationType(@Nullable String sourcingProjectNegotiationType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: SourcingProjectNegotiationType

      Parameters:
      sourcingProjectNegotiationType - Type of Negotiation
    • setSourcingProjectNegotiationName

      public void setSourcingProjectNegotiationName(@Nullable String sourcingProjectNegotiationName)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: SourcingProjectNegotiationName

      Parameters:
      sourcingProjectNegotiationName - Negotiation Name
    • setSrcgProjNegttnLifecycleStatus

      public void setSrcgProjNegttnLifecycleStatus(@Nullable String srcgProjNegttnLifecycleStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SrcgProjNegttnLifecycleStatus

      Parameters:
      srcgProjNegttnLifecycleStatus - Lifecycle Status for Negotiation
    • setSrcgProjNegotiationStartDate

      public void setSrcgProjNegotiationStartDate(@Nullable LocalDate srcgProjNegotiationStartDate)
      Constraints: Nullable

      Original property name from the Odata EDM: SrcgProjNegotiationStartDate

      Parameters:
      srcgProjNegotiationStartDate - Start Date of Negotiation
    • setSrcgProjNegotiationEndDate

      public void setSrcgProjNegotiationEndDate(@Nullable LocalDate srcgProjNegotiationEndDate)
      Constraints: Nullable

      Original property name from the Odata EDM: SrcgProjNegotiationEndDate

      Parameters:
      srcgProjNegotiationEndDate - End Date of Negotiation
    • setCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Created By User
    • setCreationDateTime

      public void setCreationDateTime(@Nullable OffsetDateTime creationDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Creation of Date and Time of Negotiation
    • setLastChangedByUser

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

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Last Changed By User
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable OffsetDateTime lastChangeDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Last Changed On
    • setSourcingProjectUUID

      public void setSourcingProjectUUID(@Nullable UUID sourcingProjectUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectUUID

      Parameters:
      sourcingProjectUUID - Sourcing Project UUID
    • setSourcingProject

      public void setSourcingProject(@Nullable String sourcingProject)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SourcingProject

      Parameters:
      sourcingProject - Sourcing Project
    • setSourcingProjectName

      public void setSourcingProjectName(@Nullable String sourcingProjectName)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: SourcingProjectName

      Parameters:
      sourcingProjectName - Sourcing Project Name
    • setSourcingProjectVersion

      public void setSourcingProjectVersion(@Nullable String sourcingProjectVersion)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: SourcingProjectVersion

      Parameters:
      sourcingProjectVersion - Sourcing Project Version
    • 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<SourcingProjectNegotiation>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity SourcingProjectNegotiation 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 _SourcingProjectTP is already loaded, the result will contain the SourcingProject entity. If not, an Option with result state empty is returned.
    • setSourcingProjectTP

      public void setSourcingProjectTP(SourcingProject value)
      Overwrites the associated SourcingProject entity for the loaded navigation property _SourcingProjectTP.
      Parameters:
      value - New SourcingProject entity.
    • getSrcgProjNegttnQuotationTPIfPresent

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

      If the navigation property for an entity SourcingProjectNegotiation 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 _SrcgProjNegttnQuotationTP is already loaded, the result will contain the SrcgProjNegotiationQuotation entities. If not, an Option with result state empty is returned.
    • setSrcgProjNegttnQuotationTP

      public void setSrcgProjNegttnQuotationTP(@Nonnull List<SrcgProjNegotiationQuotation> value)
      Overwrites the list of associated SrcgProjNegotiationQuotation entities for the loaded navigation property _SrcgProjNegttnQuotationTP.

      If the navigation property _SrcgProjNegttnQuotationTP of a queried SourcingProjectNegotiation 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 SrcgProjNegotiationQuotation entities.
    • addSrcgProjNegttnQuotationTP

      public void addSrcgProjNegttnQuotationTP(SrcgProjNegotiationQuotation... entity)
      Adds elements to the list of associated SrcgProjNegotiationQuotation entities. This corresponds to the OData navigation property _SrcgProjNegttnQuotationTP.

      If the navigation property _SrcgProjNegttnQuotationTP of a queried SourcingProjectNegotiation 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 SrcgProjNegotiationQuotation entities.
    • copy

      @Nonnull public static BoundAction.SingleToSingle<SourcingProjectNegotiation,SourcingProjectNegotiation> copy(@Nonnull Boolean noteIsCopyEnabled, @Nullable LocalDate srcgProjNegotiationStartDate, @Nullable LocalDate srcgProjNegotiationEndDate)
      Action that can be applied to any entity object of this class.

      Parameters:
      srcgProjNegotiationEndDate - Constraints: Nullable

      Original parameter name from the Odata EDM: SrcgProjNegotiationEndDate

      srcgProjNegotiationStartDate - Constraints: Nullable

      Original parameter name from the Odata EDM: SrcgProjNegotiationStartDate

      noteIsCopyEnabled - Constraints: Not nullable

      Original parameter name from the Odata EDM: NoteIsCopyEnabled

      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.
    • cancel

      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.
    • endNegotiation

      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.
    • crteSourcingProjectNegotiation

      @Nonnull public static BoundAction.CollectionToSingle<SourcingProjectNegotiation,SourcingProjectNegotiation> crteSourcingProjectNegotiation(@Nonnull String sourcingProjectNegotiationType, @Nonnull String sourcingProjectNegotiationName, @Nullable LocalDate srcgProjNegotiationStartDate, @Nullable LocalDate srcgProjNegotiationEndDate, @Nonnull Collection<D_SPNegttnCrteSrcgProjQtnP> _SourcingProjectQuotation)
      Action that can be applied to a collection of entities of this class.

      Parameters:
      srcgProjNegotiationEndDate - Constraints: Nullable

      Original parameter name from the Odata EDM: SrcgProjNegotiationEndDate

      _SourcingProjectQuotation - Constraints: Not nullable

      Original parameter name from the Odata EDM: _SourcingProjectQuotation

      srcgProjNegotiationStartDate - Constraints: Nullable

      Original parameter name from the Odata EDM: SrcgProjNegotiationStartDate

      sourcingProjectNegotiationType - Constraints: Not nullable, Maximum length: 1

      Original parameter name from the Odata EDM: SourcingProjectNegotiationType

      sourcingProjectNegotiationName - Constraints: Not nullable, Maximum length: 60

      Original parameter name from the Odata EDM: SourcingProjectNegotiationName

      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.
    • publish

      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.
    • complete

      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

    • getSourcingProjectNegotiationUUID

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

      Original property name from the Odata EDM: SourcingProjectNegotiationUUID

      Returns:
      Negotiation UUID
    • getSourcingProjectNegotiation

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

      Original property name from the Odata EDM: SourcingProjectNegotiation

      Returns:
      Negotiation for Sourcing Project
    • getSourcingProjectNegotiationType

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

      Original property name from the Odata EDM: SourcingProjectNegotiationType

      Returns:
      Type of Negotiation
    • getSourcingProjectNegotiationName

      @Nullable public String getSourcingProjectNegotiationName()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: SourcingProjectNegotiationName

      Returns:
      Negotiation Name
    • getSrcgProjNegttnLifecycleStatus

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

      Original property name from the Odata EDM: SrcgProjNegttnLifecycleStatus

      Returns:
      Lifecycle Status for Negotiation
    • getSrcgProjNegotiationStartDate

      @Nullable public LocalDate getSrcgProjNegotiationStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: SrcgProjNegotiationStartDate

      Returns:
      Start Date of Negotiation
    • getSrcgProjNegotiationEndDate

      @Nullable public LocalDate getSrcgProjNegotiationEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: SrcgProjNegotiationEndDate

      Returns:
      End Date of Negotiation
    • getCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created By User
    • getCreationDateTime

      @Nullable public OffsetDateTime getCreationDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Creation of Date and Time of Negotiation
    • getLastChangedByUser

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

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Last Changed By User
    • getLastChangeDateTime

      @Nullable public OffsetDateTime getLastChangeDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Last Changed On
    • getSourcingProjectUUID

      @Nullable public UUID getSourcingProjectUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectUUID

      Returns:
      Sourcing Project UUID
    • getSourcingProject

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

      Original property name from the Odata EDM: SourcingProject

      Returns:
      Sourcing Project
    • getSourcingProjectName

      @Nullable public String getSourcingProjectName()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: SourcingProjectName

      Returns:
      Sourcing Project Name
    • getSourcingProjectVersion

      @Nullable public String getSourcingProjectVersion()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: SourcingProjectVersion

      Returns:
      Sourcing Project Version
    • 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<SourcingProjectNegotiation>
    • equals

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

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

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

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