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

public class SupplyProtectionGroup extends VdmEntity<SupplyProtectionGroup> implements VdmEntitySet
Protection Group

Original entity name from the Odata EDM: A_SupplyProtectionGroupType

  • Field Details

  • Constructor Details

    • SupplyProtectionGroup

      public SupplyProtectionGroup()
    • SupplyProtectionGroup

      public SupplyProtectionGroup(@Nullable UUID supplyProtectionGroupUUID, @Nullable UUID supplyProtectionUUID, @Nullable String supProtCharc01ValueID, @Nullable String supProtCharc02ValueID, @Nullable String supProtCharc03ValueID, @Nullable String supProtCharc04ValueID, @Nullable String supProtCharc05ValueID, @Nullable String supProtCharc06ValueID, @Nullable String supProtCharc07ValueID, @Nullable String supProtCharc08ValueID, @Nullable String supProtCharc09ValueID, @Nullable String supProtCharc10ValueID, @Nullable Integer supProtGroupPriorityValue, @Nullable String createdByUser, @Nullable OffsetDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable OffsetDateTime lastChangeDateTime, @Nullable String charcValAuthznGroup, @Nullable String unitOfMeasure, @Nullable BigDecimal supProtProtectedQuantity, @Nullable BigDecimal supProtConsumedQuantity, @Nullable BigDecimal supProtRemainingProtectedQty, List<SupplyProtectionTimeBucket> to_SupplyProtectionTimeBucketTP, @Nullable SupplyProtection to_SupplyProtectionTP)
  • Method Details

    • getType

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

      public void setSupplyProtectionGroupUUID(@Nullable UUID supplyProtectionGroupUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SupplyProtectionGroupUUID

      Parameters:
      supplyProtectionGroupUUID - Characteristic Value Combination UUID
    • setSupplyProtectionUUID

      public void setSupplyProtectionUUID(@Nullable UUID supplyProtectionUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SupplyProtectionUUID

      Parameters:
      supplyProtectionUUID - UUID
    • setSupProtCharc01ValueID

      public void setSupProtCharc01ValueID(@Nullable String supProtCharc01ValueID)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SupProtCharc01ValueID

      Parameters:
      supProtCharc01ValueID - Characteristic Value
    • setSupProtCharc02ValueID

      public void setSupProtCharc02ValueID(@Nullable String supProtCharc02ValueID)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SupProtCharc02ValueID

      Parameters:
      supProtCharc02ValueID - Characteristic Value
    • setSupProtCharc03ValueID

      public void setSupProtCharc03ValueID(@Nullable String supProtCharc03ValueID)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SupProtCharc03ValueID

      Parameters:
      supProtCharc03ValueID - Characteristic Value
    • setSupProtCharc04ValueID

      public void setSupProtCharc04ValueID(@Nullable String supProtCharc04ValueID)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SupProtCharc04ValueID

      Parameters:
      supProtCharc04ValueID - Characteristic Value
    • setSupProtCharc05ValueID

      public void setSupProtCharc05ValueID(@Nullable String supProtCharc05ValueID)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SupProtCharc05ValueID

      Parameters:
      supProtCharc05ValueID - Characteristic Value
    • setSupProtCharc06ValueID

      public void setSupProtCharc06ValueID(@Nullable String supProtCharc06ValueID)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SupProtCharc06ValueID

      Parameters:
      supProtCharc06ValueID - Characteristic Value
    • setSupProtCharc07ValueID

      public void setSupProtCharc07ValueID(@Nullable String supProtCharc07ValueID)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SupProtCharc07ValueID

      Parameters:
      supProtCharc07ValueID - Characteristic Value
    • setSupProtCharc08ValueID

      public void setSupProtCharc08ValueID(@Nullable String supProtCharc08ValueID)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SupProtCharc08ValueID

      Parameters:
      supProtCharc08ValueID - Characteristic Value
    • setSupProtCharc09ValueID

      public void setSupProtCharc09ValueID(@Nullable String supProtCharc09ValueID)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SupProtCharc09ValueID

      Parameters:
      supProtCharc09ValueID - Characteristic Value
    • setSupProtCharc10ValueID

      public void setSupProtCharc10ValueID(@Nullable String supProtCharc10ValueID)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: SupProtCharc10ValueID

      Parameters:
      supProtCharc10ValueID - Characteristic Value
    • setSupProtGroupPriorityValue

      public void setSupProtGroupPriorityValue(@Nullable Integer supProtGroupPriorityValue)
      Constraints: Not nullable

      Original property name from the Odata EDM: SupProtGroupPriorityValue

      Parameters:
      supProtGroupPriorityValue - Priority
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Created By User
    • setCreationDateTime

      public void setCreationDateTime(@Nullable OffsetDateTime creationDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Created On / At
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Last Changed By User
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable OffsetDateTime lastChangeDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Changed On / At
    • setCharcValAuthznGroup

      public void setCharcValAuthznGroup(@Nullable String charcValAuthznGroup)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: CharcValAuthznGroup

      Parameters:
      charcValAuthznGroup - Supply Protection Characteristic Value Authorization Group
    • setUnitOfMeasure

      public void setUnitOfMeasure(@Nullable String unitOfMeasure)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: UnitOfMeasure

      Parameters:
      unitOfMeasure - Base Unit of Measure
    • setSupProtProtectedQuantity

      public void setSupProtProtectedQuantity(@Nullable BigDecimal supProtProtectedQuantity)
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: SupProtProtectedQuantity

      Parameters:
      supProtProtectedQuantity - Protected Quantity
    • setSupProtConsumedQuantity

      public void setSupProtConsumedQuantity(@Nullable BigDecimal supProtConsumedQuantity)
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: SupProtConsumedQuantity

      Parameters:
      supProtConsumedQuantity - Consumed Quantity
    • setSupProtRemainingProtectedQty

      public void setSupProtRemainingProtectedQty(@Nullable BigDecimal supProtRemainingProtectedQty)
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: SupProtRemainingProtectedQty

      Parameters:
      supProtRemainingProtectedQty - Remaining Protected Quantity
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SupplyProtectionGroup 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 _SupplyProtectionTimeBucketTP is already loaded, the result will contain the SupplyProtectionTimeBucket entities. If not, an Option with result state empty is returned.
    • setSupplyProtectionTimeBucketTP

      public void setSupplyProtectionTimeBucketTP(@Nonnull List<SupplyProtectionTimeBucket> value)
      Overwrites the list of associated SupplyProtectionTimeBucket entities for the loaded navigation property _SupplyProtectionTimeBucketTP.

      If the navigation property _SupplyProtectionTimeBucketTP of a queried SupplyProtectionGroup 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 SupplyProtectionTimeBucket entities.
    • addSupplyProtectionTimeBucketTP

      public void addSupplyProtectionTimeBucketTP(SupplyProtectionTimeBucket... entity)
      Adds elements to the list of associated SupplyProtectionTimeBucket entities. This corresponds to the OData navigation property _SupplyProtectionTimeBucketTP.

      If the navigation property _SupplyProtectionTimeBucketTP of a queried SupplyProtectionGroup 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 SupplyProtectionTimeBucket entities.
    • getSupplyProtectionTPIfPresent

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

      If the navigation property for an entity SupplyProtectionGroup 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 _SupplyProtectionTP is already loaded, the result will contain the SupplyProtection entity. If not, an Option with result state empty is returned.
    • setSupplyProtectionTP

      public void setSupplyProtectionTP(SupplyProtection value)
      Overwrites the associated SupplyProtection entity for the loaded navigation property _SupplyProtectionTP.
      Parameters:
      value - New SupplyProtection entity.
    • builder

      @Nonnull public static SupplyProtectionGroup.SupplyProtectionGroupBuilder builder()
    • getSupplyProtectionGroupUUID

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

      Original property name from the Odata EDM: SupplyProtectionGroupUUID

      Returns:
      Characteristic Value Combination UUID
    • getSupplyProtectionUUID

      @Nullable public UUID getSupplyProtectionUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SupplyProtectionUUID

      Returns:
      UUID
    • getSupProtCharc01ValueID

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

      Original property name from the Odata EDM: SupProtCharc01ValueID

      Returns:
      Characteristic Value
    • getSupProtCharc02ValueID

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

      Original property name from the Odata EDM: SupProtCharc02ValueID

      Returns:
      Characteristic Value
    • getSupProtCharc03ValueID

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

      Original property name from the Odata EDM: SupProtCharc03ValueID

      Returns:
      Characteristic Value
    • getSupProtCharc04ValueID

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

      Original property name from the Odata EDM: SupProtCharc04ValueID

      Returns:
      Characteristic Value
    • getSupProtCharc05ValueID

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

      Original property name from the Odata EDM: SupProtCharc05ValueID

      Returns:
      Characteristic Value
    • getSupProtCharc06ValueID

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

      Original property name from the Odata EDM: SupProtCharc06ValueID

      Returns:
      Characteristic Value
    • getSupProtCharc07ValueID

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

      Original property name from the Odata EDM: SupProtCharc07ValueID

      Returns:
      Characteristic Value
    • getSupProtCharc08ValueID

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

      Original property name from the Odata EDM: SupProtCharc08ValueID

      Returns:
      Characteristic Value
    • getSupProtCharc09ValueID

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

      Original property name from the Odata EDM: SupProtCharc09ValueID

      Returns:
      Characteristic Value
    • getSupProtCharc10ValueID

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

      Original property name from the Odata EDM: SupProtCharc10ValueID

      Returns:
      Characteristic Value
    • getSupProtGroupPriorityValue

      @Nullable public Integer getSupProtGroupPriorityValue()
      Constraints: Not nullable

      Original property name from the Odata EDM: SupProtGroupPriorityValue

      Returns:
      Priority
    • getCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created By User
    • getCreationDateTime

      @Nullable public OffsetDateTime getCreationDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Created On / At
    • getLastChangedByUser

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

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Last Changed By User
    • getLastChangeDateTime

      @Nullable public OffsetDateTime getLastChangeDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Changed On / At
    • getCharcValAuthznGroup

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

      Original property name from the Odata EDM: CharcValAuthznGroup

      Returns:
      Supply Protection Characteristic Value Authorization Group
    • getUnitOfMeasure

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

      Original property name from the Odata EDM: UnitOfMeasure

      Returns:
      Base Unit of Measure
    • getSupProtProtectedQuantity

      @Nullable public BigDecimal getSupProtProtectedQuantity()
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: SupProtProtectedQuantity

      Returns:
      Protected Quantity
    • getSupProtConsumedQuantity

      @Nullable public BigDecimal getSupProtConsumedQuantity()
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: SupProtConsumedQuantity

      Returns:
      Consumed Quantity
    • getSupProtRemainingProtectedQty

      @Nullable public BigDecimal getSupProtRemainingProtectedQty()
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: SupProtRemainingProtectedQty

      Returns:
      Remaining Protected Quantity
    • toString

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

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

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

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

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