Class WorkPackage.WorkPackageBuilder

java.lang.Object
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.commercialproject.WorkPackage.WorkPackageBuilder
Enclosing class:
WorkPackage

public static final class WorkPackage.WorkPackageBuilder extends Object
Helper class to allow for fluent creation of WorkPackage instances.
  • Method Details

    • resourceDemand

      @Nonnull public WorkPackage.WorkPackageBuilder resourceDemand(EngmntProjRsceDmnd... value)
      Navigation property to_ResourceDemand for WorkPackage to multiple EngmntProjRsceDmnd.
      Parameters:
      value - The EngmntProjRsceDmnds to build this WorkPackage with.
      Returns:
      This Builder to allow for a fluent interface.
    • project

      @Nonnull public WorkPackage.WorkPackageBuilder project(Project value)
      Navigation property to_Project for WorkPackage to single Project.
      Parameters:
      value - The Project to build this WorkPackage with.
      Returns:
      This Builder to allow for a fluent interface.
    • workItemSet

      @Nonnull public WorkPackage.WorkPackageBuilder workItemSet(WorkItem... value)
      Navigation property WorkItemSet for WorkPackage to multiple WorkItem.
      Parameters:
      value - The WorkItems to build this WorkPackage with.
      Returns:
      This Builder to allow for a fluent interface.
    • demandSet

      @Nonnull public WorkPackage.WorkPackageBuilder demandSet(Demand... value)
      Navigation property DemandSet for WorkPackage to multiple Demand.
      Parameters:
      value - The Demands to build this WorkPackage with.
      Returns:
      This Builder to allow for a fluent interface.
    • workPackageFunctionSet

      @Nonnull public WorkPackage.WorkPackageBuilder workPackageFunctionSet(WorkPackageFunction... value)
      Navigation property WorkPackageFunctionSet for WorkPackage to multiple WorkPackageFunction.
      Parameters:
      value - The WorkPackageFunctions to build this WorkPackage with.
      Returns:
      This Builder to allow for a fluent interface.
    • projectID

      @Nonnull public WorkPackage.WorkPackageBuilder projectID(@Nullable String projectID)
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ProjectID

      Returns:
      this.
    • workPackageID

      @Nonnull public WorkPackage.WorkPackageBuilder workPackageID(@Nullable String workPackageID)
      (Key Field) Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: WorkPackageID

      Returns:
      this.
    • workPackageName

      @Nonnull public WorkPackage.WorkPackageBuilder workPackageName(@Nullable String workPackageName)
      (Key Field) Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: WorkPackageName

      Returns:
      this.
    • description

      @Nonnull public WorkPackage.WorkPackageBuilder description(@Nullable String description)
      Constraints: none

      Original property name from the Odata EDM: Description

      Returns:
      this.
    • wPStartDate

      @Nonnull public WorkPackage.WorkPackageBuilder wPStartDate(@Nullable LocalDateTime wPStartDate)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: WPStartDate

      Returns:
      this.
    • wPEndDate

      @Nonnull public WorkPackage.WorkPackageBuilder wPEndDate(@Nullable LocalDateTime wPEndDate)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: WPEndDate

      Returns:
      this.
    • workPackageType

      @Nonnull public WorkPackage.WorkPackageBuilder workPackageType(@Nullable String workPackageType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: WorkPackageType

      Returns:
      this.
    • unitQuantity

      @Nonnull public WorkPackage.WorkPackageBuilder unitQuantity(@Nullable BigDecimal unitQuantity)
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: UnitQuantity

      Returns:
      this.
    • unitId

      @Nonnull public WorkPackage.WorkPackageBuilder unitId(@Nullable String unitId)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: UnitId

      Returns:
      this.
    • createdOn

      @Nonnull public WorkPackage.WorkPackageBuilder createdOn(@Nullable LocalDateTime createdOn)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: CreatedOn

      Returns:
      this.
    • changedOn

      @Nonnull public WorkPackage.WorkPackageBuilder changedOn(@Nullable ZonedDateTime changedOn)
      Constraints: Not nullable, Precision: 7

      Original property name from the Odata EDM: ChangedOn

      Returns:
      this.
    • build

      @Nonnull public WorkPackage build()
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object