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

public class InHouseRepair extends VdmEntity<InHouseRepair> implements VdmEntitySet
In-House Repair

Original entity name from the Odata EDM: InHouseRepair_Type

  • Field Details

  • Constructor Details

    • InHouseRepair

      public InHouseRepair()
    • InHouseRepair

      public InHouseRepair(@Nullable String inHouseRepair, @Nullable String inhRepairType, @Nullable String soldToParty, @Nullable String contactPerson, @Nullable String shipToParty, @Nullable String salesOrganization, @Nullable String distributionChannel, @Nullable String division, @Nullable String salesOffice, @Nullable String salesGroup, @Nullable String salesOrganizationOrgUnitID, @Nullable String salesOfficeOrgUnitID, @Nullable String salesGroupOrgUnitID, @Nullable String responsibleSalesOrganization, @Nullable String responsibleEmployee, @Nullable String inhRepairStatus, @Nullable String inhRepairExtReference, @Nullable Collection<SAP__Message> _Messages, List<InHouseRepairItem> to_InHouseRepairItem)
  • Method Details

    • getType

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

      public void setInHouseRepair(@Nullable String inHouseRepair)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: InHouseRepair

      Parameters:
      inHouseRepair - In-House Repair ID
    • setInhRepairType

      public void setInhRepairType(@Nullable String inhRepairType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: InhRepairType

      Parameters:
      inhRepairType - Business Transaction Type
    • setSoldToParty

      public void setSoldToParty(@Nullable String soldToParty)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SoldToParty

      Parameters:
      soldToParty - Sold-To Party
    • setContactPerson

      public void setContactPerson(@Nullable String contactPerson)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ContactPerson

      Parameters:
      contactPerson - Contact Person
    • setShipToParty

      public void setShipToParty(@Nullable String shipToParty)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ShipToParty

      Parameters:
      shipToParty - Ship-To Party
    • setSalesOrganization

      public void setSalesOrganization(@Nullable String salesOrganization)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SalesOrganization

      Parameters:
      salesOrganization - Sales Organization
    • setDistributionChannel

      public void setDistributionChannel(@Nullable String distributionChannel)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: DistributionChannel

      Parameters:
      distributionChannel - Distribution Channel
    • setDivision

      public void setDivision(@Nullable String division)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Division

      Parameters:
      division - Division
    • setSalesOffice

      public void setSalesOffice(@Nullable String salesOffice)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SalesOffice

      Parameters:
      salesOffice - Sales Office
    • setSalesGroup

      public void setSalesGroup(@Nullable String salesGroup)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SalesGroup

      Parameters:
      salesGroup - Sales Group
    • setSalesOrganizationOrgUnitID

      public void setSalesOrganizationOrgUnitID(@Nullable String salesOrganizationOrgUnitID)
      Constraints: Not nullable, Maximum length: 14

      Original property name from the Odata EDM: SalesOrganizationOrgUnitID

      Parameters:
      salesOrganizationOrgUnitID - Sales Organization
    • setSalesOfficeOrgUnitID

      public void setSalesOfficeOrgUnitID(@Nullable String salesOfficeOrgUnitID)
      Constraints: Not nullable, Maximum length: 14

      Original property name from the Odata EDM: SalesOfficeOrgUnitID

      Parameters:
      salesOfficeOrgUnitID - Sales Office
    • setSalesGroupOrgUnitID

      public void setSalesGroupOrgUnitID(@Nullable String salesGroupOrgUnitID)
      Constraints: Not nullable, Maximum length: 14

      Original property name from the Odata EDM: SalesGroupOrgUnitID

      Parameters:
      salesGroupOrgUnitID - Sales Group
    • setResponsibleSalesOrganization

      public void setResponsibleSalesOrganization(@Nullable String responsibleSalesOrganization)
      Constraints: Not nullable, Maximum length: 14

      Original property name from the Odata EDM: ResponsibleSalesOrganization

      Parameters:
      responsibleSalesOrganization - Sales Organization
    • setResponsibleEmployee

      public void setResponsibleEmployee(@Nullable String responsibleEmployee)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ResponsibleEmployee

      Parameters:
      responsibleEmployee - Employee Responsible
    • setInhRepairStatus

      public void setInhRepairStatus(@Nullable String inhRepairStatus)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: InhRepairStatus

      Parameters:
      inhRepairStatus - In-House Repair Status
    • setInhRepairExtReference

      public void setInhRepairExtReference(@Nullable String inhRepairExtReference)
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: InhRepairExtReference

      Parameters:
      inhRepairExtReference - External Transaction Number
    • 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<InHouseRepair>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity InHouseRepair 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 _InHouseRepairItem is already loaded, the result will contain the InHouseRepairItem entities. If not, an Option with result state empty is returned.
    • setInHouseRepairItem

      public void setInHouseRepairItem(@Nonnull List<InHouseRepairItem> value)
      Overwrites the list of associated InHouseRepairItem entities for the loaded navigation property _InHouseRepairItem.

      If the navigation property _InHouseRepairItem of a queried InHouseRepair 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 InHouseRepairItem entities.
    • addInHouseRepairItem

      public void addInHouseRepairItem(InHouseRepairItem... entity)
      Adds elements to the list of associated InHouseRepairItem entities. This corresponds to the OData navigation property _InHouseRepairItem.

      If the navigation property _InHouseRepairItem of a queried InHouseRepair 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 InHouseRepairItem entities.
    • confirmRepairObjects

      @Nonnull public static BoundAction.SingleToSingle<InHouseRepair,InHouseRepair> confirmRepairObjects()
      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

      @Nonnull public static InHouseRepair.InHouseRepairBuilder builder()
    • getInHouseRepair

      @Nullable public String getInHouseRepair()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: InHouseRepair

      Returns:
      In-House Repair ID
    • getInhRepairType

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

      Original property name from the Odata EDM: InhRepairType

      Returns:
      Business Transaction Type
    • getSoldToParty

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

      Original property name from the Odata EDM: SoldToParty

      Returns:
      Sold-To Party
    • getContactPerson

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

      Original property name from the Odata EDM: ContactPerson

      Returns:
      Contact Person
    • getShipToParty

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

      Original property name from the Odata EDM: ShipToParty

      Returns:
      Ship-To Party
    • getSalesOrganization

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

      Original property name from the Odata EDM: SalesOrganization

      Returns:
      Sales Organization
    • getDistributionChannel

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

      Original property name from the Odata EDM: DistributionChannel

      Returns:
      Distribution Channel
    • getDivision

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

      Original property name from the Odata EDM: Division

      Returns:
      Division
    • getSalesOffice

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

      Original property name from the Odata EDM: SalesOffice

      Returns:
      Sales Office
    • getSalesGroup

      @Nullable public String getSalesGroup()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SalesGroup

      Returns:
      Sales Group
    • getSalesOrganizationOrgUnitID

      @Nullable public String getSalesOrganizationOrgUnitID()
      Constraints: Not nullable, Maximum length: 14

      Original property name from the Odata EDM: SalesOrganizationOrgUnitID

      Returns:
      Sales Organization
    • getSalesOfficeOrgUnitID

      @Nullable public String getSalesOfficeOrgUnitID()
      Constraints: Not nullable, Maximum length: 14

      Original property name from the Odata EDM: SalesOfficeOrgUnitID

      Returns:
      Sales Office
    • getSalesGroupOrgUnitID

      @Nullable public String getSalesGroupOrgUnitID()
      Constraints: Not nullable, Maximum length: 14

      Original property name from the Odata EDM: SalesGroupOrgUnitID

      Returns:
      Sales Group
    • getResponsibleSalesOrganization

      @Nullable public String getResponsibleSalesOrganization()
      Constraints: Not nullable, Maximum length: 14

      Original property name from the Odata EDM: ResponsibleSalesOrganization

      Returns:
      Sales Organization
    • getResponsibleEmployee

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

      Original property name from the Odata EDM: ResponsibleEmployee

      Returns:
      Employee Responsible
    • getInhRepairStatus

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

      Original property name from the Odata EDM: InhRepairStatus

      Returns:
      In-House Repair Status
    • getInhRepairExtReference

      @Nullable public String getInhRepairExtReference()
      Constraints: Not nullable, Maximum length: 80

      Original property name from the Odata EDM: InhRepairExtReference

      Returns:
      External Transaction Number
    • 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<InHouseRepair>
    • equals

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

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

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

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