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

public class SupplyProtectionTimeBucket extends VdmEntity<SupplyProtectionTimeBucket> implements VdmEntitySet
Time Bucket

Original entity name from the Odata EDM: A_SupplyProtectionTimeBucket_Type

  • Field Details

  • Constructor Details

    • SupplyProtectionTimeBucket

      public SupplyProtectionTimeBucket()
    • SupplyProtectionTimeBucket

      public SupplyProtectionTimeBucket(@Nullable UUID supProtTimeBucketUUID, @Nullable UUID supplyProtectionUUID, @Nullable UUID supplyProtectionGroupUUID, @Nullable OffsetDateTime supProtPeriodStartUTCDateTime, @Nullable OffsetDateTime supProtPeriodEndUTCDateTime, @Nullable String unitOfMeasure, @Nullable BigDecimal supProtProtectedQuantity, @Nullable BigDecimal supProtConsumedQuantity, @Nullable BigDecimal supProtRemainingProtectedQty, @Nullable String createdByUser, @Nullable OffsetDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable OffsetDateTime lastChangeDateTime, @Nullable SupplyProtectionGroup to_SupplyProtectionGroupTP, @Nullable SupplyProtection to_SupplyProtectionTP)
  • Method Details

    • getType

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

      public void setSupProtTimeBucketUUID(@Nullable UUID supProtTimeBucketUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SupProtTimeBucketUUID

      Parameters:
      supProtTimeBucketUUID - Time Bucket UUID
    • setSupplyProtectionUUID

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

      Original property name from the Odata EDM: SupplyProtectionUUID

      Parameters:
      supplyProtectionUUID - UUID
    • setSupplyProtectionGroupUUID

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

      Original property name from the Odata EDM: SupplyProtectionGroupUUID

      Parameters:
      supplyProtectionGroupUUID - Characteristic Value Combination UUID
    • setSupProtPeriodStartUTCDateTime

      public void setSupProtPeriodStartUTCDateTime(@Nullable OffsetDateTime supProtPeriodStartUTCDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: SupProtPeriodStartUTCDateTime

      Parameters:
      supProtPeriodStartUTCDateTime - Period Start Timestamp (UTC)
    • setSupProtPeriodEndUTCDateTime

      public void setSupProtPeriodEndUTCDateTime(@Nullable OffsetDateTime supProtPeriodEndUTCDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: SupProtPeriodEndUTCDateTime

      Parameters:
      supProtPeriodEndUTCDateTime - Period End Timestamp (UTC)
    • 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
    • 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
    • getEntityCollection

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

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

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

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

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

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

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

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

      public void setSupplyProtectionGroupTP(SupplyProtectionGroup value)
      Overwrites the associated SupplyProtectionGroup entity for the loaded navigation property _SupplyProtectionGroupTP.
      Parameters:
      value - New SupplyProtectionGroup entity.
    • 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 SupplyProtectionTimeBucket 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

    • getSupProtTimeBucketUUID

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

      Original property name from the Odata EDM: SupProtTimeBucketUUID

      Returns:
      Time Bucket UUID
    • getSupplyProtectionUUID

      @Nullable public UUID getSupplyProtectionUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SupplyProtectionUUID

      Returns:
      UUID
    • getSupplyProtectionGroupUUID

      @Nullable public UUID getSupplyProtectionGroupUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SupplyProtectionGroupUUID

      Returns:
      Characteristic Value Combination UUID
    • getSupProtPeriodStartUTCDateTime

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

      Original property name from the Odata EDM: SupProtPeriodStartUTCDateTime

      Returns:
      Period Start Timestamp (UTC)
    • getSupProtPeriodEndUTCDateTime

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

      Original property name from the Odata EDM: SupProtPeriodEndUTCDateTime

      Returns:
      Period End Timestamp (UTC)
    • 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
    • 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
    • toString

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

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

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

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

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