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

public class SupProtFlexibleTimeBucket extends VdmEntity<SupProtFlexibleTimeBucket> implements VdmEntitySet
Flexible Time Bucket

Original entity name from the Odata EDM: A_SupProtFlexibleTimeBucket_Type

  • Field Details

  • Constructor Details

    • SupProtFlexibleTimeBucket

      public SupProtFlexibleTimeBucket()
    • SupProtFlexibleTimeBucket

      public SupProtFlexibleTimeBucket(@Nullable UUID supProtFlexibleTimeBucketUUID, @Nullable UUID supplyProtectionUUID, @Nullable OffsetDateTime supProtPeriodStartUTCDateTime, @Nullable LocalDate startDate, @Nullable OffsetDateTime supProtPeriodEndUTCDateTime, @Nullable LocalDate endDate, @Nullable Integer numberOfDays, @Nullable String createdByUser, @Nullable OffsetDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable OffsetDateTime lastChangeDateTime, @Nullable SupplyProtection to_SupplyProtectionTP)
  • Method Details

    • getType

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

      public void setSupProtFlexibleTimeBucketUUID(@Nullable UUID supProtFlexibleTimeBucketUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SupProtFlexibleTimeBucketUUID

      Parameters:
      supProtFlexibleTimeBucketUUID - Flexible Time Bucket UUID
    • setSupplyProtectionUUID

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

      Original property name from the Odata EDM: SupplyProtectionUUID

      Parameters:
      supplyProtectionUUID - 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)
    • setStartDate

      public void setStartDate(@Nullable LocalDate startDate)
      Constraints: Nullable

      Original property name from the Odata EDM: StartDate

      Parameters:
      startDate - Start Date
    • 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)
    • setEndDate

      public void setEndDate(@Nullable LocalDate endDate)
      Constraints: Nullable

      Original property name from the Odata EDM: EndDate

      Parameters:
      endDate - End Date
    • setNumberOfDays

      public void setNumberOfDays(@Nullable Integer numberOfDays)
      Constraints: Not nullable

      Original property name from the Odata EDM: NumberOfDays

      Parameters:
      numberOfDays - Number of Days in Time Bucket
    • 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<SupProtFlexibleTimeBucket>
    • getKey

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

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

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

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

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

    • getSupProtFlexibleTimeBucketUUID

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

      Original property name from the Odata EDM: SupProtFlexibleTimeBucketUUID

      Returns:
      Flexible Time Bucket UUID
    • getSupplyProtectionUUID

      @Nullable public UUID getSupplyProtectionUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SupplyProtectionUUID

      Returns:
      UUID
    • getSupProtPeriodStartUTCDateTime

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

      Original property name from the Odata EDM: SupProtPeriodStartUTCDateTime

      Returns:
      Period Start Timestamp (UTC)
    • getStartDate

      @Nullable public LocalDate getStartDate()
      Constraints: Nullable

      Original property name from the Odata EDM: StartDate

      Returns:
      Start Date
    • getSupProtPeriodEndUTCDateTime

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

      Original property name from the Odata EDM: SupProtPeriodEndUTCDateTime

      Returns:
      Period End Timestamp (UTC)
    • getEndDate

      @Nullable public LocalDate getEndDate()
      Constraints: Nullable

      Original property name from the Odata EDM: EndDate

      Returns:
      End Date
    • getNumberOfDays

      @Nullable public Integer getNumberOfDays()
      Constraints: Not nullable

      Original property name from the Odata EDM: NumberOfDays

      Returns:
      Number of Days in Time Bucket
    • 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<SupProtFlexibleTimeBucket>
    • equals

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

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

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

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