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

public class MaintNotificationItemCause extends VdmEntity<MaintNotificationItemCause>
Maintenance Notification Item Cause

Original entity name from the Odata EDM: MaintNotificationItemCauseType

  • Field Details

    • ALL_FIELDS

      public static final MaintNotificationItemCauseSelectable ALL_FIELDS
      Selector for all available fields of MaintNotificationItemCause.
    • MAINTENANCE_NOTIFICATION

      public static final MaintNotificationItemCauseField<String> MAINTENANCE_NOTIFICATION
      Use with available fluent helpers to apply the MaintenanceNotification field to query operations.
    • MAINTENANCE_NOTIFICATION_ITEM

      public static final MaintNotificationItemCauseField<String> MAINTENANCE_NOTIFICATION_ITEM
      Use with available fluent helpers to apply the MaintenanceNotificationItem field to query operations.
    • MAINTENANCE_NOTIFICATION_CAUSE

      public static final MaintNotificationItemCauseField<String> MAINTENANCE_NOTIFICATION_CAUSE
      Use with available fluent helpers to apply the MaintenanceNotificationCause field to query operations.
    • MAINT_NOTIF_CAUSE_TEXT

      public static final MaintNotificationItemCauseField<String> MAINT_NOTIF_CAUSE_TEXT
      Use with available fluent helpers to apply the MaintNotifCauseText field to query operations.
    • MAINT_NOTIF_CAUSE_CODE_GROUP

      public static final MaintNotificationItemCauseField<String> MAINT_NOTIF_CAUSE_CODE_GROUP
      Use with available fluent helpers to apply the MaintNotifCauseCodeGroup field to query operations.
    • MAINT_NOTIF_CAUSE_CODE_GROUP_NAME

      public static final MaintNotificationItemCauseField<String> MAINT_NOTIF_CAUSE_CODE_GROUP_NAME
      Use with available fluent helpers to apply the MaintNotifCauseCodeGroupName field to query operations.
    • MAINT_NOTIFICATION_CAUSE_CODE

      public static final MaintNotificationItemCauseField<String> MAINT_NOTIFICATION_CAUSE_CODE
      Use with available fluent helpers to apply the MaintNotificationCauseCode field to query operations.
    • MAINT_NOTIFICATION_CAUSE_CODE_NAME

      public static final MaintNotificationItemCauseField<String> MAINT_NOTIFICATION_CAUSE_CODE_NAME
      Use with available fluent helpers to apply the MaintNotificationCauseCodeName field to query operations.
    • MAINT_NOTIFICATION_ROOT_CAUSE

      public static final MaintNotificationItemCauseField<String> MAINT_NOTIFICATION_ROOT_CAUSE
      Use with available fluent helpers to apply the MaintNotificationRootCause field to query operations.
    • MAINT_NOTIFICATION_ROOT_CAUSE_TEXT

      public static final MaintNotificationItemCauseField<String> MAINT_NOTIFICATION_ROOT_CAUSE_TEXT
      Use with available fluent helpers to apply the MaintNotificationRootCauseText field to query operations.
    • IS_DELETED

      public static final MaintNotificationItemCauseField<Boolean> IS_DELETED
      Use with available fluent helpers to apply the IsDeleted field to query operations.
    • MAINT_NOTIF_ITM_CAUSE_CHGD_DATE_TIME

      public static final MaintNotificationItemCauseField<ZonedDateTime> MAINT_NOTIF_ITM_CAUSE_CHGD_DATE_TIME
      Use with available fluent helpers to apply the MaintNotifItmCauseChgdDateTime field to query operations.
    • MAINT_NOTIF_ITM_CAUSE_CRTN_DATE_TIME

      public static final MaintNotificationItemCauseField<ZonedDateTime> MAINT_NOTIF_ITM_CAUSE_CRTN_DATE_TIME
      Use with available fluent helpers to apply the MaintNotifItmCauseCrtnDateTime field to query operations.
    • TO_ITEM

      Use with available fluent helpers to apply the to_Item navigation property to query operations.
    • TO_NOTIF

      Use with available fluent helpers to apply the to_Notif navigation property to query operations.
  • Constructor Details

    • MaintNotificationItemCause

      public MaintNotificationItemCause()
    • MaintNotificationItemCause

      public MaintNotificationItemCause(@Nullable String maintenanceNotification, @Nullable String maintenanceNotificationItem, @Nullable String maintenanceNotificationCause, @Nullable String maintNotifCauseText, @Nullable String maintNotifCauseCodeGroup, @Nullable String maintNotifCauseCodeGroupName, @Nullable String maintNotificationCauseCode, @Nullable String maintNotificationCauseCodeName, @Nullable String maintNotificationRootCause, @Nullable String maintNotificationRootCauseText, @Nullable Boolean isDeleted, @Nullable ZonedDateTime maintNotifItmCauseChgdDateTime, @Nullable ZonedDateTime maintNotifItmCauseCrtnDateTime, @Nullable MaintenanceNotificationItem toItem, @Nullable MaintenanceNotification toNotif)
  • Method Details

    • getType

      @Nonnull public Class<MaintNotificationItemCause> getType()
      Specified by:
      getType in class VdmObject<MaintNotificationItemCause>
    • 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
    • setMaintenanceNotificationCause

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

      Original property name from the Odata EDM: MaintenanceNotificationCause

      Parameters:
      maintenanceNotificationCause - Sequential Number for Cause
    • setMaintNotifCauseText

      public void setMaintNotifCauseText(@Nullable String maintNotifCauseText)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: MaintNotifCauseText

      Parameters:
      maintNotifCauseText - Cause Text
    • setMaintNotifCauseCodeGroup

      public void setMaintNotifCauseCodeGroup(@Nullable String maintNotifCauseCodeGroup)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: MaintNotifCauseCodeGroup

      Parameters:
      maintNotifCauseCodeGroup - Cause Code Group
    • setMaintNotifCauseCodeGroupName

      public void setMaintNotifCauseCodeGroupName(@Nullable String maintNotifCauseCodeGroupName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: MaintNotifCauseCodeGroupName

      Parameters:
      maintNotifCauseCodeGroupName - Text for Code Group
    • setMaintNotificationCauseCode

      public void setMaintNotificationCauseCode(@Nullable String maintNotificationCauseCode)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: MaintNotificationCauseCode

      Parameters:
      maintNotificationCauseCode - Cause Code
    • setMaintNotificationCauseCodeName

      public void setMaintNotificationCauseCodeName(@Nullable String maintNotificationCauseCodeName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: MaintNotificationCauseCodeName

      Parameters:
      maintNotificationCauseCodeName - Text for Code
    • setMaintNotificationRootCause

      public void setMaintNotificationRootCause(@Nullable String maintNotificationRootCause)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: MaintNotificationRootCause

      Parameters:
      maintNotificationRootCause - Root Cause
    • setMaintNotificationRootCauseText

      public void setMaintNotificationRootCauseText(@Nullable String maintNotificationRootCauseText)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: MaintNotificationRootCauseText

      Parameters:
      maintNotificationRootCauseText - Short Text for Fixed Values
    • setIsDeleted

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

      Original property name from the Odata EDM: IsDeleted

      Parameters:
      isDeleted - Delete Data Record
    • setMaintNotifItmCauseChgdDateTime

      public void setMaintNotifItmCauseChgdDateTime(@Nullable ZonedDateTime maintNotifItmCauseChgdDateTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: MaintNotifItmCauseChgdDateTime

      Parameters:
      maintNotifItmCauseChgdDateTime - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • setMaintNotifItmCauseCrtnDateTime

      public void setMaintNotifItmCauseCrtnDateTime(@Nullable ZonedDateTime maintNotifItmCauseCrtnDateTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: MaintNotifItmCauseCrtnDateTime

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

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

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

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

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

      @Nonnull public static <T> MaintNotificationItemCauseField<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> MaintNotificationItemCauseField<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<MaintNotificationItemCause>
    • setServicePathForFetch

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<MaintNotificationItemCause>
    • 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 MaintNotificationItemCause 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 MaintNotificationItemCause 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 MaintNotificationItemCause 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 MaintNotificationItemCause 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

    • 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
    • getMaintenanceNotificationCause

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

      Original property name from the Odata EDM: MaintenanceNotificationCause

      Returns:
      Sequential Number for Cause
    • getMaintNotifCauseText

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

      Original property name from the Odata EDM: MaintNotifCauseText

      Returns:
      Cause Text
    • getMaintNotifCauseCodeGroup

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

      Original property name from the Odata EDM: MaintNotifCauseCodeGroup

      Returns:
      Cause Code Group
    • getMaintNotifCauseCodeGroupName

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

      Original property name from the Odata EDM: MaintNotifCauseCodeGroupName

      Returns:
      Text for Code Group
    • getMaintNotificationCauseCode

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

      Original property name from the Odata EDM: MaintNotificationCauseCode

      Returns:
      Cause Code
    • getMaintNotificationCauseCodeName

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

      Original property name from the Odata EDM: MaintNotificationCauseCodeName

      Returns:
      Text for Code
    • getMaintNotificationRootCause

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

      Original property name from the Odata EDM: MaintNotificationRootCause

      Returns:
      Root Cause
    • getMaintNotificationRootCauseText

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

      Original property name from the Odata EDM: MaintNotificationRootCauseText

      Returns:
      Short Text for Fixed Values
    • getIsDeleted

      @Nullable public Boolean getIsDeleted()
      Constraints: none

      Original property name from the Odata EDM: IsDeleted

      Returns:
      Delete Data Record
    • getMaintNotifItmCauseChgdDateTime

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

      Original property name from the Odata EDM: MaintNotifItmCauseChgdDateTime

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

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

      Original property name from the Odata EDM: MaintNotifItmCauseCrtnDateTime

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

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

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

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

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