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

public class CndnContrCndnRecordValidity extends VdmEntity<CndnContrCndnRecordValidity> implements VdmEntitySet
Condition Record Validity

Original entity name from the Odata EDM: CndnContrCndnRecordValidityType

  • Field Details

  • Constructor Details

    • CndnContrCndnRecordValidity

      public CndnContrCndnRecordValidity()
    • CndnContrCndnRecordValidity

      public CndnContrCndnRecordValidity(@Nullable String conditionContract, @Nullable String conditionRecord, @Nullable LocalDate conditionValidityEndDate, @Nullable LocalDate conditionValidityStartDate, @Nullable String conditionTable, @Nullable String conditionApplication, @Nullable String conditionType, @Nullable Collection<SAP__Message> _Messages, @Nullable CndnContrConditionRecord to_CndnContrCndnRecord, @Nullable ConditionContract to_ConditionContract)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ConditionContract

      Parameters:
      conditionContract - Condition Contract
    • setConditionRecord

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

      Original property name from the Odata EDM: ConditionRecord

      Parameters:
      conditionRecord - Number of Condition Record
    • setConditionValidityEndDate

      public void setConditionValidityEndDate(@Nullable LocalDate conditionValidityEndDate)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ConditionValidityEndDate

      Parameters:
      conditionValidityEndDate - Validity end date of the condition record
    • setConditionValidityStartDate

      public void setConditionValidityStartDate(@Nullable LocalDate conditionValidityStartDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ConditionValidityStartDate

      Parameters:
      conditionValidityStartDate - Validity start date of the condition record
    • setConditionTable

      public void setConditionTable(@Nullable String conditionTable)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionTable

      Parameters:
      conditionTable - Condition Table
    • setConditionApplication

      public void setConditionApplication(@Nullable String conditionApplication)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ConditionApplication

      Parameters:
      conditionApplication - Application
    • setConditionType

      public void setConditionType(@Nullable String conditionType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ConditionType

      Parameters:
      conditionType - Condition Type
    • 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<CndnContrCndnRecordValidity>
    • getKey

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

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

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

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

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

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

      If the navigation property for an entity CndnContrCndnRecordValidity 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 _CndnContrCndnRecord is already loaded, the result will contain the CndnContrConditionRecord entity. If not, an Option with result state empty is returned.
    • setCndnContrCndnRecord

      public void setCndnContrCndnRecord(CndnContrConditionRecord value)
      Overwrites the associated CndnContrConditionRecord entity for the loaded navigation property _CndnContrCndnRecord.
      Parameters:
      value - New CndnContrConditionRecord entity.
    • getConditionContractIfPresent

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

      If the navigation property for an entity CndnContrCndnRecordValidity 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 _ConditionContract is already loaded, the result will contain the ConditionContract entity. If not, an Option with result state empty is returned.
    • setConditionContract

      public void setConditionContract(ConditionContract value)
      Overwrites the associated ConditionContract entity for the loaded navigation property _ConditionContract.
      Parameters:
      value - New ConditionContract entity.
    • changeValidity

      @Nonnull public static BoundAction.SingleToSingle<CndnContrCndnRecordValidity,Void> changeValidity(@Nullable LocalDate conditionValidityStartDate, @Nullable LocalDate conditionValidityEndDate)
      Action that can be applied to any entity object of this class.

      Parameters:
      conditionValidityStartDate - Constraints: Nullable

      Original parameter name from the Odata EDM: ConditionValidityStartDate

      conditionValidityEndDate - Constraints: Nullable

      Original parameter name from the Odata EDM: ConditionValidityEndDate

      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

    • getConditionContract

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

      Original property name from the Odata EDM: ConditionContract

      Returns:
      Condition Contract
    • getConditionRecord

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

      Original property name from the Odata EDM: ConditionRecord

      Returns:
      Number of Condition Record
    • getConditionValidityEndDate

      @Nullable public LocalDate getConditionValidityEndDate()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: ConditionValidityEndDate

      Returns:
      Validity end date of the condition record
    • getConditionValidityStartDate

      @Nullable public LocalDate getConditionValidityStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ConditionValidityStartDate

      Returns:
      Validity start date of the condition record
    • getConditionTable

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

      Original property name from the Odata EDM: ConditionTable

      Returns:
      Condition Table
    • getConditionApplication

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

      Original property name from the Odata EDM: ConditionApplication

      Returns:
      Application
    • getConditionType

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

      Original property name from the Odata EDM: ConditionType

      Returns:
      Condition Type
    • 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<CndnContrCndnRecordValidity>
    • equals

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

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

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

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