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

public class MaintNotificationItemActivity extends VdmEntity<MaintNotificationItemActivity>
Maintenance Notification Item Activity

Original entity name from the Odata EDM: MaintNotificationItemActivityType

  • Field Details

  • Constructor Details

    • MaintNotificationItemActivity

      public MaintNotificationItemActivity()
    • MaintNotificationItemActivity

      public MaintNotificationItemActivity(@Nullable String maintNotificationActivity, @Nullable String maintenanceNotification, @Nullable String maintenanceNotificationItem, @Nullable String maintNotifActivitySortNumber, @Nullable String maintNotifActyTxt, @Nullable String maintNotifActivityCodeGroup, @Nullable String notifActivityCodeGroupText, @Nullable String maintNotificationActivityCode, @Nullable String notifActivityCodeText, @Nullable LocalDateTime plannedStartDate, @Nullable LocalTime plannedStartTime, @Nullable LocalDateTime plannedEndDate, @Nullable LocalTime plannedEndTime, @Nullable Boolean isDeleted, @Nullable ZonedDateTime maintNotifItmActyStrtDateTime, @Nullable ZonedDateTime maintNotifItemActyEndDateTime, @Nullable ZonedDateTime maintNotifItemActyCrtnDateTime, @Nullable ZonedDateTime maintNotifItemActyChgdDateTime, @Nullable MaintenanceNotificationItem toItem, @Nullable MaintenanceNotification toNotif)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: MaintNotificationActivity

      Parameters:
      maintNotificationActivity - Consecutive Number of Activity
    • setMaintenanceNotification

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

      Original property name from the Odata EDM: MaintenanceNotification

      Parameters:
      maintenanceNotification - Notification Number
    • setMaintenanceNotificationItem

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

      Original property name from the Odata EDM: MaintenanceNotificationItem

      Parameters:
      maintenanceNotificationItem - Item Number in Item Record
    • setMaintNotifActivitySortNumber

      public void setMaintNotifActivitySortNumber(@Nullable String maintNotifActivitySortNumber)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: MaintNotifActivitySortNumber

      Parameters:
      maintNotifActivitySortNumber - Sort Number for Activity
    • setMaintNotifActyTxt

      public void setMaintNotifActyTxt(@Nullable String maintNotifActyTxt)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: MaintNotifActyTxt

      Parameters:
      maintNotifActyTxt - Activity Text
    • setMaintNotifActivityCodeGroup

      public void setMaintNotifActivityCodeGroup(@Nullable String maintNotifActivityCodeGroup)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: MaintNotifActivityCodeGroup

      Parameters:
      maintNotifActivityCodeGroup - Activity Code Group
    • setNotifActivityCodeGroupText

      public void setNotifActivityCodeGroupText(@Nullable String notifActivityCodeGroupText)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: NotifActivityCodeGroupText

      Parameters:
      notifActivityCodeGroupText - Text for Code Group
    • setMaintNotificationActivityCode

      public void setMaintNotificationActivityCode(@Nullable String maintNotificationActivityCode)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: MaintNotificationActivityCode

      Parameters:
      maintNotificationActivityCode - Activity Code
    • setNotifActivityCodeText

      public void setNotifActivityCodeText(@Nullable String notifActivityCodeText)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: NotifActivityCodeText

      Parameters:
      notifActivityCodeText - Text for Code
    • setPlannedStartDate

      public void setPlannedStartDate(@Nullable LocalDateTime plannedStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PlannedStartDate

      Parameters:
      plannedStartDate - Activity Start Date
    • setPlannedStartTime

      public void setPlannedStartTime(@Nullable LocalTime plannedStartTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PlannedStartTime

      Parameters:
      plannedStartTime - Start Time of Activity
    • setPlannedEndDate

      public void setPlannedEndDate(@Nullable LocalDateTime plannedEndDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PlannedEndDate

      Parameters:
      plannedEndDate - Activity End Date
    • setPlannedEndTime

      public void setPlannedEndTime(@Nullable LocalTime plannedEndTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PlannedEndTime

      Parameters:
      plannedEndTime - End Time of Activity
    • setIsDeleted

      public void setIsDeleted(@Nullable Boolean isDeleted)
      Constraints: none

      Original property name from the Odata EDM: IsDeleted

      Parameters:
      isDeleted - Delete Data Record
    • setMaintNotifItmActyStrtDateTime

      public void setMaintNotifItmActyStrtDateTime(@Nullable ZonedDateTime maintNotifItmActyStrtDateTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: MaintNotifItmActyStrtDateTime

      Parameters:
      maintNotifItmActyStrtDateTime - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • setMaintNotifItemActyEndDateTime

      public void setMaintNotifItemActyEndDateTime(@Nullable ZonedDateTime maintNotifItemActyEndDateTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: MaintNotifItemActyEndDateTime

      Parameters:
      maintNotifItemActyEndDateTime - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • setMaintNotifItemActyCrtnDateTime

      public void setMaintNotifItemActyCrtnDateTime(@Nullable ZonedDateTime maintNotifItemActyCrtnDateTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: MaintNotifItemActyCrtnDateTime

      Parameters:
      maintNotifItemActyCrtnDateTime - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • setMaintNotifItemActyChgdDateTime

      public void setMaintNotifItemActyChgdDateTime(@Nullable ZonedDateTime maintNotifItemActyChgdDateTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: MaintNotifItemActyChgdDateTime

      Parameters:
      maintNotifItemActyChgdDateTime - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> MaintNotificationItemActivityField<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> MaintNotificationItemActivityField<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<MaintNotificationItemActivity>
    • setServicePathForFetch

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

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

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

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

      @Nullable public MaintenanceNotificationItem fetchItem()
      Fetches the MaintenanceNotificationItem entity (one to one) associated with this entity. This corresponds to the OData navigation property to_Item.

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

      Returns:
      The single associated MaintenanceNotificationItem 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.
    • getItemOrFetch

      @Nullable public MaintenanceNotificationItem getItemOrFetch()
      Retrieval of associated MaintenanceNotificationItem entity (one to one). This corresponds to the OData navigation property to_Item.

      If the navigation property to_Item of a queried MaintNotificationItemActivity 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 MaintenanceNotificationItem 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.
    • getItemIfPresent

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

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

      public void setItem(MaintenanceNotificationItem value)
      Overwrites the associated MaintenanceNotificationItem entity for the loaded navigation property to_Item.
      Parameters:
      value - New MaintenanceNotificationItem entity.
    • fetchNotif

      @Nullable public MaintenanceNotification fetchNotif()
      Fetches the MaintenanceNotification entity (one to one) associated with this entity. This corresponds to the OData navigation property to_Notif.

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

      Returns:
      The single associated MaintenanceNotification 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.
    • getNotifOrFetch

      @Nullable public MaintenanceNotification getNotifOrFetch()
      Retrieval of associated MaintenanceNotification entity (one to one). This corresponds to the OData navigation property to_Notif.

      If the navigation property to_Notif of a queried MaintNotificationItemActivity 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 MaintenanceNotification 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.
    • getNotifIfPresent

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

      If the navigation property for an entity MaintNotificationItemActivity 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_Notif is already loaded, the result will contain the MaintenanceNotification entity. If not, an Option with result state empty is returned.
    • setNotif

      public void setNotif(MaintenanceNotification value)
      Overwrites the associated MaintenanceNotification entity for the loaded navigation property to_Notif.
      Parameters:
      value - New MaintenanceNotification entity.
    • builder

    • getMaintNotificationActivity

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

      Original property name from the Odata EDM: MaintNotificationActivity

      Returns:
      Consecutive Number of Activity
    • getMaintenanceNotification

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

      Original property name from the Odata EDM: MaintenanceNotification

      Returns:
      Notification Number
    • getMaintenanceNotificationItem

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

      Original property name from the Odata EDM: MaintenanceNotificationItem

      Returns:
      Item Number in Item Record
    • getMaintNotifActivitySortNumber

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

      Original property name from the Odata EDM: MaintNotifActivitySortNumber

      Returns:
      Sort Number for Activity
    • getMaintNotifActyTxt

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

      Original property name from the Odata EDM: MaintNotifActyTxt

      Returns:
      Activity Text
    • getMaintNotifActivityCodeGroup

      @Nullable public String getMaintNotifActivityCodeGroup()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: MaintNotifActivityCodeGroup

      Returns:
      Activity Code Group
    • getNotifActivityCodeGroupText

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

      Original property name from the Odata EDM: NotifActivityCodeGroupText

      Returns:
      Text for Code Group
    • getMaintNotificationActivityCode

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

      Original property name from the Odata EDM: MaintNotificationActivityCode

      Returns:
      Activity Code
    • getNotifActivityCodeText

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

      Original property name from the Odata EDM: NotifActivityCodeText

      Returns:
      Text for Code
    • getPlannedStartDate

      @Nullable public LocalDateTime getPlannedStartDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PlannedStartDate

      Returns:
      Activity Start Date
    • getPlannedStartTime

      @Nullable public LocalTime getPlannedStartTime()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PlannedStartTime

      Returns:
      Start Time of Activity
    • getPlannedEndDate

      @Nullable public LocalDateTime getPlannedEndDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PlannedEndDate

      Returns:
      Activity End Date
    • getPlannedEndTime

      @Nullable public LocalTime getPlannedEndTime()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PlannedEndTime

      Returns:
      End Time of Activity
    • getIsDeleted

      @Nullable public Boolean getIsDeleted()
      Constraints: none

      Original property name from the Odata EDM: IsDeleted

      Returns:
      Delete Data Record
    • getMaintNotifItmActyStrtDateTime

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

      Original property name from the Odata EDM: MaintNotifItmActyStrtDateTime

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

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

      Original property name from the Odata EDM: MaintNotifItemActyEndDateTime

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

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

      Original property name from the Odata EDM: MaintNotifItemActyCrtnDateTime

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

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

      Original property name from the Odata EDM: MaintNotifItemActyChgdDateTime

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

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

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

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

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