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

public class EnterpriseProjectTeamMember extends VdmEntity<EnterpriseProjectTeamMember>
Project Team Member

Original entity name from the Odata EDM: A_EnterpriseProjectTeamMemberType

  • Field Details

  • Constructor Details

    • EnterpriseProjectTeamMember

      public EnterpriseProjectTeamMember()
    • EnterpriseProjectTeamMember

      public EnterpriseProjectTeamMember(@Nullable Boolean entProjEntitlement_oc, @Nullable UUID teamMemberUUID, @Nullable UUID businessPartnerUUID, @Nullable UUID projectUUID, @Nullable String createdByUser, @Nullable ZonedDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable ZonedDateTime lastChangeDateTime, List<EntTeamMemberEntitlement> toEntProjEntitlement, @Nullable EnterpriseProject toEnterpriseProject)
  • Method Details

    • getType

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

      public void setEntProjEntitlement_oc(@Nullable Boolean entProjEntitlement_oc)
      Constraints: none

      Original property name from the Odata EDM: to_EntProjEntitlement_oc

      Parameters:
      entProjEntitlement_oc - Dynamic CbA-Control
    • setTeamMemberUUID

      public void setTeamMemberUUID(@Nullable UUID teamMemberUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: TeamMemberUUID

      Parameters:
      teamMemberUUID - Entity Guid
    • setBusinessPartnerUUID

      public void setBusinessPartnerUUID(@Nullable UUID businessPartnerUUID)
      Constraints: none

      Original property name from the Odata EDM: BusinessPartnerUUID

      Parameters:
      businessPartnerUUID - Business Partner GUID
    • setProjectUUID

      public void setProjectUUID(@Nullable UUID projectUUID)
      Constraints: none

      Original property name from the Odata EDM: ProjectUUID

      Parameters:
      projectUUID - Entity Guid
    • 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 Who Created Object
    • setCreationDateTime

      public void setCreationDateTime(@Nullable ZonedDateTime creationDateTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Timestamp of Object Creation
    • 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 ZonedDateTime lastChangeDateTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Timestamp of Last Object Change
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> EnterpriseProjectTeamMemberField<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> EnterpriseProjectTeamMemberField<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<EnterpriseProjectTeamMember>
    • setServicePathForFetch

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

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

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

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

      @Nonnull public List<EntTeamMemberEntitlement> fetchEntProjEntitlement()
      Fetches the EntTeamMemberEntitlement entities (one to many) associated with this entity. This corresponds to the OData navigation property to_EntProjEntitlement.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated EntTeamMemberEntitlement entities. If no entities are associated then an empty list is returned.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getEntProjEntitlementOrFetch

      @Nonnull public List<EntTeamMemberEntitlement> getEntProjEntitlementOrFetch()
      Retrieval of associated EntTeamMemberEntitlement entities (one to many). This corresponds to the OData navigation property to_EntProjEntitlement.

      If the navigation property to_EntProjEntitlement of a queried EnterpriseProjectTeamMember 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.

      Returns:
      List of associated EntTeamMemberEntitlement entities.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getEntProjEntitlementIfPresent

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

      If the navigation property for an entity EnterpriseProjectTeamMember 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 to_EntProjEntitlement is already loaded, the result will contain the EntTeamMemberEntitlement entities. If not, an Option with result state empty is returned.
    • setEntProjEntitlement

      public void setEntProjEntitlement(@Nonnull List<EntTeamMemberEntitlement> value)
      Overwrites the list of associated EntTeamMemberEntitlement entities for the loaded navigation property to_EntProjEntitlement.

      If the navigation property to_EntProjEntitlement of a queried EnterpriseProjectTeamMember 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 EntTeamMemberEntitlement entities.
    • addEntProjEntitlement

      public void addEntProjEntitlement(EntTeamMemberEntitlement... entity)
      Adds elements to the list of associated EntTeamMemberEntitlement entities. This corresponds to the OData navigation property to_EntProjEntitlement.

      If the navigation property to_EntProjEntitlement of a queried EnterpriseProjectTeamMember 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 EntTeamMemberEntitlement entities.
    • fetchEnterpriseProject

      @Nullable public EnterpriseProject fetchEnterpriseProject()
      Fetches the EnterpriseProject entity (one to one) associated with this entity. This corresponds to the OData navigation property to_EnterpriseProject.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated EnterpriseProject entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getEnterpriseProjectOrFetch

      @Nullable public EnterpriseProject getEnterpriseProjectOrFetch()
      Retrieval of associated EnterpriseProject entity (one to one). This corresponds to the OData navigation property to_EnterpriseProject.

      If the navigation property to_EnterpriseProject of a queried EnterpriseProjectTeamMember 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.

      Returns:
      List of associated EnterpriseProject entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getEnterpriseProjectIfPresent

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

      If the navigation property for an entity EnterpriseProjectTeamMember 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 to_EnterpriseProject is already loaded, the result will contain the EnterpriseProject entity. If not, an Option with result state empty is returned.
    • setEnterpriseProject

      public void setEnterpriseProject(EnterpriseProject value)
      Overwrites the associated EnterpriseProject entity for the loaded navigation property to_EnterpriseProject.
      Parameters:
      value - New EnterpriseProject entity.
    • builder

    • getEntProjEntitlement_oc

      @Nullable public Boolean getEntProjEntitlement_oc()
      Constraints: none

      Original property name from the Odata EDM: to_EntProjEntitlement_oc

      Returns:
      Dynamic CbA-Control
    • getTeamMemberUUID

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

      Original property name from the Odata EDM: TeamMemberUUID

      Returns:
      Entity Guid
    • getBusinessPartnerUUID

      @Nullable public UUID getBusinessPartnerUUID()
      Constraints: none

      Original property name from the Odata EDM: BusinessPartnerUUID

      Returns:
      Business Partner GUID
    • getProjectUUID

      @Nullable public UUID getProjectUUID()
      Constraints: none

      Original property name from the Odata EDM: ProjectUUID

      Returns:
      Entity Guid
    • getCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Name of Person Who Created Object
    • getCreationDateTime

      @Nullable public ZonedDateTime getCreationDateTime()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Timestamp of Object Creation
    • 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 ZonedDateTime getLastChangeDateTime()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Timestamp of Last Object Change
    • toString

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

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

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

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